<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Foo</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Content Include="LICENSE" CopyToOutputDirectory="Always" />
</ItemGroup>
<Target Name="RmLicense" AfterTargets="Clean" Condition=" '$(OutDir)' != '' ">
<Delete ContinueOnError="false"
Files="$(OutDir)\$(AssemblyName).License.txt"
/>
</Target>
<Target Name="MvLicense" AfterTargets="Build" Condition=" '$(OutDir)' != '' ">
<Move ContinueOnError="false"
SourceFiles="$(OutDir)\LICENSE"
DestinationFiles="$(OutDir)\$(AssemblyName).License.txt"
/>
</Target>
</Project>
Comments
0 B
|👍
/👎
0 B
|👍
/👎