Skip to content

Commit d471b3a

Browse files
committed
Search for slnx files when setting solution-relative content root
1 parent 4d5e043 commit d471b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Hosting/TestHost/src/WebHostBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static IWebHostBuilder ConfigureTestContainer<TContainer>(this IWebHostBu
126126
public static IWebHostBuilder UseSolutionRelativeContentRoot(
127127
this IWebHostBuilder builder,
128128
string solutionRelativePath,
129-
string solutionName = "*.sln")
129+
string solutionName = "*.sln?")
130130
{
131131
return builder.UseSolutionRelativeContentRoot(solutionRelativePath, AppContext.BaseDirectory, solutionName);
132132
}
@@ -144,7 +144,7 @@ public static IWebHostBuilder UseSolutionRelativeContentRoot(
144144
this IWebHostBuilder builder,
145145
string solutionRelativePath,
146146
string applicationBasePath,
147-
string solutionName = "*.sln")
147+
string solutionName = "*.sln?")
148148
{
149149
ArgumentNullException.ThrowIfNull(solutionRelativePath);
150150
ArgumentNullException.ThrowIfNull(applicationBasePath);

0 commit comments

Comments
 (0)