-
Notifications
You must be signed in to change notification settings - Fork 3
/
DoonvHelper.csproj
93 lines (83 loc) · 3.8 KB
/
DoonvHelper.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net452</TargetFramework>
<AssemblyName>DoonvHelper</AssemblyName>
<RootNamespace>Celeste.Mod.DoonvHelper</RootNamespace>
<LangVersion>latest</LangVersion>
<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('..\..\Celeste.exe')">..\..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('..\..\..\Celeste.exe')">
..\..\..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == ''">lib-stripped</CelestePrefix>
<CelesteType
Condition="'$(CelesteType)' == '' And Exists('$(CelestePrefix)\BuildIsXNA.txt')">XNA</CelesteType>
<CelesteType Condition="'$(CelesteType)' == ''">FNA</CelesteType>
<XNAPath Condition="'$(XNAPath)' == ''">
$(WINDIR)\Microsoft.NET\assembly\GAC_32\{0}\v4.0_4.0.0.0__842cf8be1de50553\{0}.dll</XNAPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<OutputPath>bin</OutputPath>
</PropertyGroup>
<!--Disable
"Copy Local" for all references-->
<ItemDefinitionGroup>
<PackageReference PrivateAssets="all" ExcludeAssets="runtime" />
<Reference Private="false" />
</ItemDefinitionGroup>
<ItemGroup>
<PackageReference Include="MonoMod.RuntimeDetour" Version="22.01.04.03" PrivateAssets="all"
ExcludeAssets="runtime" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="$(CelestePrefix)\legacyRef\Celeste.exe">
<Private>false</Private>
</Reference>
<Reference Include="$(CelestePrefix)\legacyRef\MMHOOK_Celeste.dll">
<Private>false</Private>
</Reference>
<Reference Include="Guneline">
<HintPath>../Cache/Guneline.Guneline.dll</HintPath>
</Reference>
<Reference Include="LuaCutscenes">
<HintPath>../Cache/LuaCutscenes.LuaCutscenes.dll</HintPath>
</Reference>
<Reference Include="XaphanHelper">
<HintPath>../Cache/XaphanHelper.XaphanHelper.dll</HintPath>
</Reference>
</ItemGroup>
<Choose>
<When Condition="'$(CelesteType)' == 'FNA'">
<ItemGroup>
<Reference Include="$(CelestePrefix)\FNA.dll">
<Private>false</Private>
</Reference>
</ItemGroup>
</When>
<When Condition="'$(CelesteType)' == 'XNA'">
<ItemGroup>
<Reference
Include="$([System.String]::Format('$(XNAPath)', 'Microsoft.Xna.Framework'))">
<Private>false</Private>
</Reference>
<Reference
Include="$([System.String]::Format('$(XNAPath)', 'Microsoft.Xna.Framework.Game'))">
<Private>false</Private>
</Reference>
<Reference
Include="$([System.String]::Format('$(XNAPath)', 'Microsoft.Xna.Framework.Graphics'))">
<Private>false</Private>
</Reference>
</ItemGroup>
</When>
</Choose>
<Target Name="CopyFiles" AfterTargets="Build">
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="bin" />
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).pdb" DestinationFolder="bin" />
</Target>
<PropertyGroup>
<PathMap>$(MSBuildProjectDirectory)=DoonvHelper/</PathMap>
</PropertyGroup>
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
</Project>