rename build task for broader use

This commit is contained in:
Jesse Plamondon-Willard 2017-10-08 14:50:04 -04:00
parent 5161ceae52
commit abe52deba7
3 changed files with 6 additions and 6 deletions

View File

@ -8,10 +8,10 @@ using Microsoft.Build.Framework;
using Microsoft.Build.Utilities; using Microsoft.Build.Utilities;
using StardewModdingAPI.Common; using StardewModdingAPI.Common;
namespace StardewModdingAPI.ModBuildConfig.Tasks namespace StardewModdingAPI.ModBuildConfig
{ {
/// <summary>A build task which packs mod files into a conventional release zip.</summary> /// <summary>A build task which deploys the mod files and prepares a release zip.</summary>
public class CreateModReleaseZip : Task public class DeployModTask : Task
{ {
/********* /*********
** Properties ** Properties

View File

@ -38,7 +38,7 @@
<Reference Include="System.Web.Extensions" /> <Reference Include="System.Web.Extensions" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Tasks\CreateModReleaseZip.cs" /> <Compile Include="DeployModTask.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -2,7 +2,7 @@
<!--********************************************* <!--*********************************************
** Import build tasks ** Import build tasks
**********************************************--> **********************************************-->
<UsingTask TaskName="CreateModReleaseZip" AssemblyFile="StardewModdingAPI.ModBuildConfig.dll" /> <UsingTask TaskName="DeployModTask" AssemblyFile="StardewModdingAPI.ModBuildConfig.dll" />
<!--********************************************* <!--*********************************************
** Find the basic mod metadata ** Find the basic mod metadata
@ -152,6 +152,6 @@
<!-- create release zip if <DeployModZipTo> property is set --> <!-- create release zip if <DeployModZipTo> property is set -->
<Message Text="Generating mod release at $(DeployModZipTo)\$(MSBuildProjectName).zip..." Importance="high" Condition="'$(DeployModZipTo)' != ''" /> <Message Text="Generating mod release at $(DeployModZipTo)\$(MSBuildProjectName).zip..." Importance="high" Condition="'$(DeployModZipTo)' != ''" />
<CreateModReleaseZip ModName="$(MSBuildProjectName)" Files="@(BuildFiles);@(I18nFiles)" OutputFolderPath="$(DeployModZipTo)" Condition="'$(DeployModZipTo)' != ''" /> <DeployModTask ModName="$(MSBuildProjectName)" Files="@(BuildFiles);@(I18nFiles)" OutputFolderPath="$(DeployModZipTo)" Condition="'$(DeployModZipTo)' != ''" />
</Target> </Target>
</Project> </Project>