summaryrefslogtreecommitdiff
path: root/build/prepare-nuget-package.targets
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-10 18:27:09 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-10 18:27:09 -0400
commit77b4d1e9a2187b3fb1222da5a7209c1bbb6f6d3c (patch)
treea04fdb9e5e0b1bdd49ac5097487f6186797abfc0 /build/prepare-nuget-package.targets
parent9fba3c12667555958e2eb6ecf1d2ebe47fd77c58 (diff)
parentb74b530a8acd850a0fa04f24347b91f02be7cbb6 (diff)
downloadSMAPI-77b4d1e9a2187b3fb1222da5a7209c1bbb6f6d3c.tar.gz
SMAPI-77b4d1e9a2187b3fb1222da5a7209c1bbb6f6d3c.tar.bz2
SMAPI-77b4d1e9a2187b3fb1222da5a7209c1bbb6f6d3c.zip
Merge branch 'feature/mod-code-analysis' into develop
Diffstat (limited to 'build/prepare-nuget-package.targets')
-rw-r--r--build/prepare-nuget-package.targets20
1 files changed, 20 insertions, 0 deletions
diff --git a/build/prepare-nuget-package.targets b/build/prepare-nuget-package.targets
new file mode 100644
index 00000000..5dbc5508
--- /dev/null
+++ b/build/prepare-nuget-package.targets
@@ -0,0 +1,20 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!--
+
+ This build task is run from the ModBuildConfig project after it's been compiled, and copies the
+ package files to the bin\Pathoschild.Stardew.ModBuildConfig folder.
+
+ -->
+ <Target Name="AfterBuild">
+ <PropertyGroup>
+ <PackagePath>$(SolutionDir)\..\bin\Pathoschild.Stardew.ModBuildConfig</PackagePath>
+ </PropertyGroup>
+ <RemoveDir Directories="$(PackagePath)" />
+ <Copy SourceFiles="$(ProjectDir)/package.nuspec" DestinationFolder="$(PackagePath)" />
+ <Copy SourceFiles="$(ProjectDir)/build/smapi.targets" DestinationFiles="$(PackagePath)/build/Pathoschild.Stardew.ModBuildConfig.targets" />
+ <Copy SourceFiles="$(TargetDir)/StardewModdingAPI.ModBuildConfig.dll" DestinationFiles="$(PackagePath)/build/StardewModdingAPI.ModBuildConfig.dll" />
+ <Copy SourceFiles="$(SolutionDir)/SMAPI.ModBuildConfig.Analyzer/bin/netstandard1.3/StardewModdingAPI.ModBuildConfig.Analyzer.dll" DestinationFiles="$(PackagePath)/analyzers/dotnet/cs/StardewModdingAPI.ModBuildConfig.Analyzer.dll" />
+ <Copy SourceFiles="$(SolutionDir)/SMAPI.ModBuildConfig.Analyzer/tools/install.ps1" DestinationFiles="$(PackagePath)/tools/install.ps1" />
+ <Copy SourceFiles="$(SolutionDir)/SMAPI.ModBuildConfig.Analyzer/tools/uninstall.ps1" DestinationFiles="$(PackagePath)/tools/uninstall.ps1" />
+ </Target>
+</Project>