7
votes

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?

1

1 Answers

16
votes

Using .Net Core restore task instead.

Regarding NuGet restore, you need to user 4.3 version:

  1. Add NuGet Tool Installer task (Version of NuGet.exe to install: 4.3.0)
  2. NuGet restore task (Version 2.*)