microsoft / MSBuildLocator

An API to locate MSBuild assemblies from an installed Visual Studio location. Use this to ensure that calling the MSBuild API will use the same toolset that a build from Visual Studio or msbuild.exe would.
Other
212 stars 83 forks source link

Updating from version 1.4.1 to 1.5.5 breaks Unit Tests on Mac only #183

Closed sensslen closed 1 year ago

sensslen commented 1 year ago

I just updated the locator nuget package from version 1.4.1 to version 1.5.5. This led to my Unit tests to fail on the mac only. I don't see how this could relate but hope somebody from the community is able to help.

See https://github.com/sensslen/nuget-license/pull/1 for more details.

Forgind commented 1 year ago

I'm guessing this is the same as https://github.com/microsoft/MSBuildLocator/issues/200.

Can you check if your dotnet executable is on your PATH? And if it's a symlink, can you make sure its target is the right dotnet?

sensslen commented 1 year ago

Apparently you seem to be right. Moving from actions/setup-dotnet@v2 to actions/setup-dotnet@v3 resolved the problem.