mirror of
https://github.com/bitwarden/server
synced 2025-12-18 01:03:17 +00:00
Add workaround for generated code
This commit is contained in:
@@ -21,10 +21,17 @@
|
|||||||
<Content Include="./rust/target/release/libsdk.dll">
|
<Content Include="./rust/target/release/libsdk.dll">
|
||||||
<PackageCopyToOutput>true</PackageCopyToOutput>
|
<PackageCopyToOutput>true</PackageCopyToOutput>
|
||||||
</Content>
|
</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>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
<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>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user