-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
59 lines (52 loc) · 2.54 KB
/
Directory.Build.props
File metadata and controls
59 lines (52 loc) · 2.54 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
<Project>
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net472</TargetFramework>
<LangVersion>14.0</LangVersion>
<Nullable>enable</Nullable>
<Deterministic>true</Deterministic>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<DebugType>portable</DebugType>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<CopyToLibraries Condition="'$(CopyToLibraries)'==''">true</CopyToLibraries>
<RestoreAdditionalProjectSources>
https://nuget.pkg.github.com/MonkeyModdingGroup/index.json
</RestoreAdditionalProjectSources>
</PropertyGroup>
<PropertyGroup Condition="'$(NugetPath)'==''">
<NugetPath Condition="'$(OS)' == 'Windows_NT'">nuget.exe</NugetPath>
<NugetPath Condition="'$(OS)' != 'Windows_NT'">/bin/nuget</NugetPath>
<NugetPath Condition="Exists('S:\NuGet\nuget.exe')">S:\NuGet\nuget.exe</NugetPath>
</PropertyGroup>
<PropertyGroup Condition="'$(ResonitePath)'==''">
<ResonitePath>$(MSBuildThisFileDirectory)Resonite/</ResonitePath>
<ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')">C:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath>
<ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite\</ResonitePath>
<ResonitePath Condition="Exists('D:/Files/Games/Resonite/app/')">D:/Files/Games/Resonite/app/</ResonitePath>
</PropertyGroup>
<Target Name="PackNugetPkg">
<Message Text="Packing Resonite Game Pack" Importance="high" />
<Exec
Condition="'$(Configuration)'!='Release'"
Command="$(NugetPath) pack "$(ProjectDir)$(NuPkgName).Debug.nuspec" -OutputFileNamesWithoutVersion"
ConsoleToMSBuild="true"
>
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec
Condition="'$(Configuration)'=='Release'"
Command="$(NugetPath) pack "$(ProjectDir)$(NuPkgName).nuspec" -OutputFileNamesWithoutVersion"
ConsoleToMSBuild="true"
>
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Copy
Condition="'$(CopyToLibraries)'=='true'"
SourceFiles="$(ProjectDir)$(NuPkgName).nupkg"
DestinationFiles="$(ResonitePath)Renderer\MonkeyLoader\GamePacks\$(NuPkgName).nupkg" />
<Message
Condition="'$(CopyToLibraries)'=='true'"
Text="Copied '$(NuPkgName).nupkg' to '$(ResonitePath)Renderer\MonkeyLoader\GamePacks\$(NuPkgName).nupkg'"
Importance="high" />
</Target>
</Project>