diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-06-26 15:03:25 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-06-26 15:03:25 -0400 |
commit | 8254a821cc7e7c1f6f8e528e70ba8a9956b13bc4 (patch) | |
tree | b52081db289115bdf13e89c4cd5beb46c8655d02 /build | |
parent | bbc476a2cf3cbe1d7600f630c54a3c66c5146eb1 (diff) | |
download | SMAPI-8254a821cc7e7c1f6f8e528e70ba8a9956b13bc4.tar.gz SMAPI-8254a821cc7e7c1f6f8e528e70ba8a9956b13bc4.tar.bz2 SMAPI-8254a821cc7e7c1f6f8e528e70ba8a9956b13bc4.zip |
copy .NET metadata files on local deploy
Diffstat (limited to 'build')
-rw-r--r-- | build/deploy-local-smapi.targets | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build/deploy-local-smapi.targets b/build/deploy-local-smapi.targets index 80501788..cb330e24 100644 --- a/build/deploy-local-smapi.targets +++ b/build/deploy-local-smapi.targets @@ -44,6 +44,14 @@ This assumes `find-game-folder.targets` has already been imported and validated. <Copy SourceFiles="$(TargetDir)\System.Security.Permissions.dll" DestinationFolder="$(GamePath)\smapi-internal" /> </Target> + <!-- .NET metadata files --> + <Target Name="CopyNetMetadata" Condition="'$(MSBuildProjectName)' == 'SMAPI.Installer'" AfterTargets="PostBuildEvent"> + <Copy SourceFiles="$(TargetDir)\assets\runtimeconfig.json" DestinationFiles="$(GamePath)\StardewModdingAPI.runtimeconfig.json" /> + <Copy SourceFiles="$(TargetDir)\assets\windows-exe-config.xml" DestinationFiles="$(GamePath)\StardewModdingAPI.exe.config" Condition="$(OS) == 'Windows_NT'" /> + <Copy SourceFiles="$(GamePath)\Stardew Valley.deps.json" DestinationFiles="$(GamePath)\StardewModdingAPI.deps.json" Condition="!Exists('$(GamePath)\StardewModdingAPI.deps.json')" /> + </Target> + + <!-- bundled mods --> <Target Name="CopyDefaultMods" Condition="'$(MSBuildProjectName)' == 'SMAPI.Mods.ConsoleCommands' OR '$(MSBuildProjectName)' == 'SMAPI.Mods.ErrorHandler' OR '$(MSBuildProjectName)' == 'SMAPI.Mods.SaveBackup'"> <ItemGroup> <TranslationFiles Include="$(TargetDir)\i18n\*.json" /> @@ -55,12 +63,12 @@ This assumes `find-game-folder.targets` has already been imported and validated. <Copy SourceFiles="@(TranslationFiles)" DestinationFolder="$(GamePath)\Mods\$(AssemblyName)\i18n" /> </Target> + <!-- toolkit --> <Target Name="CopyToolkit" Condition="'$(MSBuildProjectName)' == 'SMAPI.Toolkit'" AfterTargets="PostBuildEvent"> <Copy SourceFiles="$(TargetDir)\$(TargetName).dll" DestinationFolder="$(GamePath)\smapi-internal" /> <Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)\smapi-internal" /> <Copy SourceFiles="$(TargetDir)\$(TargetName).xml" DestinationFolder="$(GamePath)\smapi-internal" /> </Target> - <Target Name="CopyToolkitCoreInterfaces" Condition="'$(MSBuildProjectName)' == 'SMAPI.Toolkit.CoreInterfaces'" AfterTargets="PostBuildEvent"> <Copy SourceFiles="$(TargetDir)\$(TargetName).dll" DestinationFolder="$(GamePath)\smapi-internal" /> <Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)\smapi-internal" /> |