Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build.SQL - project file doesn't list 'win' as a "RuntimeIdentifier" in a Dotne8 Solution #560

Open
p10tyr opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@p10tyr
Copy link

p10tyr commented Feb 6, 2025

  • SqlPackage or DacFx Version: Any SDK version - still in 1.0.0-rc1
  • .NET Framework (Windows-only) or .NET Core: Net8 LTS
  • Environment (local platform and source/target platforms):
    Windows 11 + VS Pro 17.12.178.10385

Steps to Reproduce:

  1. We pull down our solution (consisting of 200+ projects, all .NET8) - Our solution file is about 10 years old and have gone through many, many upgrades and restructuring.
  2. Build solution for first time in Visual Studio (we get the same error when using dotnet build the first time)
  3. This also happens when we upgrade the SDK version in the csproj.
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets(198,5): error : Your project file doesn't list 'win' as a "RuntimeIdentifier". You should add 'w
in' to the "RuntimeIdentifiers" property in your project file and then re-run NuGet restore. 

Workaround

  1. To resolve this we have to manually delete the bin AND obj folder in each SQL project directory
  2. close Visual Studio
  3. reopen visual studio
  4. Build (not rebuild) each SQLProject one by one..
  5. Building the whole solution works fine then from this point forward

Did this occur in prior versions? If not - which version(s) did it work in?
All of them

(DacFx/SqlPackage/SSMS/Azure Data Studio)

@p10tyr p10tyr added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant