You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.6 KiB

  1. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  2. <PropertyGroup>
  3. <GenerateAssemblyInfo Condition="'$(GenerateAssemblyInfo)'==''">true</GenerateAssemblyInfo>
  4. </PropertyGroup>
  5. <PropertyGroup Condition="'$(GenerateAssemblyInfo)'=='true'">
  6. <AssemblyInfoFile Condition="'$(MSBuildProjectExtension)' == '.csproj'">$(IntermediateOutputPath)_AssemblyInfo.g.cs</AssemblyInfoFile>
  7. </PropertyGroup>
  8. <PropertyGroup>
  9. <Description Condition="'$(Description)' == ''">$(AssemblyName)</Description>
  10. </PropertyGroup>
  11. <!-- Note: ReferenceAssemblies.targets still uses @(AssemblyInfoLines) as well. So if you remove this, those need to migrate too. -->
  12. <Target Name="_WriteNonStringAssemblyInfoAttributes"
  13. AfterTargets="CoreGenerateAssemblyInfo"
  14. Inputs="$(MSBuildProjectFile)"
  15. Outputs="$(AssemblyInfoFile)">
  16. <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
  17. <AssemblyInfoLines Condition="'$(CLSCompliant)'=='true'" Include="[assembly:System.CLSCompliant(true)]" />
  18. <AssemblyInfoLines Condition="'$(CLSCompliant)'=='false'" Include="[assembly:System.CLSCompliant(false)]" />
  19. </ItemGroup>
  20. <WriteLinesToFile File="$(AssemblyInfoFile)"
  21. Lines="@(AssemblyInfoLines)"
  22. Condition="'@(AssemblyInfoLines)' != ''"
  23. Overwrite="true" />
  24. <ItemGroup Condition="'@(AssemblyInfoLines)' != ''">
  25. <Compile Include="$(AssemblyInfoFile)" />
  26. <FileWrites Include="$(AssemblyInfoFile)" />
  27. </ItemGroup>
  28. </Target>
  29. </Project>