Skip to content

Minor improvements to SDK resolver end-user experience - #2869

Merged
jeffkl merged 6 commits into
dotnet:vs15.6from
jeffkl:nugetsdk-tests
Jan 23, 2018
Merged

jeffkl merged 6 commits into
dotnet:vs15.6from
jeffkl:nugetsdk-tests

Conversation

@jeffkl

@jeffkl jeffkl commented Jan 16, 2018

Copy link
Copy Markdown
Contributor

A few minor improvements:

  1. Make SdkResolverLoader easier to mock by splitting functionality into more virtual methods
  2. Add a different error message if the SDK resolver assembly itself cannot be loaded
  3. Fix issue where if one resolver failed to load, the remaining ones would not be loaded
  4. More unit tests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be an error or warning? If one of the resolver fails to load it would probably mean your MSBuild instance is messed up. You could end up hitting a different resolver that may work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is now throwing an InvalidProjectFileException which stops the build with a logged error or can be caught by consumers of the API.

@AndyGerlicher
AndyGerlicher changed the base branch from master to vs15.6 January 23, 2018 16:55
@jeffkl
jeffkl merged commit 81cd334 into dotnet:vs15.6 Jan 23, 2018
@jeffkl
jeffkl deleted the nugetsdk-tests branch January 23, 2018 18:55
radical pushed a commit to radical/msbuild that referenced this pull request Jan 30, 2018
* Throw an exception if an SDK resolver assembly cannot be loaded or SDK resolver type cannot be instantiated
* Use MockLogger instead of MockLoggingService with a StringBuilder
* Make SdkResolverLoader more mock-able
* More unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants