mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-19 01:47:08 +01:00
* . * Use ILRepack to include Microsoft.OpenApi as internal * ... * OpenApiSpecificationVersion * . * 080 * 4
29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<!-- See also https://github.com/ravibpatel/ILRepack.Lib.MSBuild.Task/issues/26 -->
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Target Name="ILRepacker" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
|
|
<ItemGroup>
|
|
<InputAssemblies Include="$(OutputPath)WireMock.Net.OpenApiParser.dll" />
|
|
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Microsoft.OpenApi.YamlReader'" />
|
|
<InputAssemblies Include="@(ReferencePathWithRefAssemblies)" Condition="'%(filename)' == 'Microsoft.OpenApi'" />
|
|
<LibraryPath Include="%(ReferencePathWithRefAssemblies.RelativeDir)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<DoNotInternalizeAssemblies Include="WireMock.Net.OpenApiParser" />
|
|
</ItemGroup>
|
|
|
|
<ILRepack
|
|
Parallel="true"
|
|
Internalize="true"
|
|
RenameInternalized="true"
|
|
InternalizeExclude="@(DoNotInternalizeAssemblies)"
|
|
InputAssemblies="@(InputAssemblies)"
|
|
LibraryPath="@(LibraryPath)"
|
|
TargetKind="Dll"
|
|
KeyFile="../../src/WireMock.Net/WireMock.Net.snk"
|
|
OutputFile="$(OutputPath)$(AssemblyName).dll"
|
|
/>
|
|
</Target>
|
|
</Project> |