Skip to content

TargetInvocationException #2

@bvirkler

Description

@bvirkler

I'm getting a TargetInvocationException while executing semantic-release project-version.

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "C:\Program Files\dotnet\sdk\3.0.100\15.0\Microsoft.Common.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props

I'm getting this in an Azure DevOps Pipeline as well as on my local machine.
Locally, I can see that I do not have a C:\Program Files\dotnet\sdk\3.0.100\15.0 directory - Microsoft.Common.props is instead located in C:\Program Files\dotnet\sdk\3.0.100\Current.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions