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

[NuGet] The target platform identifier was not recognized #11341

Open
1 task done
MartinZikmund opened this issue Jan 19, 2025 · 1 comment
Open
1 task done

[NuGet] The target platform identifier was not recognized #11341

MartinZikmund opened this issue Jan 19, 2025 · 1 comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet T: bug 🐞 Something isn't working

Comments

@MartinZikmund
Copy link

MartinZikmund commented Jan 19, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

NuGet

Package manager version

Language version

.NET 9

Manifest location and content before the Dependabot update

https://github.com/MartinZikmund/dependabot-uno-issue-repro/

dependabot.yml content

version: 2
updates:
- package-ecosystem: nuget
  directories:
    - "*"
  schedule:
    interval: weekly
    time: "01:00"
  open-pull-requests-limit: 10

Updated dependency

AutoMapper

What you expected to see, versus what you actually saw

I am trying to update an Uno Platform app project, which uses the custom MSBuild SDK Uno.Sdk (https://www.nuget.org/packages/uno.sdk) which defines two custom target frameworks -browserwasm and -desktop. These seem to be unrecognized by the NuGet updater, which makes the dependency update attempt fail completely.

2025-01-13T01:48:12.9389700Z updater | running NuGet updater:
2025-01-13T01:48:12.9392744Z /opt/nuget/NuGetUpdater/NuGetUpdater.Cli update --job-path /home/dependabot/dependabot-updater/job.json --repo-root /home/dependabot/dependabot-updater/repo --solution-or-project /src/Stopwatch/Stopwatch.csproj --dependency Uno.Sdk --new-version 5.6.0-dev.306 --previous-version 5.6.0-dev.260 --result-output-path /tmp/update-result.json
2025-01-13T01:48:12.9444663Z updater | 2025/01/13 01:48:12 INFO <job_946530372> Started process PID: 3508 with command: {} /opt/nuget/NuGetUpdater/NuGetUpdater.Cli update --job-path /home/dependabot/dependabot-updater/job.json --repo-root /home/dependabot/dependabot-updater/repo --solution-or-project /src/Stopwatch/Stopwatch.csproj --dependency Uno.Sdk --new-version 5.6.0-dev.306 --previous-version 5.6.0-dev.260 --result-output-path /tmp/update-result.json {}
2025-01-13T01:48:24.1585711Z updater | 2025/01/13 01:48:24 INFO <job_946530372> Process PID: 3508 completed with status: pid 3508 exit 0
2025-01-13T01:48:24.1593566Z updater | 2025/01/13 01:48:24 INFO <job_946530372> Total execution time: 11.22 seconds
2025-01-13T01:48:24.1606807Z updater | 2025/01/13 01:48:13 INFO   No dotnet-tools.json file found.
2025-01-13T01:48:24.1607449Z 2025/01/13 01:48:13 INFO   Updating [src/global.json] file.
2025-01-13T01:48:24.1607975Z 2025/01/13 01:48:13 INFO     Saved [src/global.json].
2025-01-13T01:48:24.1608605Z 2025/01/13 01:48:13 INFO Running for project file [src/Stopwatch/Stopwatch.csproj]
2025-01-13T01:48:24.1609782Z 2025/01/13 01:48:13 INFO Updating project [/home/dependabot/dependabot-updater/repo/src/Stopwatch/Stopwatch.csproj]
2025-01-13T01:48:24.1610801Z 2025/01/13 01:48:13 INFO   Running 'PackageReference' project direct XML update
2025-01-13T01:48:24.1611835Z 2025/01/13 01:48:15 WARN dotnet build in GetAllPackageDependenciesAsync failed. STDOUT:   Determining projects to restore...
2025-01-13T01:48:24.1612949Z   Restored /tmp/package-dependency-resolution_ZQdHj2/Project.csproj (in 548 ms).
2025-01-13T01:48:24.1615188Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1623548Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1628494Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1633290Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1637260Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1641324Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1645250Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1647324Z 
2025-01-13T01:48:24.1647452Z Build FAILED.
2025-01-13T01:48:24.1647645Z 
2025-01-13T01:48:24.1649626Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1653443Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1657478Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1661548Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1665369Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1669384Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1673580Z /usr/local/dotnet/current/sdk/9.0.101/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_ZQdHj2/Project.csproj]
2025-01-13T01:48:24.1675777Z     0 Warning(s)
2025-01-13T01:48:24.1676102Z     7 Error(s)
2025-01-13T01:48:24.1676297Z 
2025-01-13T01:48:24.1676435Z Time Elapsed 00:00:01.80
2025-01-13T01:48:24.1676663Z 
2025-01-13T01:48:24.1676771Z  STDERR: 
2025-01-13T01:48:24.1676924Z 
2025-01-13T01:48:24.1677479Z 2025/01/13 01:48:23 WARN dotnet build in GetAllPackageDependenciesAsync failed. STDOUT:   Determining projects to restore...
2025-01-13T01:48:24.1679501Z /usr/local/dotnet/current/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier desktop was not recognized. [/tmp/package-dependency-resolution_iNY6Mi/Project.csproj]
2025-01-13T01:48:24.1680464Z 
2025-01-13T01:48:24.1680541Z Build FAILED.
2025-01-13T01:48:24.1680671Z 
2025-01-13T01:48:24.1681490Z /usr/local/dotnet/current/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier desktop was not recognized. [/tmp/package-dependency-resolution_iNY6Mi/Project.csproj]
2025-01-13T01:48:24.1682463Z     0 Warning(s)
2025-01-13T01:48:24.1682646Z     1 Error(s)
2025-01-13T01:48:24.1682750Z 
2025-01-13T01:48:24.1682838Z Time Elapsed 00:00:00.53
2025-01-13T01:48:24.1682971Z 
2025-01-13T01:48:24.1683047Z  STDERR: 
2025-01-13T01:48:24.1683143Z 
2025-01-13T01:48:24.1683494Z 2025/01/13 01:48:24 WARN dotnet build in GetAllPackageDependenciesAsync failed. STDOUT:   Determining projects to restore...
2025-01-13T01:48:24.1684775Z /usr/local/dotnet/current/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier browserwasm was not recognized. [/tmp/package-dependency-resolution_Zuoluw/Project.csproj]
2025-01-13T01:48:24.1685701Z 
2025-01-13T01:48:24.1685780Z Build FAILED.
2025-01-13T01:48:24.1685883Z 
2025-01-13T01:48:24.1686709Z /usr/local/dotnet/current/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier browserwasm was not recognized. [/tmp/package-dependency-resolution_Zuoluw/Project.csproj]
2025-01-13T01:48:24.1687952Z     0 Warning(s)
2025-01-13T01:48:24.1688134Z     1 Error(s)

Native package manager behavior

No response

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

No response

Smallest manifest that reproduces the issue

https://github.com/MartinZikmund/dependabot-uno-issue-repro/

@MartinZikmund MartinZikmund added the T: bug 🐞 Something isn't working label Jan 19, 2025
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Jan 19, 2025
@MartinZikmund
Copy link
Author

I have set up an empty Uno Platform app repo with a single outdated dependency (AutoMapper in this example), and set up a simple dependabot configuration - https://github.com/MartinZikmund/dependabot-uno-issue-repro/ .

Happy to provide further information as needed

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 T: bug 🐞 Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant