I am converting a project from .NET Core RC1 to RC2. I installed the Visual Studio Tools preview package and updated the VS Nuget plugin to the latest version.
This is a test project, so I need to add Microsoft.NETCore.App to my project.json for the library guide . It looks like this:
{ "dependencies": { "dotnet-test-xunit": "1.0.0-rc2-build10015", "FluentAssertions": "4.2.1", "Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc2-final", "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-3002702" }, "xunit": "2.1.0" }, "frameworks": { "netcoreapp1.0": { "imports": [ "dotnet", "portable-net45+win8" ] } }, "testRunner": "xunit", }
The project is restored and built on the command line ( dotnet restore/build ). However, when Visual Studio tries to recover the packages, I get this error:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git C:\Users\Nate\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-20221\bin\dnx.exe "C:\Users\Nate\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc2-20221\bin\lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll" restore "C:\Users\Nate\Documents\stormpath-dotnet-config\test\Stormpath.Configuration.Test" Microsoft .NET Development Utility Clr-x86-1.0.0-rc2-20221 CACHE https://api.nuget.org/v3/index.json Restoring packages for C:\Users\Nate\Documents\stormpath-dotnet-config\test\Stormpath.Configuration.Test\project.json
Obviously, the "type": "platform" property discards it, but should this not work with the latest release of the toolkit?
source share