Skip to content

Commit

Permalink
Add BeautyAfterTasks Feature
Browse files Browse the repository at this point in the history
  • Loading branch information
liesauer committed Jul 26, 2019
1 parent 1d6aaee commit fc2f462
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion NetCoreBeautyNuget/Beauty.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
<BeautyBin>"$(MSBuildThisFileDirectory)../tools/$(RuntimeOS)/ncbeauty$(BeautyBinExt)"</BeautyBin>
<BeautyDir>"$(MSBuildProjectDirectory)/$(PublishDir).HERE/.."</BeautyDir>
<BeautyLibsDir Condition="$(BeautyLibsDir) == ''">libraries</BeautyLibsDir>
<BeautyAfterTasks>Publish;$(BeautyAfterTasks)</BeautyAfterTasks>
</PropertyGroup>

<Target Name="NetCoreBeauty" AfterTargets="Publish" Condition="$(DisableBeauty) != 'True'">
<Target Name="NetCoreBeauty" AfterTargets="$(BeautyAfterTasks)" Condition="$(DisableBeauty) != 'True'">
<Exec Command="$(BeautyBin) $(BeautyDir) $(BeautyLibsDir)" />
</Target>
</Project>
4 changes: 2 additions & 2 deletions NetCoreBeautyNuget/NetCoreBeauty.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>nulastudio.NetCoreBeauty</id>
<description>Move a .NET Core app runtime components and dependencies into a sub-directory and make it beauty.</description>
<version>1.0.1</version>
<description>Move a .NET Core app runtime components and dependencies into a sub-directory and make it beauty.</description>
<version>1.0.2</version>
<authors>LiesAuer</authors>
<owners>nulastudio</owners>
<projectUrl>https://github.com/nulastudio/NetCoreBeauty</projectUrl>
Expand Down
3 changes: 2 additions & 1 deletion NetCoreBeautyNugetTest/NetCoreBeautyTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
<BeautyLibsDir>libraries</BeautyLibsDir>
<!-- set to True if you want to disable -->
<DisableBeauty>False</DisableBeauty>
<!-- <BeautyAfterTasks></BeautyAfterTasks> -->
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.0.1" />
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.0.2" />
</ItemGroup>

</Project>

0 comments on commit fc2f462

Please sign in to comment.