Skip to content

System.InvalidOperationException: No instances of MSBuild could be detected #245

@WenningQiu

Description

@WenningQiu

I am getting the following error when running "dotnet rpm" command:

C:\work\git\infra\frameworkccs>dotnet rpm Src\Tool\Framework.CCS.RegionStatus.Daemon\Framework.CCS.RegionStatus.Daemon.csproj --no-restore -r linux-x64 -f net6.0 -c Release -o LocalStaging
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-rpm/Program.cs:line 7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions