Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Conversation

@JoeRobich
Copy link
Member

This PR (microsoft/MSBuildLocator#115) to MSBuildLocator added support for loading depenendecies from the MSBuildPath. This makes the LooseVersionAssemblyLoader unnecessary.

MSBuildHelpers.HookAssemblyResolveForMSBuild();
// During testing we just need a default MSBuild instance to be registered.
var defaultInstance = MSBuildLocator.QueryVisualStudioInstances().First();
MSBuildHelpers.HookAssemblyResolveForMSBuild(defaultInstance.MSBuildPath);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify a MSBuildPath otherwise the smoketests will pause while prompting to select a MSBuild instance to use.

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @JoeRobich!

@cartermp cartermp merged commit 18e1645 into dotnet:main Apr 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants