-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathPlugins.csproj
More file actions
63 lines (58 loc) · 3.27 KB
/
Copy pathPlugins.csproj
File metadata and controls
63 lines (58 loc) · 3.27 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>templatecompanyname.templateprojectname.Dataverse.Plugins</AssemblyName>
<TargetFramework>net462</TargetFramework>
<SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\..\templatecompanyname.snk</AssemblyOriginatorKeyFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<!-- ILRepack is only need because DAXIF doesn't support Plugin Packages yet -->
<PackageReference Include="ILRepack" Version="2.0.34" GeneratePathProperty="true">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CrmSdk.CoreAssemblies" Version="9.0.2.56" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Runtime.Caching" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<!-- ILRepack is only need because DAXIF doesn't support Plugin Packages yet -->
<Target Name="ILRepack" AfterTargets="Build" Condition="'$(PackAndSignPlugin)' == 'true'">
<ItemGroup>
<InputAssemblies Include="$(TargetPath)" />
<InputAssemblies Include="$(TargetDir)Microsoft.Bcl.AsyncInterfaces.dll" />
<InputAssemblies Include="$(TargetDir)Microsoft.Extensions.DependencyInjection.Abstractions.dll" />
<InputAssemblies Include="$(TargetDir)Microsoft.Extensions.DependencyInjection.dll" />
<InputAssemblies Include="$(TargetDir)Microsoft.Extensions.Logging.Abstractions.dll" />
<InputAssemblies Include="$(TargetDir)Newtonsoft.Json.dll" />
<InputAssemblies Include="$(TargetDir)System.Threading.Tasks.Extensions.dll" />
<InputAssemblies Include="$(TargetDir)System.Text.Json.dll" />
</ItemGroup>
<Exec Command="$(PkgILRepack)\tools\ILRepack.exe /parallel /keyfile:..\..\..\templatecompanyname.snk /lib:$(TargetDir) /out:$(TargetDir)Merged.$(TargetFileName) @(InputAssemblies -> '%(Identity)', ' ')" />
</Target>
<Target Name="SignDLL" AfterTargets="ILRepack" Condition="'$(PackAndSignPlugin)' == 'true'">
<Exec Command="signtool sign /p templatecertpassword /f ..\..\..\plugincert.pfx /tr http://timestamp.digicert.com /fd SHA256 /td SHA256 "$(TargetDir)Merged.$(TargetFileName)"" />
</Target>
<Import Project="..\SharedPluginLogic\SharedPluginLogic.projitems" Label="Shared" />
<Import Project="..\..\Shared\SharedContext\SharedContext.projitems" Label="Shared" />
<Import Project="..\..\Shared\SharedDataverseLogic\SharedDataverseLogic.projitems" Label="Shared" />
<Import Project="..\..\Shared\SharedDomain\SharedDomain.projitems" Label="Shared" />
</Project>