|
|
|
@ -1,12 +1,12 @@ |
|
|
|
<Project Sdk="Microsoft.NET.Sdk"> |
|
|
|
|
|
|
|
<PropertyGroup> |
|
|
|
<IsPackable>false</IsPackable> |
|
|
|
<IsPackable Condition="'$([MSBuild]::IsOSPlatform(OSX))' == 'True'">true</IsPackable> |
|
|
|
<TargetFramework>netstandard2.0</TargetFramework> |
|
|
|
<CastXmlPath Condition="Exists('/usr/bin/castxml')">/usr/bin/castxml</CastXmlPath> |
|
|
|
<CastXmlPath Condition="Exists('/usr/local/bin/castxml')">/usr/local/bin/castxml</CastXmlPath> |
|
|
|
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
|
|
|
<SharpGenGeneratedCodeFolder>$(MSBuildThisFileDirectory)/Generated</SharpGenGeneratedCodeFolder> |
|
|
|
</PropertyGroup> |
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="SharpGenTools.Sdk" Version="1.1.2" PrivateAssets="all" /> |
|
|
|
@ -27,5 +27,19 @@ |
|
|
|
<Pack>true</Pack> |
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
|
|
</Content> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<SharpGenMapping Include="Mappings.xml" /> |
|
|
|
<PackageReference Include="SharpGenTools.Sdk" Version="1.1.2" PrivateAssets="all" /> |
|
|
|
<PackageReference Include="SharpGen.Runtime.COM" Version="1.1.0" /> |
|
|
|
<ProjectReference Include="..\..\packages\Avalonia\Avalonia.csproj" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup Condition="'$(Configuration)' == 'Release' AND '$(IsPackable)' == 'true'"> |
|
|
|
<Content Include="../../Build/Products/Release/libAvalonia.Native.OSX.dylib"> |
|
|
|
<PackagePath>runtimes/osx/native/libAvaloniaNative.dylib</PackagePath> |
|
|
|
<Pack>true</Pack> |
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
|
|
</Content> |
|
|
|
</ItemGroup> |
|
|
|
</Project> |
|
|
|
|