I am having issues with Visual Studio 2015 that when I create a new CORE 1.0 project the references show an error that says that .NETCoreApp cannot be resolved. When I open the project.json file Microsoft.NETCore.App is underlined and the solution to fix it is to "sort properties".
I have installed VS 2015 update 3 and also .net core tools preview 2.
The sort properties does work but I also notice that intelisense is broken in the projects.json file when trying to add dependencies.
I am a newbie to .net and VS2015 and I am trying to work out of books and tutorials.
Thanks
Resolved.... I failed to add that this was a Windows 10 VM running in parallels on MAC and the projects directory was defaulted to the MAC home drive so it looked like a UNC share "\\MAC\\Home\\" etc. Once I changed to saving to a letter drive everything looked good. Thanks to a coworker that started remembering that he had the same issue a long time ago. Thanks Nate for trying to help.
Resolved...
Entered tools -> Nuget Package Manager -> Manage Nuget Packages For Solution
And uninstalled Microsoft.AspNetCore.Server.ISSIntegration then reinstalled it.
It automatically got all the other dependencies here
"dependencies": { "Microsoft.NETCore.App": { "version": "1.0.1", "type": "platform" }, "Microsoft.AspNetCore.Diagnostics": "1.0.0", "Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", "Microsoft.Extensions.Logging.Console": "1.0.0" },
Then Restarted Visual Studio and solution build succeeded.
您也可以从解决方案中删除以下文件: project.fragment.lock.json
和project.lock.json
,错误将自行解决。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.