rules_dotnet icon indicating copy to clipboard operation
rules_dotnet copied to clipboard

How to run DotNetCliTools as part of build?

Open peakschris opened this issue 8 months ago • 2 comments

We have a csproj file that contains this section. The result is that dotnet generates a MyProject.XmlSerializers.dll as well as a MyProject.dll. Is this possible in rules_dotnet?

  <PropertyGroup>
    <SGenTypes>Utils.XmlBindingUtils</SGenTypes>
    <SGenProxyTypes>false</SGenProxyTypes>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="System.Memory" Version="4.5.5" />
    <PackageReference Include="Microsoft.XmlSerializer.Generator" Version="7.0.0" />
    <DotNetCliToolReference Include="Microsoft.XmlSerializer.Generator" Version="7.0.0" />
  </ItemGroup>

Thank you, Chris

peakschris avatar Jun 10 '24 17:06 peakschris