Skip to content

Commit d83269f

Browse files
committed
Merged changes from master.
2 parents 2cb5da2 + f9b14a6 commit d83269f

File tree

3 files changed

+28
-25
lines changed

3 files changed

+28
-25
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout Repository
1414
uses: actions/checkout@v2
1515
- name: Build
16-
run: msbuild -property:Configuration=Release
16+
run: dotnet build --configuration Release
1717
- name: Upload Artifact
1818
uses: actions/upload-artifact@v4
1919
with:

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ contributions [as a pull request](https://github.com/Esper89/Subnautica-TerrainP
159159

160160
### Building
161161

162-
To build Terrain Patcher, run `msbuild` in the project's root directory. This will build in debug
163-
mode, and the output will be placed in `target/Debug`. If you create a file in the project root
164-
called `game-dirs.txt` and input the paths to your Subnautica and/or Below Zero installations (one
165-
per line), the output of debug builds will be automatically installed into those game directories
166-
for easier testing.
162+
To build Terrain Patcher, run `dotnet build` in the project's root directory. This will build in
163+
debug mode, and the output will be placed in `target/Debug`. If you create a file in the project
164+
root called `game-dirs.txt` and input the paths to your Subnautica and/or Below Zero installations
165+
(one per line), the output of debug builds will be automatically installed into those game
166+
directories for easier testing.
167167

168-
To build Terrain Patcher in release mode, run `msbuild -property:Configuration=Release`. This will
168+
To build Terrain Patcher in release mode, run `dotnet build --configuration Release`. This will
169169
also create a `dist.zip` file in `target` for easy distribution.
170170

171171
### Contributors

TerrainPatcher.csproj

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<OutputType>Library</OutputType>
5-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
4+
<TargetFramework>net472</TargetFramework>
65
<LangVersion>8.0</LangVersion>
76
<Nullable>enable</Nullable>
87
<WarningLevel>4</WarningLevel>
98
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
10-
<OutputPath>bin/$(Configuration)</OutputPath>
119
</PropertyGroup>
1210
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
1311
<Optimize>false</Optimize>
@@ -43,23 +41,20 @@
4341
<HintPath>references/Nautilus.refasm.dll</HintPath>
4442
</Reference>
4543
</ItemGroup>
46-
<ItemGroup>
47-
<Compile Include="src/Mod.cs"/>
48-
<Compile Include="src/Terrain.cs"/>
49-
<Compile Include="src/FileLoading.cs"/>
50-
<Compile Include="src/Options.cs"/>
51-
<Compile Include="src/Patches/Batches.cs"/>
52-
<Compile Include="src/Patches/Array3.cs"/>
53-
<Compile Include="src/Patches/WorldStreamer.cs"/>
54-
</ItemGroup>
55-
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets"/>
5644
<Target Name="CopyToTargetDir" AfterTargets="Build">
57-
<Copy SourceFiles="$(TargetPath);LICENSE;$(DocumentationFile)" DestinationFolder="target/$(Configuration)"/>
45+
<Copy
46+
SourceFiles="$(TargetPath);LICENSE;$(DocumentationFile)"
47+
DestinationFolder="target/$(Configuration)"
48+
/>
5849
<Copy SourceFiles="dist-readme.md" DestinationFiles="target/$(Configuration)/README.md"/>
5950
<WriteLinesToFile File="target/$(Configuration)/load-order.txt" Overwrite="True"/>
6051
<MakeDir Directories="target/$(Configuration)/patches"/>
6152
</Target>
62-
<Target Name="CopyToModsDir" AfterTargets="CopyToTargetDir" Condition="'$(Configuration)' == 'Debug' And Exists('game-dirs.txt')">
53+
<Target
54+
Name="CopyToModsDir"
55+
AfterTargets="CopyToTargetDir"
56+
Condition="'$(Configuration)' == 'Debug' And Exists('game-dirs.txt')"
57+
>
6358
<ReadLinesFromFile File="game-dirs.txt">
6459
<Output TaskParameter="Lines" ItemName="GameDirs"/>
6560
</ReadLinesFromFile>
@@ -72,12 +67,20 @@
7267
<Copy SourceFiles="@(TargetFiles)" DestinationFolder="%(GameDirs.Identity)/$(PluginDir)"/>
7368
<MakeDir Directories="%(GameDirs.Identity)/$(PluginDir)/patches"/>
7469
</Target>
75-
<Target Name="ZipDist" AfterTargets="CopyToTargetDir" Condition="'$(Configuration)' == 'Release'">
70+
<Target
71+
Name="ZipDist"
72+
AfterTargets="CopyToTargetDir"
73+
Condition="'$(Configuration)' == 'Release'"
74+
>
7675
<CreateItem Include="target/$(Configuration)/**/*">
7776
<Output TaskParameter="Include" ItemName="TargetFiles"/>
7877
</CreateItem>
7978
<Copy SourceFiles="@(TargetFiles)" DestinationFolder="target/dist/$(ProjectName)"/>
8079
<MakeDir Directories="target/dist/$(ProjectName)/patches"/>
81-
<ZipDirectory SourceDirectory="target/dist" DestinationFile="target/dist.zip" Overwrite="True"/>
80+
<ZipDirectory
81+
SourceDirectory="target/dist"
82+
DestinationFile="target/dist.zip"
83+
Overwrite="True"
84+
/>
8285
</Target>
8386
</Project>

0 commit comments

Comments
 (0)