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: 2: mono: not found error on nuget pack command in Ubuntu LTS 24.04.1 #168

Open
Saibamen opened this issue Oct 15, 2024 · 6 comments

Comments

@Saibamen
Copy link

Saibamen commented Oct 15, 2024

See this GH Action: https://github.com/gandalan/idas-client-libs/actions/runs/11352047581/job/31573952933?pr=432

On Ubuntu LTS 22.04.5 it works without any problem: https://github.com/Saibamen/idas-client-libs/actions/runs/11352019685/job/31573860174?pr=6

See: actions/runner-images#10636

@Saibamen Saibamen changed the title nuget: 2: mono: not found on Ubuntu LTS 24.04.1 nuget: 2: mono: not found error on nuget pack command in Ubuntu LTS 24.04.1 Oct 15, 2024
@zivkan
Copy link
Member

zivkan commented Oct 23, 2024

https://learn.microsoft.com/en-us/nuget/resources/nuget-faq#does-nuget-support-mono-

NuGet can run on Unix operating systems using mono, but it is not officially supported by NuGet's Support Policy.

There are a few issues in the NuGet/Home repo about specific nuget.exe commands that are not available in the dotnet CLI. An equivalent to nuget install Some.Package is highest on our priorities. If you use anything else from nuget.exe that's not supported by the .NET SDK, I encourage you to find the Home repo issue and upvote it to help us prioritize efforts.

@dpogue
Copy link

dpogue commented Dec 20, 2024

This action fails to install a usable NuGet on ubuntu-latest (ubuntu-24.04) GitHub Actions runners.

@mehdihadeli
Copy link

mehdihadeli commented Dec 31, 2024

I have the same issue on ubuntu-latest (ubuntu-24.04)

@Enormus
Copy link

Enormus commented Jan 5, 2025

This action fails to install a usable NuGet on ubuntu-latest (ubuntu-24.04) GitHub Actions runners.

Made worse by the ongoing GitHub migration:
"We will migrate the ubuntu-latest label to ubuntu 24 starting on December 5, 2024 and ending on January 17, 2025. "
https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions

@jeffkl
Copy link
Contributor

jeffkl commented Jan 6, 2025

NuGet.exe is a .NET Framework application and will only work on Windows machines or non-Windows machines that have Mono. Since Mono is officially deprecated, it will most likely no longer be installed by default on CI machines. Perhaps a workaround for now is to manually install Mono as part of your CI process? This GitHub action will not be adding support for installing Mono on your behalf, as its sole responsibility is to download NuGet.exe and make it available for a hosted build.

If possible, we suggest moving to using the .NET SDK which is cross platform and supports most of the same commands via dotnet nuget. https://learn.microsoft.com/nuget/reference/dotnet-commands

@dpogue
Copy link

dpogue commented Jan 6, 2025

If possible, we suggest moving to using the .NET SDK which is cross platform and supports most of the same commands via dotnet nuget. https://learn.microsoft.com/nuget/reference/dotnet-commands

Is it possible to use dotnet nuget to download and publish .nupkg files for C++ libraries to GitHub Package Registry with vcpkg? That's our only use case for NuGet in our CI system

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

No branches or pull requests

6 participants