NuGet Installer Error: Package Microsoft.x.y.z 2.0.0 is not compatible with netcoreapp1.0
We are just getting started developing this application. We are using the AspNet Boiler Plate as our framework. ABP is using Microsoft's Asp Net Core 2 framework.
We've downloaded the AspNet BoilerPlate application with some basic configuration we are up and running locally. There where no issues. It's been checked into GIT repository.
Now I'm setting up TeamCity continuously integration. I've configured the NuGet Installer runner to restore NuGet packages for the project. We have NuGet.exe version 4.3.0 installed on the TeamCity server. We currently have 2 other applications that are being continuously deployed without issue how ever they are not using the NuGet Installer.
Below is the error we are receiving from the NuGet Installer Build Step. I'm not certain how to troubleshoot this considering it works just fine locally. Also I'm fairly new to TeamCity so my troubleshooting experience is limited.
[13:15:14]NU1202: Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
[13:15:15]NU1202: Package Microsoft.Extensions.SecretManager.Tools 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Extensions.SecretManager.Tools 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
[13:15:15]
[13:15:15]Errors in D:\ContinuousIntegration\TeamCity\buildAgent\work\d9ea22a9397ff991\src\VanEck.Intranet.EntityFrameworkCore\VanEck.Intranet.EntityFrameworkCore.csproj
[13:15:15] NU1202: Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
[13:15:15]
[13:15:15]Errors in D:\ContinuousIntegration\TeamCity\buildAgent\work\d9ea22a9397ff991\src\VanEck.Intranet.Core\VanEck.Intranet.Core.csproj
[13:15:15] NU1202: Package Microsoft.Extensions.SecretManager.Tools 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Extensions.SecretManager.Tools 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
[13:15:15]
[13:15:15]Process exited with code 1
Any help is appreciated,
Ron
Please sign in to leave a comment.
This issue was resolved by installing the Asp.net core 2 sdk on the build server.