Skip to content

Commit 8dd45a8

Browse files
Migrate to SLNX
Migrate to the new `.slnx` file format.
1 parent fb21fae commit 8dd45a8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ indent_style = space
99
insert_final_newline = true
1010
trim_trailing_whitespace = true
1111

12-
[*.{config,csproj,json,props,ruleset,targets,yml}]
12+
[*.{config,csproj,json,props,ruleset,slnx,targets,yml}]
1313
indent_size = 2
1414

1515
[*.{received,verified}.{txt,xml,json}]

build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if ($installDotNetSdk -eq $true) {
6969
}
7070

7171
function DotNetTest {
72-
param([string]$Project)
72+
param()
7373

7474
$additionalArgs = @()
7575

@@ -78,7 +78,7 @@ function DotNetTest {
7878
$additionalArgs += "GitHubActions;report-warnings=false"
7979
}
8080

81-
& $dotnet test $Project --configuration "Release" $additionalArgs
81+
& $dotnet test --configuration "Release" $additionalArgs
8282

8383
if ($LASTEXITCODE -ne 0) {
8484
throw "dotnet test failed with exit code $LASTEXITCODE"
@@ -100,5 +100,5 @@ DotNetPublish (Join-Path $solutionPath "src" "TodoApp" "TodoApp.csproj")
100100

101101
if (-Not $SkipTests) {
102102
Write-Host "Testing solution..." -ForegroundColor Green
103-
DotNetTest(Join-Path $solutionPath "tests" "TodoApp.Tests" "TodoApp.Tests.csproj")
103+
DotNetTest
104104
}

perf/TodoApp.Benchmarks/OpenApiBenchmarks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static string GetContentRoot()
101101

102102
do
103103
{
104-
string? solutionPath = Directory.EnumerateFiles(directoryInfo.FullName, "TodoApp.sln").FirstOrDefault();
104+
string? solutionPath = Directory.EnumerateFiles(directoryInfo.FullName, "TodoApp.slnx").FirstOrDefault();
105105

106106
if (solutionPath is not null)
107107
{

startvs.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SET DOTNET_ROOT(x86)=%~dp0.dotnet\x86
1010
:: Put our local dotnet.exe on PATH first so Visual Studio knows which one to use.
1111
SET PATH=%DOTNET_ROOT%;%PATH%
1212

13-
SET sln=%~dp0TodoApp.sln
13+
SET sln=%~dp0TodoApp.slnx
1414

1515
IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" (
1616
echo The .NET SDK has not yet been installed. Run `%~dp0build.ps1` to install it

tests/TodoApp.Tests/TodoAppFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ protected override void ConfigureWebHost(IWebHostBuilder builder)
4949
builder.ConfigureLogging(loggingBuilder => loggingBuilder.ClearProviders().AddXUnit(this));
5050

5151
// Configure the correct content root for the static content and Razor pages
52-
builder.UseSolutionRelativeContentRoot(Path.Combine("src", "TodoApp"));
52+
builder.UseSolutionRelativeContentRoot(Path.Combine("src", "TodoApp"), "*.slnx");
5353
}
5454
}

0 commit comments

Comments
 (0)