mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-15 05:35:56 +00:00
System.InvalidOperationException: No instances of MSBuild could be detected #141
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WenningQiu on GitHub (Feb 29, 2024).
I am getting the following error when running "dotnet rpm" command:
What does that mean and how do I get around it? Thanks in advance for any suggestion.
I am on dotnet-rpm version 0.1.220.
@atauenis commented on GitHub (Mar 1, 2024):
Which versions of .NET SDK are installed?
dotnet --info@WenningQiu commented on GitHub (Mar 1, 2024):
.NET 8.
@WenningQiu commented on GitHub (Mar 1, 2024):
More information...
My local machine environment where I test different versions:
@WenningQiu commented on GitHub (Mar 1, 2024):
I am making progress after some debugging and test:
@WenningQiu commented on GitHub (Mar 1, 2024):
Now I am seeing following errors on one of our build machines:
@CS-Roche commented on GitHub (Sep 11, 2024):
I could at least solve the "Preset not supported" error by going back all the way to version 0.1.70. I just jumped back 10 version at a time until the error went away, so I have no idea on which version the error was introduced, and I don't frankly care, I just care about the .deb package.
Edit: Celebrated too early, turns out that the package has unmet dependencies. But it doesn't say which.
@atauenis commented on GitHub (Sep 11, 2024):
Try completely uninstall .NET and .NET SDK with everything, purge all its configuration files and registry entries, and then install back (also complete OS reinstall may be useful, if there is something broken by a buggy update previously installed). I'm using latest dotnet-packaging, and all is working on all machines where I'm doing my development process. Seems that this is .NET SDK-caused error, so, the old well default tip for every Microsoft product may be useful.
It is bug of older versions of dotnet-packaging, which are producing packages for now obsolete versions of distributions. Every Linux distro update the
libicu-**package gets renamed somewhy, and all packages became broken. I've fixed it in my app's csproj by adding a long list with 52-80 versions of it, which should be enough for near years. Alsolibsslpackage name were changed at some time (OpenSSL 1.1 -> 3.0), so need to keep both versions in dependency list. This is handled in latest dotnet-package versions, but it's better to handle it by your csproj.