I'm trying to set up Build on VSTS for my ASP.NET Core 2.0 web app but it fails on Nuget Restore phase:
Package Microsoft.Extensions.FileProviders.Physical 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.FileProviders.Physical 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
Package Microsoft.VisualStudio.Web.CodeGeneration.Contracts 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.VisualStudio.Web.CodeGeneration.Contracts 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
When I was creating the build I selected App Service in Azure (or something like that). So, how can I set up Build now?
All the features of ASP.NET Core 2.x and Entity Framework Core 2.x are included in the Microsoft.AspNetCore.App package. The default project templates targeting ASP.NET Core 2.x use this package. We recommend applications targeting ASP.NET Core 2.x and Entity Framework Core 2.x use the Microsoft.AspNetCore.App package.
Project Acme.Function.Model is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Project Acme.Function.Model supports: netstandard2.0 (.NETStandard,Version=v2.0) One or more projects are incompatible with .NETCoreApp,Version=v2.0.)
Microsoft.AspNetCore.App is installed when the .NET Core 3.0 or later SDK is installed. The shared framework is the set of assemblies ( .dll files) that are installed on the machine and includes a runtime component and a targeting pack. For more information, see The shared framework.
All the features of ASP.NET Core 2.x and Entity Framework Core 2.x are included in the Microsoft.AspNetCore.App package. The default project templates targeting ASP.NET Core 2.x use this package.
Using .Net Core restore task instead.
Regarding NuGet restore, you need to user 4.3 version:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With