<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Foo</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Content Include="LICENSE" CopyToOutputDirectory="Always" />
</ItemGroup>
<PropertyGroup>
<!--
The following will rename the output file LICENSE
to Foo.License.txt during the build process.
It leaves the original source file intact,
and only changes the output file.
The PostBuildEvent runs in the context of
$(OutDir)\$(Configuration)\$(TargetFrameworkVersion)
Ex: bin\Debug\net6.0
-->
<PostBuildEvent>
ren LICENSE $(AssemblyName).License.txt
</PostBuildEvent>
</PropertyGroup>
</Project>
Comments
0 B
|0 👍
/0 👎
0 B
|👍
/👎
0 B
|👍
/👎