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:
@@ -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 && cargo build --release" />
|
||||
<Exec Command="cargo build --release" WorkingDirectory="$(ProjectDir)/rust" />
|
||||
<ItemGroup>
|
||||
<Compile Include="NativeMethods.g.cs" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user