-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't display unnecessary warning if no target framework is defined #1455
Comments
But the message is correct in this case, right? |
I don't know what's the right solution for this. But I do know that I don't want tons of warnings in the output window as soon as I add a reference like EntityFramework. At the same time we want the warnings when VS is failing to import dependent assemblies when there is a framework mismatch. |
what happens when you enable http://fsprojects.github.io/Paket/dependencies-file.html#Automatic-framework-detection ? |
When I paket update I get the error Edit: That x.csproj in actually located in |
ouch. that's clearly a bug ;-) |
please retry |
I get a warning when
The point is that the project is not even referencing the package. I think this is related to the fact that paket chooses the Maybe its time to add an empty |
I think non-existing paket.references is same as empty file. So the issue is elsewhere |
I'm pretty sure it's not: Paket searches up the directories until it finds a |
Ah you are right. That was a drunk decision :-)
|
Same thing :( |
Yeah. Damn it. I can't reproduce it.
|
Did you try with a reference to |
Yes. But it doesn't pick the csproj up. Need to investigate deeper. Or can
|
I think you need more than my project, it seems to be tied to the fact that I'm using custom packages from my private nuget server that are built using the "project" type with paket, and those are referencing System.Net.FtpClient. |
This discussion is already a bit scattered, but this seems like the best place to discuss it, and I'm experiencing an issue ~~ I get pages of errors like these even though my project is fine, making the output really hard to read and potentially hiding bugs: My paket.dependencies file has something like
In our portable projects' csproj files, the TargetFrameworkVersion gets set as To reduce the If I understand this Warning's code correctly, it's checking that the csproj has set Is this a bug, or a misunderstanding on my part? |
@davidschwegler I think that is an edge case we don't cover yet. Can you create a minimal repro with the settings you described an put it into a zip or something? |
BTW, I'm noticing this on transitive dependencies that don't apply for the target framework. I get this via Will put a integration test if I have a chance. |
a warning when a library for a given target framework is missing is fine. the bigger issue is that the warning is not providing enough information to fix the issue. it would be helpful to know which target frameworks are supported by a given nuget package, so those should be listed. instead of:
it should write something like:
|
Related to changes in /issues/1442
The warning seems to display even when it shouldn't, we might need to be more restrictive about it.
X contains libraries, but not for the selected TargetFramework net452 in project Y
For example, I have a solution with projects that target net452, and I don't define any version or framework requirements in the dependencies file. I still get tons of warning for libraries such as
Microsoft.CSharp
,Microsoft.Net.Http
orSystem.Net.Http
.The text was updated successfully, but these errors were encountered: