Cannot create .net core 1.1 using msbuild tools.

I have a .net core class library that I am trying to create a nugget in a package. however, on my build server (running team city), I get the following error:

C: \ TeamCity \ buildAgent \ work \ 3c6531587491c25e \ MySolution \ MyProject.csproj error MSB4019: imported project "C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ build tool \ MSBuild \ SDKs \ Microsoft.NET.Sdk \ SDK \ Sdk.props "was not found. Verify that the path in the declaration is correct and that the file exists on disk.

When I look in this directory, I am not in the "Microsoft.NET.Sdk" folder from my build server. Where can I get these tools without installing a visual studio?

Thank!

+4
source share
1 answer

See the tracking issue on GitHub: https://github.com/Microsoft/msbuild/issues/1697

If you do not want to touch the installation of the build tools (by copying the SDK files), you can also set the environment variable MSBuildSDKsPathto the location of the SDK ported to CLI.net (usually C:\Program Files\dotnet\sdk\1.0.0\Sdks\)

+4
source

Source: https://habr.com/ru/post/1674034/


All Articles