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

NETSDK1083 error when using .NET 8 #9099

Closed
1 task done
Diegorro98 opened this issue Feb 22, 2024 · 2 comments
Closed
1 task done

NETSDK1083 error when using .NET 8 #9099

Diegorro98 opened this issue Feb 22, 2024 · 2 comments
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet L: git:submodules Git submodules T: bug 🐞 Something isn't working

Comments

@Diegorro98
Copy link

Diegorro98 commented Feb 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

NuGet

Package manager version

No response

Language version

.NET 8

Manifest location and content before the Dependabot update

No response

dependabot.yml content

No response

Updated dependency

No response

What you expected to see, versus what you actually saw

I expected to have a dependency PR created, but instead I get multiple NETSDK1083 errors.
This error is caused because now .NET SDK uses a smaller RID graph, and the Microsoft recommended action is the following:

Recommended action

Use portable RIDs, for example, linux-<arch>, linux-musl-<arch>, osx-<arch>, and win-<arch>.

If you need to revert to the previous behavior of using the old, full RID graph, you can set the UseRidGraph MSBuild property to true in your project file. However, the old RID graph won't be updated in the future to attempt to handle any other distros or architectures.

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

Log extract for broken .csproj update:

updater | running NuGet updater:
updater | /opt/nuget/NuGetUpdater/NuGetUpdater.Cli update --repo-root /home/dependabot/dependabot-updater/repo --solution-or-project /home/dependabot/dependabot-updater/repo/Project.csproj --dependency Microsoft.WindowsAppSDK --new-version 1.4.240211001 --previous-version 1.4.231219000 --verbose
[...]
updater | Running for project [/home/dependabot/dependabot-updater/repo/example.csproj
updater |   Running for SDK-style project
updater | dotnet build in GetAllPackageDependenciesAsync failed. STDOUT: MSBuild version 17.8.3+195e7f5a3 for .NET
updater |   Determining projects to restore...
updater |   Restored /tmp/package-dependency-resolution_2WWio1/Project.csproj (in 10.7 sec).
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm64-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x86' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x86-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | 
updater | Build FAILED.
updater | 
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-arm64-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x86' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x86-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater | /usr/local/dotnet/current/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1083: The specified RuntimeIdentifier 'win10-x64-aot' is not recognized. See https://aka.ms/netsdk1083 for more information. [/tmp/package-dependency-resolution_2WWio1/Project.csproj]
updater |     0 Warning(s)
updater |     7 Error(s)
updater | 
updater | Time Elapsed 00:00:12.00
updater | 
updater |  STDERR: 
updater | 
updater |     Package [Microsoft.WindowsAppSDK] Does not exist as a dependency in [/home/dependabot/dependabot-updater/repo/example.csproj].

Smallest manifest that reproduces the issue

.github/dependabot.yml:

version: 2
updates:
  - package-ecosystem: nuget
    directory: "/"
    schedule:
      interval: "daily"

test.csproj:

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
        <Nullable>enable</Nullable>
        <Platforms>x86;x64;arm64</Platforms>
        <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
    </PropertyGroup>
    
    <ItemGroup>
            <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240227000" />
    </ItemGroup>
</Project>

Edit: Although Windows App SDK 1.5 fixed some warnings with .NET 8, this error is still happening when updating from 1.5.240227000 to 1.5.240311000

@Diegorro98
Copy link
Author

Referencing microsoft/WindowsAppSDK#4387

@Diegorro98
Copy link
Author

Seems to be working in latest versions of Windows App SDK (Upgrading from 1.6.240821007-preview2 to 1.6.240829007)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet L: git:submodules Git submodules T: bug 🐞 Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant