or Create a profile
20 Mar, 2017 08:02 PM
About an hour ago our .net core builds stopped working on the VS 2015 image. The Previous VS 2015 image does work.
error MSB4019: The imported project "C:\Program Files\dotnet\sdk\1.0.1\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
on 20 Mar, 2017 08:08 PM
We are gradually rolling out an update to Visual Studio 2015 image where .NET Core SDK 1.0.1 is installed.
Visual Studio 2015
Adding global.json to the folder with solution should fix that error: https://github.com/appveyor/ci/issues/1377#issuecomment-287644271
Let me know if that worked.
on 20 Mar, 2017 08:25 PM
I already have a global.json with SDK 1.0.0-preview2-1-003177 in my projects for a few months. Used to work fine. .Net core sdk 1.0.1 is not new, it was released in september 2016 I think.
on 20 Mar, 2017 08:30 PM
Is global.json located in the same folder with .sln file?
How do you build the app?
on 20 Mar, 2017 08:53 PM
Yes, located in the same folder.
But before building I'm manually calling dotnet restore, and then it's giving the error.
on 20 Mar, 2017 08:59 PM
If you are calling dotnet restore <path-to\solution.sln> for the solution file which is not in the root of the repo then add another global.json to the root of the repo:
dotnet restore <path-to\solution.sln>
dotnet command line is first looking for global.json in the current folder.
on 21 Mar, 2017 09:53 AM
Ok thanks, it worked.
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the AppVeyor staff to resolve this discussion.
This discussion is private.
Only you and AppVeyor support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.