Repository navigation
Expand file tree
/
Copy pathmillwright.csproj
More file actions
108 lines (103 loc) · 5.13 KB
/
Copy pathmillwright.csproj
File metadata and controls
108 lines (103 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="VSModTemplate Properties">
<TargetFramework>netstandard2.0</TargetFramework>
<!-- These are necessary because we're kind of jury rigging everything together between .NET Standard 2.0 and .NET 4.5.2. -->
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<!-- We also want to include debugging symbols in our NuGet packages, to make it easier for everyone (we don't care too much about the additional space requirement) -->
<IncludeSymbols>true</IncludeSymbols>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- And SourceLink requires us to have a repository available -->
<RepositoryUrl>https://gitlab.com/vsmods-public/foundation</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- We have a custom Configuration, so need to add it here -->
<Configurations>Debug;Release;ReleaseAndZip</Configurations>
</PropertyGroup>
<PropertyGroup Label="VSModTemplate Debug Properties" Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<!-- Template default references: -->
<ItemGroup Label="VSModTemplate References">
<Reference Include="VintagestoryAPI">
<HintPath>$(VINTAGE_STORY)/VintagestoryAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VintagestoryLib">
<HintPath>$(VINTAGE_STORY)/VintagestoryLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSSurvivalMod">
<HintPath>$(VINTAGE_STORY)/Mods/VSSurvivalMod.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSEssentials">
<HintPath>$(VINTAGE_STORY)/Mods/VSEssentials.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSCreativeMod">
<HintPath>$(VINTAGE_STORY)/Mods/VSCreativeMod.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(VINTAGE_STORY)/Lib/Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Harmony">
<HintPath>$(VINTAGE_STORY)/Lib/0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="protobuf-net">
<HintPath>$(VINTAGE_STORY)/Lib/protobuf-net.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SQLite">
<HintPath>$(VINTAGE_STORY)/Lib/System.Data.SQLite.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- Template includes: -->
<ItemGroup Label="VSModTemplate Includes">
<!-- This is what allows us to do the fancy IL weaving so we end up with a single dependency-version-independent release .dll! -->
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.18.2" PrivateAssets="all" />
<!-- Needed for SourceLink on GitLab -->
<PackageReference Include="Microsoft.SourceLink.GitLab" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<!-- Template ReleaseAndZip: -->
<PropertyGroup Label="Template ReleaseAndZipProperties" Condition="$(Configuration)=='ReleaseAndZip'">
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<Target Name="Package" AfterTargets="CleanTheOutput" Condition="'$(Configuration)' == 'ReleaseAndZip'">
<Delete Files="$(TargetDir)/$(TargetName).zip" ContinueOnError="true" />
<ZipDirectory DestinationFile="bin/$(TargetName).zip" SourceDirectory="$(TargetDir)" Overwrite="true" />
<RemoveDir Directories="$(TargetDir)" />
<Move SourceFiles="bin/$(TargetName).zip" DestinationFiles="$(TargetDir)/$(TargetName).zip" />
</Target>
<!-- Template content: -->
<ItemGroup Label="VSModTemplate Content">
<Content Include="assets/**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Compile Remove="assets\millwright\patches\**" />
<Content Remove="assets\millwright\patches\**" />
<EmbeddedResource Remove="assets\millwright\patches\**" />
<None Remove="assets\millwright\patches\**" />
<None Remove="assets\millwright\itemtypes\resource\sailangled.json" />
<None Remove="assets\millwright\itemtypes\resource\sailcentered.json" />
<None Remove="assets\millwright\recipes\grid\sails.json" />
<None Remove="assets\millwright\recipes\grid\windmillrotor.json" />
<None Update="modinfo.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="modicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="assets\millwright\lang\" />
<Folder Include="assets\millwright\shapes\item\" />
</ItemGroup>
</Project>