uniblab icon

How to rename README.md and LICENSE on build

uniblab | PRO | 07/30/26 03:18:29 PM UTC | 1 ⭐ | 27942 👁️ | Never ⏰ | [MSBuild]
XML |

520 B

|

None

|

1 👍

/

0 👎

<Project>
    <!-- usual stuff up here -->
    <ItemGroup>
        <Content Include="README.md">
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
            <TargetPath>$(AssemblyName).README.md</TargetPath>
            <Pack>true</Pack>
            <PackagePath>\</PackagePath>
        </Content>
 
        <Content Include="LICENSE">
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
            <TargetPath>$(AssemblyName).LICENSE.txt</TargetPath>
            <Pack>true</Pack>
            <PackagePath>\</PackagePath>
        </Content>
    </ItemGroup>
</Project>

Comments