1
0
mirror of https://github.com/bitwarden/server synced 2025-12-14 23:33:41 +00:00

Add workaround for generated code

This commit is contained in:
Hinton
2025-10-09 15:00:35 -07:00
parent 4192b08aa5
commit 5784d74d52

View File

@@ -21,10 +21,17 @@
<Content Include="./rust/target/release/libsdk.dll">
<PackageCopyToOutput>true</PackageCopyToOutput>
</Content>
<!-- This is a work around because this file is compiled by the PreBuild event below, and won't
always be detected -->
<Compile Remove="NativeMethods.g.cs" />
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="cd rust &amp;&amp; cargo build --release" />
<Exec Command="cargo build --release" WorkingDirectory="$(ProjectDir)/rust" />
<ItemGroup>
<Compile Include="NativeMethods.g.cs" />
</ItemGroup>
</Target>
</Project>