-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleModMonkey.csproj
More file actions
37 lines (37 loc) · 2.34 KB
/
Copy pathSampleModMonkey.csproj
File metadata and controls
37 lines (37 loc) · 2.34 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
<Project>
<PropertyGroup>
<BaseOutputPath>bin\MonkeyLoader</BaseOutputPath>
<BaseIntermediateOutputPath>obj\MonkeyLoader</BaseIntermediateOutputPath>
<StartAction>Program</StartAction>
<StartArguments>-Screen</StartArguments>
<VariantSuffix>MonkeyLoader</VariantSuffix>
</PropertyGroup>
<Import Project="./SampleMod.csproj" />
<PropertyGroup>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<Target Name="ExtractInstalledMonkeyMods" BeforeTargets="Restore;CollectPackageReferences">
<Exec Condition="$([MSBuild]::IsOSPlatform('Windows')) And Exists('$(ResonitePath)\MonkeyLoader')" Command="
 nuget init "$(ResonitePath)\MonkeyLoader\GamePacks" "$(MSBuildProjectDirectory)\MonkeyLoader GamePacks"
 nuget init "$(ResonitePath)\MonkeyLoader\Mods" "$(MSBuildProjectDirectory)\MonkeyLoader Mods"" />
<Exec Condition="$([MSBuild]::IsOSPlatform('Linux')) And Exists('$(ResonitePath)/MonkeyLoader')" Command="
 nuget init "$(ResonitePath)/MonkeyLoader/GamePacks" "$(MSBuildProjectDirectory)/MonkeyLoader GamePacks"
 nuget init "$(ResonitePath)/MonkeyLoader/Mods" "$(MSBuildProjectDirectory)/MonkeyLoader Mods"" />
</Target>
<Target Name="MovePack" AfterTargets="Pack">
<Exec Condition="$([MSBuild]::IsOSPlatform('Windows'))" Command="copy /Y "$(OutputPath)\..\$(AssemblyName).$(Version).nupkg" "$(ResonitePath)\MonkeyLoader\Mods\$(AssemblyName).nupkg"" />
<Exec Condition="$([MSBuild]::IsOSPlatform('Linux'))" Command="cp -f "$(OutputPath)/../$(AssemblyName).$(Version).nupkg" "$(ResonitePath)/MonkeyLoader/Mods/$(AssemblyName).nupkg"" />
</Target>
<ItemGroup>
<Reference Include="Harmony">
<HintPath>$(ResonitePath)\0Harmony.dll</HintPath>
</Reference>
<Reference Include="MonkeyLoader">
<HintPath>$(ResonitePath)\MonkeyLoader.dll</HintPath>
</Reference>
<PackageReference Include="MonkeyLoader.GamePacks.Resonite" Version="1.0.1" />
</ItemGroup>
<ItemGroup>
<Folder Include="Mod.Monkey"/>
<Folder Include="Patches.Harmony"/>
<Compile Include="Mod.Monkey/**/*.cs"/>
<Compile Include="Patches.Harmony/**/*.cs"/>
</ItemGroup>
</Project>