Skip to content

Work around the SDK error with 6.0.0-preview - #70

Closed
jeffhandley wants to merge 2 commits into
dotnet:mainfrom
jeffhandley:jeffhandley/sdk-error-workaround
Closed

jeffhandley wants to merge 2 commits into
dotnet:mainfrom
jeffhandley:jeffhandley/sdk-error-workaround

Conversation

@jeffhandley

Copy link
Copy Markdown
Member

This works around #69, coercing the 5.0 stable SDK to be registered instead of the 6.0 preview SDK. I do not know why the 6.0 preview SDK leads to the error shown in the issue, but (on my machine at least), this workaround lets me continue to target net6.0 in the projects and let the unit tests pass.

This also includes a change that prevents exceptions when multiple unit tests run and each tries to register the VS build instance.

@jeffhandley

Copy link
Copy Markdown
Member Author

On the CI, there apparently wasn't a non-preview SDK found. I added a new commit that falls back to the first SDK found if there isn't a non-preview SDK found. This now works both on my machine and on CI. 🤷‍♂️

@jeffhandley

Copy link
Copy Markdown
Member Author

We can close this since the change from it was bundled into #63.

@jeffhandley jeffhandley closed this Apr 1, 2021
@jeffhandley
jeffhandley deleted the jeffhandley/sdk-error-workaround branch April 1, 2021 19:48
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.

1 participant