dotnet deb install command fail #135

Closed
opened 2026-01-29 16:30:20 +00:00 by claunia · 1 comment
Owner

Originally created by @pyking-wang on GitHub (May 18, 2023).

Just tried to use your utility.
dotnet tool install --global dotnet-deb command was successful.
But now I am stuck at:
C:\GIT\ProjectFolder>dotnet deb install
Unhandled exception. System.InvalidOperationException: No instances of MSBuild could be detected.
Try calling RegisterInstance or RegisterMSBuildPath to manually register one.
at Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults()
at Dotnet.Packaging.PackagingRunner..ctor(String outputName, String msbuildTarget, String commandName) in /__w/1/s/dotnet-rpm/PackagingRunner.cs:line 29
at Dotnet.Packaging.Program.Main(String[] args) in /__w/1/s/dotnet-deb/Program.cs:line 9
I tried to figure out what's happenning but failed.
Defintely I have both Microsoft Visual Studio 2022 with MSBuild installed.
Could anyone help me wth this issue? Thanks!

Originally created by @pyking-wang on GitHub (May 18, 2023). Just tried to use your utility. dotnet tool install --global dotnet-deb command was successful. But now I am stuck at: C:\GIT\ProjectFolder>dotnet deb install Unhandled exception. System.InvalidOperationException: No instances of MSBuild could be detected. Try calling RegisterInstance or RegisterMSBuildPath to manually register one. at Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults() at Dotnet.Packaging.PackagingRunner..ctor(String outputName, String msbuildTarget, String commandName) in /__w/1/s/dotnet-rpm/PackagingRunner.cs:line 29 at Dotnet.Packaging.Program.Main(String[] args) in /__w/1/s/dotnet-deb/Program.cs:line 9 I tried to figure out what's happenning but failed. Defintely I have both Microsoft Visual Studio 2022 with MSBuild installed. Could anyone help me wth this issue? Thanks!
Author
Owner

@pyking-wang commented on GitHub (May 20, 2023):

You can refer to # 233.

@pyking-wang commented on GitHub (May 20, 2023): You can refer to # 233.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#135