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

Dependabot crashing when evaluating netstandard project NETSDK1005 #11625

Open
1 task done
leotsarev opened this issue Feb 18, 2025 · 3 comments
Open
1 task done

Dependabot crashing when evaluating netstandard project NETSDK1005 #11625

leotsarev opened this issue Feb 18, 2025 · 3 comments
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet L: github:actions GitHub Actions T: bug 🐞 Something isn't working

Comments

@leotsarev
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

nuget

Package manager version

No response

Language version

No response

Manifest location and content before the Dependabot update

https://github.com/joinrpg/joinrpg-net/blob/2f618b66281f26329b551911205ddc7af3798df8/src/JoinRpg.XGameApi.Contract/JoinRpg.XGameApi.Contract.csproj#L1

dependabot.yml content

https://github.com/joinrpg/joinrpg-net/blob/2f618b66281f26329b551911205ddc7af3798df8/.github/dependabot.yml#L1

Updated dependency

No response

What you expected to see, versus what you actually saw

/usr/local/dotnet/current/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(322,5): error NETSDK1005: Assets file '/home/dependabot/dependabot-updater/repo/src/JoinRpg.XGameApi.Contract/obj/project.assets.json' doesn't have a target for 'netstandard2.0'. Ensure that restore has run and that you have included 'netstandard2.0' in the TargetFrameworks for your project. [/home/dependabot/dependabot-updater/repo/src/JoinRpg.XGameApi.Contract/JoinRpg.XGameApi.Contract.csproj]

Native package manager behavior

No response

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

https://github.com/joinrpg/joinrpg-net/actions/runs/13376646657/job/37357221946

Smallest manifest that reproduces the issue

No response

@leotsarev leotsarev added the T: bug 🐞 Something isn't working label Feb 18, 2025
@github-actions github-actions bot added L: dotnet:nuget NuGet packages via nuget or dotnet L: github:actions GitHub Actions labels Feb 18, 2025
@leotsarev
Copy link
Author

leotsarev commented Feb 19, 2025

The problem is that dependabot is calling dotnet build to determine dependencies and passing normalized TFM value netstandard2.0 (probably here

). And dotnet build is expecting exact value as it written in .csproj netstandard2.
I'm not sure that should be dependabot or SDK problem. SDK bug: dotnet/sdk#46947

@brettfo
Copy link
Contributor

brettfo commented Feb 19, 2025

I haven't found any official documentation explicitly stating that netstandard2 isn't allowed, but in this list I only see netstandard2.0.

@leotsarev
Copy link
Author

Fixing TFM didn't solve the issue, so I opened another ticket #11645

Talking about TFM, let's see what SDK team will say about this, but "netX" instead of "netX.0" always worked just fine. You just have to skip normalization on your side. Also, why you are passing /p:TargetFramework at all, if project has only one TargetFramework?

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

No branches or pull requests

2 participants