21 lines
863 B
XML
21 lines
863 B
XML
<Project>
|
|
|
|
<!--
|
|
Build Thunderstore package by calling `dotnet build -c Release -target:PackTS -v d` (verbosity detailed).
|
|
Publish to Thunderstore by including `-property:PublishTS=true` in the command.
|
|
-->
|
|
<Target Name="PackTS" DependsOnTargets="Build">
|
|
<CallTarget Targets="PackTS_Execute" Condition="'$(ThunderstorePackable)' == 'true' and '$(Configuration)' == 'Release'" />
|
|
</Target>
|
|
|
|
<Target Name="PackTS_Execute">
|
|
<PropertyGroup>
|
|
<BuildArgument Condition="'$(PublishTS)' != 'true'">build</BuildArgument>
|
|
<BuildArgument Condition="'$(PublishTS)' == 'true'">publish</BuildArgument>
|
|
</PropertyGroup>
|
|
|
|
<Exec Command="dotnet tool restore" WorkingDirectory="$(SolutionDir)" />
|
|
<Exec Command="dotnet tcli $(BuildArgument) --package-version $(Version)" WorkingDirectory="$(SolutionDir)" />
|
|
</Target>
|
|
</Project>
|