DacFx icon indicating copy to clipboard operation
DacFx copied to clipboard

Unable to use In Visual Studio, .NET Core targets can be used by default. Add this property to the sqlproj: <NetCoreBuild>True</NetCoreBuild>

Open ErikEJ opened this issue 3 years ago • 0 comments

  • SqlPackage or DacFx Version:
  • .NET Framework (Windows-only) or .NET Core:
  • Environment (local platform and source/target platforms):

Steps to Reproduce:

Convert a VS .sqplproj to SDK build.

Follow this from the readme (adding it to the first "PropertyGroup"

In Visual Studio, .NET Core targets can be used by default. Add this property to the sqlproj:

<NetCoreBuild>True</NetCoreBuild>

Excpected: project builds

Actual:

Severity Code Description Project File Line Suppression State Error Your project file doesn't list 'win' as a "RuntimeIdentifier". You should add 'win' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore. Database C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets 198

ErikEJ avatar Mar 06 '22 15:03 ErikEJ