-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Visual Studio shows NU1105 error even though build and tests pass #4183
Comments
Build triage: we are going to workaround this by adding projects to our .sln files. Whenever we get NU1105, the solution should be edited to add the missing project. |
@JamesNK @JunTaoLuo can you take care of doing this for the solutions that your respective teams work on? Some of this is already done in release/2.2. If you find other places this needs to happen, feel free to edit the .sln and make a PR. |
I am getting a series of NU1602 errors when opening in Visual Studio. Is this releated? |
@MarkDixonTech which solution are you opening? |
src\Mvc\mvc.sln |
I'm not aware of any issues with NU1602 in Mvc.sln. It's likely unrelated. @mkArtakMSFT @NTaylorMullen have you seen this before? |
I put more details here https://stackoverflow.com/questions/53832737/nuget-error-building-asp-net-core-from-source |
I see this in the release/2.2 branch.
ViewFeatures.csproj references WebEncoders with |
MicrosoftAspNetCoreChunkingCookieManagerSourcesPackageVersion is also missing. I'll create a PR to add them to 2.2. |
Oops that's my fault. It was removed in #4618. That package was removed in favour of code under Shared/. |
Is re-adding them the correct fix for 2.2? #5714 Or should the package be removed in 2.2 and the shared source be referenced instead? |
Second option. Remove the package and reference the shared source. |
I've changed the cookie manager to reference shared source, and added the missing webencoders dependency. Edit: Should WebEncoders also reference shared source? |
@MarkDixonTech I've merged a fix. Can you try getting the latest code from release/2.2 and seeing whether it builds? |
I don't think so. Microsoft.Extensions.WebEncoders is not the same as the code in src/Shared/WebEncoders. |
Per @natemcmaster we think this should be taken care of wherever it matters. Info on how to work around it here: https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md#known-issue-nu1105 |
Yes. All good for me now, thanks! |
There was also a problem running startvs.cmd when space exists in user name. Pull request here |
Currently, opening the solution files in this repo, like src/Servers/Kestrel.sln, shows a bunch of NU1105 errors in the Error List window. The error looks like this:
We believe this is the result of NuGet/Home#5820. There is a draft of a solution in PR in NuGet, but if that doesn't make it in in a reasonable amount of time, we may need to find workarounds.
FWIW - this does not affect command line builds, and also, it appears you can still build and run tests in Visual Studio despite the error.
cc @jainaashish @rrelyea
The text was updated successfully, but these errors were encountered: