|
1 | 1 | <?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"> |
3 | 3 | <PropertyGroup>
|
4 |
| - <OutputType>Library</OutputType> |
5 |
| - <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
| 4 | + <TargetFramework>net472</TargetFramework> |
6 | 5 | <LangVersion>8.0</LangVersion>
|
7 | 6 | <Nullable>enable</Nullable>
|
8 | 7 | <WarningLevel>4</WarningLevel>
|
9 | 8 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
10 |
| - <OutputPath>bin/$(Configuration)</OutputPath> |
11 | 9 | </PropertyGroup>
|
12 | 10 | <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
13 | 11 | <Optimize>false</Optimize>
|
|
43 | 41 | <HintPath>references/Nautilus.refasm.dll</HintPath>
|
44 | 42 | </Reference>
|
45 | 43 | </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/Patches.cs"/> |
51 |
| - <Compile Include="src/Options.cs"/> |
52 |
| - </ItemGroup> |
53 |
| - <Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets"/> |
54 | 44 | <Target Name="CopyToTargetDir" AfterTargets="Build">
|
55 |
| - <Copy SourceFiles="$(TargetPath);LICENSE;$(DocumentationFile)" DestinationFolder="target/$(Configuration)"/> |
| 45 | + <Copy |
| 46 | + SourceFiles="$(TargetPath);LICENSE;$(DocumentationFile)" |
| 47 | + DestinationFolder="target/$(Configuration)" |
| 48 | + /> |
56 | 49 | <Copy SourceFiles="dist-readme.md" DestinationFiles="target/$(Configuration)/README.md"/>
|
57 | 50 | <WriteLinesToFile File="target/$(Configuration)/load-order.txt" Overwrite="True"/>
|
58 | 51 | <MakeDir Directories="target/$(Configuration)/patches"/>
|
59 | 52 | </Target>
|
60 |
| - <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 | + > |
61 | 58 | <ReadLinesFromFile File="game-dirs.txt">
|
62 | 59 | <Output TaskParameter="Lines" ItemName="GameDirs"/>
|
63 | 60 | </ReadLinesFromFile>
|
|
70 | 67 | <Copy SourceFiles="@(TargetFiles)" DestinationFolder="%(GameDirs.Identity)/$(PluginDir)"/>
|
71 | 68 | <MakeDir Directories="%(GameDirs.Identity)/$(PluginDir)/patches"/>
|
72 | 69 | </Target>
|
73 |
| - <Target Name="ZipDist" AfterTargets="CopyToTargetDir" Condition="'$(Configuration)' == 'Release'"> |
| 70 | + <Target |
| 71 | + Name="ZipDist" |
| 72 | + AfterTargets="CopyToTargetDir" |
| 73 | + Condition="'$(Configuration)' == 'Release'" |
| 74 | + > |
74 | 75 | <CreateItem Include="target/$(Configuration)/**/*">
|
75 | 76 | <Output TaskParameter="Include" ItemName="TargetFiles"/>
|
76 | 77 | </CreateItem>
|
77 | 78 | <Copy SourceFiles="@(TargetFiles)" DestinationFolder="target/dist/$(ProjectName)"/>
|
78 | 79 | <MakeDir Directories="target/dist/$(ProjectName)/patches"/>
|
79 |
| - <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 | + /> |
80 | 85 | </Target>
|
81 | 86 | </Project>
|
0 commit comments