Just installed Visual Studio 2017 (full version) from MSDN website. Created a new Asp.Net Core Web Application (.Net Framework) with .net framework 4.6 selected. Project name = "WebApplicationWithTemplate"
Added another project of type Class Library (.Net Standard) again with .net framework 4.6 selected. Project name = "DataAccessRegular"
Next tried to add the reference of class library project to the Asp.Net Core web application and I get this error:
Cannot find project info for 'E:\Development\VS2017Solution\DataAccessRegular\DataAccessRegular.csproj'. This can indicate a missing project reference. WebApplicationWithTemplate C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets 92
Also created Class Library (.net core) project [not shown in the screen shot above] and added its reference to asp.net core project and still getting the same error.
Also read This link on github but did not find it helpful unfortunately.
The point for asking this is because I want to keep the model, service and data access layers in a separate project.
To fix a broken project reference by correcting the reference path. In Solution Explorer, right-click your project node, and then select Properties. The Project Designer appears. If you're using Visual Basic, select the References page, and then click the Reference Paths button.
Right click on project --> Add Reference --> Select the reference project from the list.
The Reference Path property tells Visual Studio where to look for referenced assemblies; the default is the path you used when you added the reference.
I got this problem after removing a nuget package (which I had built myself) from a solution then replacing it with a project reference to the project from which the package was built. The solution to the issue...? Close VS and reopen it.
I resolved this by correcting my mistake that the reference was added both as a project reference AND as a browse reference.
The assembly was thus referenced twice - directly as an assembly - and indirectly as the output of a included project.
When I removed the browse reference and only kept the project reference it cleared up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With