Skip to content

Commit 77d4aac

Browse files
authored
Migrating to the slnx format (#1591)
- `UnitsNet.sln` -> `UnitsNet.slnx` - `Samples/Samples.sln` -> `Samples/Samples.slnx` - `Samples/MvvmSample.Wpf/MvvmSample.Wpf.sln` -> `Samples/MvvmSample.Wpf/MvvmSample.Wpf.slnx` - `Samples/UnitConverter.Wpf/UnitConverter.Wpf.sln` -> `Samples/UnitConverter.Wpf/UnitConverter.Wpf.slnx` and updating the build functions that reference `UnitsNet.sln`
1 parent 5c49fb0 commit 77d4aac

File tree

10 files changed

+83
-277
lines changed

10 files changed

+83
-277
lines changed

Build/build-functions.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Start-Build([boolean] $IncludeNanoFramework = $false) {
3636

3737
$fileLoggerArg = "/logger:FileLogger,Microsoft.Build;logfile=$logsDir\UnitsNet.msbuild.log"
3838

39-
dotnet build --configuration Release /p:ContinuousIntegrationBuild=true "$root\UnitsNet.sln" $fileLoggerArg
39+
dotnet build --configuration Release /p:ContinuousIntegrationBuild=true "$root\UnitsNet.slnx" $fileLoggerArg
4040
if ($lastexitcode -ne 0) { exit 1 }
4141

4242
if (-not $IncludeNanoFramework)

CodeGen/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static DirectoryInfo FindRepositoryRoot()
106106

107107
for (var dir = executableParentDir; dir != null; dir = dir.Parent)
108108
{
109-
if (dir.GetFiles("UnitsNet.sln").Any())
109+
if (dir.GetFiles("UnitsNet.slnx").Any())
110110
{
111111
Log.Verbose("Found repo root: {Dir}", dir);
112112
return dir;

Samples/MvvmSample.Wpf/MvvmSample.Wpf.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="MvvmSample.Wpf/MvvmSample.Wpf.csproj" />
3+
</Solution>

Samples/Samples.sln

Lines changed: 0 additions & 82 deletions
This file was deleted.

Samples/Samples.slnx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="Any CPU" />
4+
<Platform Name="ARM" />
5+
<Platform Name="x64" />
6+
<Platform Name="x86" />
7+
</Configurations>
8+
<Folder Name="/_Files/">
9+
<File Path="build.bat" />
10+
<File Path="Directory.Packages.props" />
11+
<File Path="msbuild.cmd" />
12+
</Folder>
13+
<Project Path="MvvmSample.Wpf/MvvmSample.Wpf/MvvmSample.Wpf.csproj">
14+
<Build Solution="*|ARM" Project="false" />
15+
</Project>
16+
<Project Path="UnitConverter.Console/UnitConverter.Console.csproj" />
17+
<Project Path="UnitConverter.Wpf/UnitConverter.Wpf/UnitConverter.Wpf.csproj">
18+
<Build Solution="*|ARM" Project="false" />
19+
</Project>
20+
</Solution>

Samples/UnitConverter.Wpf/UnitConverter.Wpf.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="UnitConverter.Wpf/UnitConverter.Wpf.csproj" />
3+
</Solution>

UnitsNet.sln

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)