Reputation:
I am building a .NET WPF application, which was previously targeting .NET 4.6.1.
I have used this tool to convert my previous .csproj into the new Package-Reference csproj style of VS2017.
I have also updated the target framework to .NET 4.7.1.
The issue is that my main project references other projects from my solution, and each of those fails when I declare using namespace;
When I was using the previous csproj style projects, my main project was successfully referencing my other projects inside my solution but it does not anymore.
I have tried disabling ReSharper and I've even checkout the sources to a from scratch Windows installation and I got the same thing.
The weird thing is I got many errors from Intellisense, but everything builds perfectly!
I am running out of idea...
The solution sources are here.
Upvotes: 1
Views: 3599
Reputation: 771
The weird thing is I got many errors from Intellisense, but everything builds perfectly!
well assuming this is the case - intellisense information is stored beside your solution-file in the .vs
folder. You can try to close VS, remove the folder and reopen the solution. This usually fixes my problems when dealing Intellisense errors despite successfull builds.
Upvotes: 4
Reputation: 13282
Start with this basic advice: When you have a using statement, you're citing a namespace. In order for that namespace to be resolved, the project in question must have a reference to an assembly or project that contains that namespace. The fact that your DownloadService.cs
code module shows that it cannot resolve the Popcorn.Utils namespace tells me that the project that contains DownloadService.cs
does not have a reference to the project or assembly that contains Popcorn.Utils.
Upvotes: 0