Skip to content

Commit abe6a36

Browse files
committed
Migrate solution file to new format
1 parent 14ae995 commit abe6a36

File tree

10 files changed

+35
-147
lines changed

10 files changed

+35
-147
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
dotnet-version: "10"
4444

4545
- name: Test
46-
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true -p:RunStyleCop=false
46+
run: dotnet test BizHawk.slnx -c Release -p:ContinuousIntegrationBuild=true -p:RunStyleCop=false
4747
shell: pwsh
4848

4949
package:

BizHawk.sln

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

BizHawk.slnx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Solution>
2+
<Project Path="src/BizHawk.BizInvoke/BizHawk.BizInvoke.csproj" />
3+
<Project Path="src/BizHawk.Bizware.Audio/BizHawk.Bizware.Audio.csproj" />
4+
<Project Path="src/BizHawk.Bizware.Graphics.Controls/BizHawk.Bizware.Graphics.Controls.csproj" />
5+
<Project Path="src/BizHawk.Bizware.Graphics/BizHawk.Bizware.Graphics.csproj" />
6+
<Project Path="src/BizHawk.Bizware.Input/BizHawk.Bizware.Input.csproj" />
7+
<Project Path="src/BizHawk.Common/BizHawk.Common.csproj" />
8+
<Folder Name="/Client/">
9+
<Project Path="src/BizHawk.Client.Common/BizHawk.Client.Common.csproj" />
10+
<Project Path="src/BizHawk.Client.DiscoHawk/BizHawk.Client.DiscoHawk.csproj" />
11+
<Project Path="src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj" />
12+
<Project Path="src/BizHawk.WinForms.Controls/BizHawk.WinForms.Controls.csproj" />
13+
</Folder>
14+
<Folder Name="/Emulation/">
15+
<Project Path="src/BizHawk.Emulation.Common/BizHawk.Emulation.Common.csproj" />
16+
<Project Path="src/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj" />
17+
<Project Path="src/BizHawk.Emulation.DiscSystem/BizHawk.Emulation.DiscSystem.csproj" />
18+
</Folder>
19+
<Folder Name="/Tests/">
20+
<Project Path="src/BizHawk.Tests.Client.Common/BizHawk.Tests.Client.Common.csproj" />
21+
<Project Path="src/BizHawk.Tests.Common/BizHawk.Tests.Common.csproj" />
22+
<Project Path="src/BizHawk.Tests.Emulation.Common/BizHawk.Tests.Emulation.Common.csproj" />
23+
</Folder>
24+
</Solution>

Dist/.BuildInConfigX.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
set -e
3-
if [ ! -e "BizHawk.sln" ]; then
3+
if [ ! -e "BizHawk.slnx" ]; then
44
printf "wrong cwd (ran manually)? exiting\n"
55
exit 1
66
fi

Dist/.BuildTestInConfigX.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
if [ ! -e "BizHawk.sln" ]; then
2+
if [ ! -e "BizHawk.slnx" ]; then
33
printf "wrong cwd (ran manually)? exiting\n"
44
exit 1
55
fi

Dist/.InvokeCLIOnMainSln.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
set -e
3-
if [ ! -e "BizHawk.sln" ]; then
3+
if [ ! -e "BizHawk.slnx" ]; then
44
printf "wrong cwd (ran manually)? exiting\n"
55
exit 1
66
fi
@@ -12,4 +12,4 @@ if [ -z "$NUGET_PACKAGES" ]; then export NUGET_PACKAGES="$HOME/.nuget/packages";
1212
printf "running 'dotnet %s' in %s configuration, extra args: %s\n" "$cmd" "$config" "$*"
1313
version=$(grep -Po "MainVersion = \"\K(.*)(?=\")" src/BizHawk.Common/VersionInfo.cs)
1414
git_hash="$(git rev-parse --verify HEAD 2>/dev/null || printf "0000000000000000000000000000000000000000")"
15-
dotnet "$cmd" BizHawk.sln -c "$config" -m -clp:NoSummary -p:Version="$version" -p:SourceRevisionId="$git_hash" "$@"
15+
dotnet "$cmd" BizHawk.slnx -c "$config" -m -clp:NoSummary -p:Version="$version" -p:SourceRevisionId="$git_hash" "$@"

Dist/QuickTestBuildAndPackage.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if "%1"=="" (
99
git --version > NUL
1010
@if errorlevel 1 goto MISSINGGIT
1111

12-
dotnet build ..\BizHawk.sln -c Release --no-incremental
12+
dotnet build ..\BizHawk.slnx -c Release --no-incremental
1313
@if not errorlevel 0 goto DOTNETBUILDFAILED
1414
rem -p:Platform="Any CPU"
1515

Dist/nix_expr_usage_docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ nix-build --pure -A emuhawk.fetch-deps && ./result
8181
```sh
8282
nix-shell # = `nix-shell -A emuhawk-latest`
8383
# (in shell):
84-
Dist/BuildDebug.sh # = `dotnet build -c Debug BizHawk.sln`
84+
Dist/BuildDebug.sh # = `dotnet build -c Debug BizHawk.slnx`
8585
emuhawk-monort-local # = `cd output && mono EmuHawk.exe`
8686

8787
# if deps (besides NuGet packages) have changed, may need to do this instead, but it will do a slow copy of the repo to the Nix store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ See the [contributor guidelines](https://github.com/TASEmulators/BizHawk/blob/ma
215215

216216
tl;dr:
217217
- On Unix, run `Dist/BuildRelease.sh` (uses .NET SDK CLI). You can also use Rider or VS Code.
218-
- On Windows, run in [VS2022](https://visualstudio.microsoft.com/vs/community). You can also use the command-line (`dotnet build BizHawk.sln`), Rider, or VS Code.
218+
- On Windows, run in [VS2022](https://visualstudio.microsoft.com/vs/community). You can also use the command-line (`dotnet build BizHawk.slnx`), Rider, or VS Code.
219219

220220
[to top](#bizhawk)
221221

contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ Uses C#; you will need the .NET SDK or an IDE which includes it. See the [.NET s
113113
Most projects target .NET Standard 2.0, with some targeting .NET Framework 4.8. It's written at the top of their project files, or you can check the [project graph](https://github.com/TASEmulators/BizHawk/wiki/Dependencies#main-solution).
114114

115115
The source for EmuHawk, plus DiscoHawk and the supporting libraries, is in `/src`, with a few extra files used by the build system elsewhere.
116-
EmuHawk's project file `/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj` includes the other projects [in a tree](https://github.com/TASEmulators/BizHawk/wiki/Dependencies#main-solution), and they're all included in `/BizHawk.sln`.
116+
EmuHawk's project file `/src/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj` includes the other projects [in a tree](https://github.com/TASEmulators/BizHawk/wiki/Dependencies#main-solution), and they're all included in `/BizHawk.slnx`.
117117

118-
In VS2022, open `BizHawk.sln`, then select the "BizHawk.Client.EmuHawk | Release" configuration to build and run.
119-
To build from the command-line on Windows, simply run `dotnet build BizHawk.sln` from the repository's root, and then `output\EmuHawk.exe` will be available. Alternatively, you can run one of the existing build scripts that apply additional checks and configurations, such as `Dist\QuickTestBuildAndPackage_Release.bat`.
118+
In VS2022, open `BizHawk.slnx`, then select the "BizHawk.Client.EmuHawk | Release" configuration to build and run.
119+
To build from the command-line on Windows, simply run `dotnet build BizHawk.slnx` from the repository's root, and then `output\EmuHawk.exe` will be available. Alternatively, you can run one of the existing build scripts that apply additional checks and configurations, such as `Dist\QuickTestBuildAndPackage_Release.bat`.
120120
To build from the command-line on Unix, run `Dist/BuildRelease.sh`, and then `output/EmuHawkMono.sh` will be available.
121121

122122
There are 2 build configurations. Besides `Release` there is `Debug`, which *does not run* bytecode optimisations, *does not remove* debugging symbols, *enables* additional logging and assertions, and *enables* some features. On Windows, a `Debug` executable will spawn a console window for stdout. Note there is also a "stronger" release build in the form of `VersionInfo.DeveloperBuild == false`, which is only used by GitLab CI for preparing a release (during `Dist/UpdateVersionInfoForRelease.sh`).

0 commit comments

Comments
 (0)