uniblab

How to rename README.md and LICENSE on build

Jul 30th, 2026
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.52 KB | None | 0 0
  1. <Project>
  2.     <!-- usual stuff up here -->
  3.     <ItemGroup>
  4.         <Content Include="README.md">
  5.             <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  6.             <TargetPath>$(AssemblyName).README.md</TargetPath>
  7.             <Pack>true</Pack>
  8.             <PackagePath>\</PackagePath>
  9.         </Content>
  10.  
  11.         <Content Include="LICENSE">
  12.             <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  13.             <TargetPath>$(AssemblyName).LICENSE.txt</TargetPath>
  14.             <Pack>true</Pack>
  15.             <PackagePath>\</PackagePath>
  16.         </Content>
  17.     </ItemGroup>
  18. </Project>
Tags: MSBuild
Advertisement