📄 GitBrowser.SyntaxHighlighter.csproj
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>
  <Target Name="Rust Build " BeforeTargets="Compile">
    <Exec Command="echo 'Configuration: $(Configuration)'" />
    <Exec
      Condition="'$(Configuration)' == 'Release'"
      Command="cargo build --release --frozen"
      WorkingDirectory="."
    />
    <Exec Condition="'$(Configuration)' != 'Release'" Command="cargo build" WorkingDirectory="." />
  </Target>
  <ItemGroup>
    <Content
      Condition="$([MSBuild]::IsOSPlatform('Windows'))"
      Include="./target/$(Configuration.ToLower())/syntax_highlighter.dll"
    >
      <Link>%(Filename)%(Extension)</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content
      Condition="$([MSBuild]::IsOSPlatform('Linux'))"
      Include="./target/$(Configuration.ToLower())/libsyntax_highlighter.so"
    >
      <Link>%(Filename)%(Extension)</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content
      Condition="$([MSBuild]::IsOSPlatform('OSX'))"
      Include="./target/$(Configuration.ToLower())/libsyntax_highlighter.dylib"
    >
      <Link>%(Filename)%(Extension)</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
</Project>