summaryrefslogtreecommitdiff
path: root/src/SMAPI.ModBuildConfig/build/smapi.targets
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-10 21:59:05 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-10 21:59:05 -0400
commit1c0d22e82c4690069754d211179d8aef636a3e7a (patch)
treedc15076933c45776838848f27bf07443645880e0 /src/SMAPI.ModBuildConfig/build/smapi.targets
parent5dfb12c2781c73854dc9aff2ae12b0a8de83c408 (diff)
downloadSMAPI-1c0d22e82c4690069754d211179d8aef636a3e7a.tar.gz
SMAPI-1c0d22e82c4690069754d211179d8aef636a3e7a.tar.bz2
SMAPI-1c0d22e82c4690069754d211179d8aef636a3e7a.zip
validate build context before build
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>