diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-10 21:59:05 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-10 21:59:05 -0400 |
commit | 1c0d22e82c4690069754d211179d8aef636a3e7a (patch) | |
tree | dc15076933c45776838848f27bf07443645880e0 /src/SMAPI.ModBuildConfig/build/smapi.targets | |
parent | 5dfb12c2781c73854dc9aff2ae12b0a8de83c408 (diff) | |
download | SMAPI-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.targets | 6 |
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> |