-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaveRecovery.csproj
More file actions
71 lines (68 loc) · 3.55 KB
/
SaveRecovery.csproj
File metadata and controls
71 lines (68 loc) · 3.55 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
<Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
<OutputPath>bin\Debug</OutputPath>
<ModName>SaveRecovery</ModName>
<UserDir>$(HOMEDRIVE)$(HOMEPATH)</UserDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<LanguageTargets>$(MSBuildToolsPath)\Microsoft.CSharp.targets</LanguageTargets>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<MyStationeersDir>$(UserDir)\Documents\My Games\Stationeers\</MyStationeersDir>
<ModOutputPath>$(MyStationeersDir)mods\$(ModName)\</ModOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<Import Project="$(SolutionDir)$(ModName).VS.props" />
<ItemDefinitionGroup>
<ModFile DestFolder="" />
</ItemDefinitionGroup>
<ItemGroup>
<GameReference Include="Assembly-CSharp" />
<GameReference Include="UnityEngine" />
<GameReference Include="UnityEngine.CoreModule" />
<GameReference Include="0Harmony" />
<_GameRefCandidate Include="@(GameReference->'$(StationeersDirectory)\rocketstation_Data\Managed\%(Identity).dll')" />
<_GameRefCandidate Include="@(GameReference->'$(StationeersDirectory)\BepInEx\core\%(Identity).dll')" />
<_GameRefResolved Include="@(_GameRefCandidate->Exists())" Path="%(FullPath)" />
<Reference Include="@(_GameRefResolved->'%(FileName)')" HintPath="%(Path)" Private="False" />
<_MissingRef Include="@(GameReference)" Exclude="@(Reference)" />
</ItemGroup>
<Target Name="ValidateGameRefs" BeforeTargets="Build" Condition="'@(_MissingRef)' != ''">
<Error Text="Failed to resolve GameReference %(_MissingRef.Identity)" />
</Target>
<Target Name="CopyToMods" AfterTargets="Build">
<ItemGroup>
<ModFile Include="$(ProjectDir)\GameData\**\*.*" DestFolder="GameData\%(RecursiveDir)" />
<ModFile Include="$(ProjectDir)\About\**\*.*" DestFolder="About\%(RecursiveDir)" />
<ModFile Include="$(OutputPath)\$(ModName).dll" />
<PdbFile Include="$(OutputPath)\$(ModName).pdb" Condition=" '$(Configuration)' == 'Debug' " />
<_ModFiles Include="@(ModFile)">
<Dest>$(ModOutputPath)%(DestFolder)%(FileName)%(Extension)</Dest>
<PrettySrc>$([System.String]::Copy('%(FullPath)').Replace('$(ProjectDir)', ''))</PrettySrc>
<PrettyDest>$([System.String]::Copy('%(ModFile.Dest)').Replace('$(MyStationeersDir)', ''))</PrettyDest>
</_ModFiles>
</ItemGroup>
<RemoveDir Directories="$(ModOutputPath)" />
<Message Text="%(_ModFiles.PrettySrc) -> %(_ModFiles.PrettyDest)" Importance="high" />
<Copy SourceFiles="%(_ModFiles.FullPath)" DestinationFiles="%(_ModFiles.Dest)" />
</Target>
</Project>