-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAssetReplacer.csproj
69 lines (63 loc) · 2.33 KB
/
AssetReplacer.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>AssetReplacer</AssemblyName>
<Description>Replace assets in 20MTD</Description>
<Version>20.2.0</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RootNamespace>AssetReplacer</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
<PackageReference Include="UnityEngine.Modules" Version="2019.4.40" IncludeAssets="compile" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>lib\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>lib\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="mscorlib">
<HintPath>lib\mscorlib.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>lib\UnityEngine.UI.dll</HintPath>
</Reference>
</ItemGroup>
<!--Exclude example plugin from compile-->
<ItemGroup>
<Content Remove="exampleplugin\**" />
<Compile Remove="exampleplugin\**" />
<EmbeddedResource Remove="exampleplugin\**" />
<None Remove="exampleplugin\**" />
</ItemGroup>
<!--Release packaging-->
<Target Name="Package" AfterTargets="Publish">
<MakeDir
Directories="$(MSBuildProjectDirectory)\release"
/>
<Copy
SourceFiles="@(MainAssembly)" DestinationFolder="$(MSBuildProjectDirectory)\release"
/>
<Copy
SourceFiles="
$(MSBuildProjectDirectory)\README.md;
$(MSBuildProjectDirectory)\icon.png;
$(MSBuildProjectDirectory)\manifest.json
"
DestinationFolder="$(MSBuildProjectDirectory)\release"
/>
<ZipDirectory
SourceDirectory="$(MSBuildProjectDirectory)\release"
DestinationFile="$(MSBuildProjectDirectory)\$(AssemblyName)-v$(Version).zip"
Overwrite="true"
/>
</Target>
</Project>