dependabot-core icon indicating copy to clipboard operation
dependabot-core copied to clipboard

NETSDK1083 error when using .NET 8

Open Diegorro98 opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] 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

<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.4.231219000" />
    </ItemGroup>
</Project>

Diegorro98 avatar Feb 22 '24 09:02 Diegorro98