Skip to content

Unhandled exception. System.InvalidOperationException: No instances of MSBuild could be detected #324

@koldomon

Description

@koldomon

today I made the update for visual studio 17.4 and installed the tool via "dotnet tool install microsoft.odata.cli -g"
everything seems fine, I didn't get any errors, but when I try to run the tool I get the following exception:

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 Microsoft.OData.Cli.Program.Main(String[] args) in D:\a\1\s\src\Microsoft.OData.Cli\Program.cs:line 10
at Microsoft.OData.Cli.Program.

(String[] args)

I'm not sure if there is a relation between the VS update and this error.

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