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

.NET SDK 5.0.202 fails to compile netcoreapp3.1 projects #16758

Closed
martincostello opened this issue Apr 6, 2021 · 8 comments
Closed

.NET SDK 5.0.202 fails to compile netcoreapp3.1 projects #16758

martincostello opened this issue Apr 6, 2021 · 8 comments

Comments

@martincostello
Copy link
Member

Using the .NET 5.0.202 SDK to compile a project targeting netcoreapp3.1 fails with the following errors:

error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with version (= 3.1.14)
error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 3.1.14)
error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 3.1.14)

It looks like with .NET 5.0.5 being released a week earlier than usual, it has dependencies on the 3.1 release for next Tuesday that haven't been published to NuGet.org yet.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Apr 6, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@martincostello
Copy link
Member Author

Possibly related, also having a different package restore issue on Windows builds in GitHub Actions where it fails without a NuGet.config file being present in the repo. See the following two PRs for examples.

@marcpopMSFT
Copy link
Member

@jamshedd @rbhanda

@rbhanda
Copy link
Contributor

rbhanda commented Apr 6, 2021

Hello @martincostello , we have published 3.1.14 nugets. Please let us know if this issue is resolved after this.

@martincostello
Copy link
Member Author

Yep - compilation succeeds now. Thanks!

@marcpopMSFT
Copy link
Member

We'll close this in the morning if we hear no more reports. Thanks for reaching out.

@Shane32
Copy link

Shane32 commented Apr 7, 2021

Possibly related, also having a different package restore issue on Windows builds in GitHub Actions where it fails without a NuGet.config file being present in the repo. See the following two PRs for examples.

I am still getting what appears to be the same nuget restore error message with GitHub Action workflows on Windows platforms. Linux platforms (same code, same workflow, same everything) runs fine.

Reverting to SDK 5.0.201 corrects the error and builds properly on both platforms; you can see in the latter PR that changing the SDK version was all that was required to make it build successfully. You can also see that nuget package restore was completed successfully on Linux even though the run was canceled due to the failure on the Windows run.

@marcpopMSFT
Copy link
Member

GitHub Actions has confirmed that they've rolled out a fix to remove an empty Nuget.config file that was still causing issues for some customers (as NuGet also made a change to not automatically include NuGet.org when an empty NuGet.config file is found). We believe this should be resolved now thought they warn that any users for the choco package manager may still be broken because that manager also creates an empty Nuget.config. Closing this issue. Please reactivate if you still see issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants