summaryrefslogtreecommitdiff
path: root/src/SMAPI.ModBuildConfig/build/smapi.targets
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.ModBuildConfig/build/smapi.targets')
-rw-r--r--src/SMAPI.ModBuildConfig/build/smapi.targets6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI.ModBuildConfig/build/smapi.targets b/src/SMAPI.ModBuildConfig/build/smapi.targets
index 0010d8ff..9f3f13f5 100644
--- a/src/SMAPI.ModBuildConfig/build/smapi.targets
+++ b/src/SMAPI.ModBuildConfig/build/smapi.targets
@@ -3,6 +3,7 @@
** Import build tasks
**********************************************-->
<UsingTask TaskName="DeployModTask" AssemblyFile="StardewModdingAPI.ModBuildConfig.dll" />
+ <UsingTask TaskName="ValidateInstallTask" AssemblyFile="StardewModdingAPI.ModBuildConfig.dll" />
<!--*********************************************
** Find the basic mod metadata
@@ -117,6 +118,9 @@
<!--*********************************************
** Deploy mod files & create release zip after build
**********************************************-->
+ <Target Name="BeforeBuild">
+ <ValidateInstallTask GameDir="$(GamePath)" Platform="$(OS)" />
+ </Target>
<Target Name="AfterBuild">
<DeployModTask
ModFolderName="$(ModFolderName)"
@@ -128,8 +132,6 @@
ProjectDir="$(ProjectDir)"
TargetDir="$(TargetDir)"
GameDir="$(GamePath)"
-
- Platform="$(OS)"
/>
</Target>
</Project>