If you’re on your build server and running into the problem like this that fails on the NuGet Restore
Package Microsoft.AspNetCore 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
Double check that you have NuGet 4.3 or higher installed.
To fix this on TeamCity 2017.1.2+:
- Go to Administration in the top right
- Tools on the left
- Click Install Version under NuGet.exe
- Choose 4.3 or higher in the dropdown and click Add
Hope this helps someone else on the bleeding edge.
This was a tremendous help. Thank you!
Awesome! Thanks for letting me know!