diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-09 19:32:00 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-09 19:32:00 -0400 |
commit | f52f7ca36f2ecf3d4478c5bc1e9cd95e5ff53929 (patch) | |
tree | 6aa610c541bbebd2d14879235474028f6aef30fb /build | |
parent | 22965604bfa5858a089d842173cdebe6aaed0ed8 (diff) | |
download | SMAPI-f52f7ca36f2ecf3d4478c5bc1e9cd95e5ff53929.tar.gz SMAPI-f52f7ca36f2ecf3d4478c5bc1e9cd95e5ff53929.tar.bz2 SMAPI-f52f7ca36f2ecf3d4478c5bc1e9cd95e5ff53929.zip |
add mod code analyzers to detect implicit net field conversion issues (#471)
Diffstat (limited to 'build')
-rw-r--r-- | build/prepare-nuget-package.targets | 20 |
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> |