|
|
@@ -20,36 +20,7 @@
|
|
|
<ItemGroup>
|
|
|
<ProjectReference Include="..\..\packages\Avalonia\Avalonia.csproj" />
|
|
|
<ProjectReference Include="..\Avalonia.Dialogs\Avalonia.Dialogs.csproj" />
|
|
|
+ <AvnComIdl Include="avn.idl" OutputFile="Interop.Generated.cs" />
|
|
|
</ItemGroup>
|
|
|
-
|
|
|
- <!-- COM Interop generation -->
|
|
|
- <ItemGroup>
|
|
|
- <ProjectReference Include="..\tools\MicroComGenerator\MicroComGenerator.csproj">
|
|
|
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
|
- <ExcludeAssets>all</ExcludeAssets>
|
|
|
- <SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
|
|
|
- </ProjectReference>
|
|
|
- </ItemGroup>
|
|
|
-
|
|
|
- <Target Name="GenerateAvaloniaNativeComInterop"
|
|
|
- BeforeTargets="CoreCompile"
|
|
|
- DependsOnTargets="ResolveReferences"
|
|
|
- Inputs="avn.idl;$(MSBuildThisFileDirectory)/../tools/MicroComGenerator/**/*.cs"
|
|
|
- Outputs="Interop.Generated.cs">
|
|
|
- <Message Importance="high" Text="Generating Interop.Generated.cs" />
|
|
|
- <Exec Command="dotnet ../tools/MicroComGenerator/bin/$(Configuration)/netcoreapp3.1/MicroComGenerator.dll -i avn.idl --cs Interop.Generated.cs" LogStandardErrorAsError="true" />
|
|
|
- <ItemGroup>
|
|
|
- <!-- Remove and re-add generated file, this is needed for the clean build -->
|
|
|
- <Compile Remove="Interop.Generated.cs"/>
|
|
|
- <Compile Include="Interop.Generated.cs"/>
|
|
|
- </ItemGroup>
|
|
|
- </Target>
|
|
|
- <ItemGroup>
|
|
|
- <UpToDateCheckInput Include="avn.idl"/>
|
|
|
- <UpToDateCheckInput Include="$(MSBuildThisFileDirectory)/../tools/MicroComGenerator/**/*.cs"/>
|
|
|
- </ItemGroup>
|
|
|
- <PropertyGroup>
|
|
|
- <_AvaloniaPatchComInterop>true</_AvaloniaPatchComInterop>
|
|
|
- </PropertyGroup>
|
|
|
- <Import Project="..\..\build\BuildTargets.targets" />
|
|
|
+ <Import Project="../../build/MicroCom.targets" />
|
|
|
</Project>
|