-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSecRandom.SecAgentPlugin.csproj
More file actions
38 lines (34 loc) · 1.99 KB
/
Copy pathSecRandom.SecAgentPlugin.csproj
File metadata and controls
38 lines (34 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableDynamicLoading>true</EnableDynamicLoading>
<CreateSrpx>true</CreateSrpx>
<!-- The plugin binds against host-owned assemblies at runtime, so it must compile against
the exact host source it targets: SecRandom master 8f990fd3 (= released v3.0.0-alpha.2). -->
<UseLocalPluginSdk Condition="'$(UseLocalPluginSdk)' == ''">true</UseLocalPluginSdk>
<LocalSecRandomRoot Condition="'$(LocalSecRandomRoot)' == ''">..\..\SecRandom</LocalSecRandomRoot>
</PropertyGroup>
<ItemGroup Condition="'$(UseLocalPluginSdk)' == 'true'">
<ProjectReference Include="$(LocalSecRandomRoot)\SecRandom.PluginSdk\SecRandom.PluginSdk.csproj"
GlobalPropertiesToRemove="CreateSrpx" />
</ItemGroup>
<ItemGroup>
<None Update="manifest.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="README.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(LocalSecRandomRoot)\SecRandom.PluginSdk\SecRandom.PluginSdk.targets"
Condition="'$(UseLocalPluginSdk)' == 'true' and Exists('$(LocalSecRandomRoot)\SecRandom.PluginSdk\SecRandom.PluginSdk.targets')" />
<Target Name="RequireCompatiblePluginSdk" BeforeTargets="PrepareForBuild"
Condition="'$(UseLocalPluginSdk)' != 'true'">
<Error Text="Build this plugin against the matching SecRandom host source with -p:UseLocalPluginSdk=true -p:LocalSecRandomRoot=<path-to-SecRandom>. The published SecRandom.PluginSdk 3.0.0-alpha.2 package is ABI-incompatible with the released host." />
</Target>
</Project>