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

Conversation

@vxfield
Copy link
Member

@vxfield vxfield commented Nov 24, 2020

This PR is a mitigation of issue #737.

@vxfield vxfield requested a review from bamarsha November 24, 2020 20:28
@bamarsha bamarsha marked this pull request as draft November 24, 2020 20:45
@vxfield vxfield changed the title [DRAFT] Detect absence of .NET SDK 3.1 and display error message Detect absence of .NET SDK 3.1 and display error message Nov 24, 2020
@vxfield vxfield marked this pull request as ready for review November 24, 2020 22:26
@bamarsha
Copy link
Contributor

We should bring this change into main as well - maybe we could retarget this PR to main and then cherry-pick into the release branch?

vxfield and others added 5 commits November 24, 2020 15:45
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
@vxfield vxfield changed the title Detect absence of .NET SDK 3.1 and display error message [DRAFT] Detect absence of .NET SDK 3.1 and display error message Nov 25, 2020
Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

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

I think that will work fine together with packaging a suitable global.json with the server, and setting the working directory to the server path.

@vxfield vxfield changed the title [DRAFT] Detect absence of .NET SDK 3.1 and display error message Detect absence of .NET SDK 3.1 and display error message Nov 25, 2020
}
catch (Exception ex)
{
Log("[ERROR] MsBuildLocator could not register defaults.", options.LogFile);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Log("[ERROR] MsBuildLocator could not register defaults.", options.LogFile);
Log("[ERROR] MsBuildLocator could not register defaults.", options.LogFile);
// Don't exit here, since exiting without establishing a connection will result in a cryptic failure of the extension.
// Instead, we proceed to create a server instance and establish the connection.
// Any errors can then be properly processed via the standard server-client communication as needed.

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.

5 participants