Skip to content

Fix root directory not being considered by UseSolutionRelativeContentRoot() #34079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

martincostello
Copy link
Member

PR Title

Fix root directory not being used by UseSolutionRelativeContentRoot

PR Description

  • Fix the root directory of a drive not being considered to find the solution.
  • Resolve CA1309 warning be specifying StringComparison.Ordinal.

As noted in the original issue, this requires a specific file layout on disk and the code doesn't support using a mock file system, so there is no new unit test associated with the fix.

Addresses #33363

Fix the root directory of a drive not being considered to find the solution.
Addresses dotnet#33363.
Resolve CA1309 warning be specifying StringComparison.Ordinal.
@martincostello martincostello requested a review from Tratcher as a code owner July 4, 2021 08:48
@ghost ghost added area-runtime community-contribution Indicates that the PR has been added by a community member labels Jul 4, 2021
@@ -86,7 +86,7 @@ public static IWebHostBuilder ConfigureTestServices(this IWebHostBuilder webHost
throw new ArgumentNullException(nameof(servicesConfiguration));
}

if (webHostBuilder.GetType().Name.Equals("GenericWebHostBuilder"))
if (webHostBuilder.GetType().Name.Equals("GenericWebHostBuilder", StringComparison.Ordinal))
Copy link
Member

Choose a reason for hiding this comment

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

Wow this is jank.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry for drawing attention to it 😆

@Tratcher Tratcher merged commit d804e5d into dotnet:main Jul 6, 2021
@ghost ghost added this to the 6.0-preview7 milestone Jul 6, 2021
@Tratcher
Copy link
Member

Tratcher commented Jul 6, 2021

Thanks

@martincostello martincostello deleted the Fix-UseSolutionRelativeContentRoot-33363 branch July 6, 2021 20:19
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants