Merge desktop runtime support libraries. Fixes #1899.
This commit is contained in:
@@ -94,10 +94,6 @@ publish/
|
||||
*.Publish.xml
|
||||
*.pubxml
|
||||
|
||||
# NuGet Packages Directory
|
||||
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
|
||||
packages/
|
||||
|
||||
# Windows Azure Build Output
|
||||
csx
|
||||
*.build.csdef
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<Project Sdk="AggregatePackage.NuGet.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net461;netcoreapp2.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../src/Avalonia.Remote.Protocol/Avalonia.Remote.Protocol.csproj" EmbedReference="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="SharedVersion.props" />
|
||||
<Import Project="NetFX.props" />
|
||||
<Import Project="CoreLibraries.props" />
|
||||
</Project>
|
||||
@@ -14,7 +14,6 @@
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)/../src/Avalonia.Themes.Default/Avalonia.Themes.Default.csproj" />
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)/../src/Markup/Avalonia.Markup/Avalonia.Markup.csproj" />
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)/../src/Markup/Avalonia.Markup.Xaml/Avalonia.Markup.Xaml.csproj" />
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)/../src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj" Condition="'$(TargetFramework)' == 'net461'" />
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)/../src/Avalonia.DotNetCoreRuntime/Avalonia.DotNetCoreRuntime.csproj" Condition="'$(TargetFramework)' == 'netcoreapp2.0'" />
|
||||
<ProjectReference Include="$(MSBuildThisFileDirectory)/../src/Avalonia.DesktopRuntime/Avalonia.DesktopRuntime.csproj" Condition="'$(TargetFramework)' != 'netstandard2.0'" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -2,12 +2,7 @@
|
||||
<PropertyGroup Condition="'$(TargetFramework)'=='net461'" >
|
||||
<OutputType>WinExe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Should be a Condition="'$(TargetFramework)'=='net461'" here but that doesn't work due
|
||||
to https://github.com/dotnet/sdk/issues/1227 -->
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Windows\Avalonia.Win32\Avalonia.Win32.csproj" />
|
||||
<ProjectReference Include="..\..\src\Windows\Avalonia.Direct2D1\Avalonia.Direct2D1.csproj" />
|
||||
<ProjectReference Include="..\..\packages\Avalonia.Desktop\Avalonia.Desktop.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Condition="'$(TargetFramework)'=='net461'" Project="SharpDX.props" />
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../src/Windows/Avalonia.Win32/Avalonia.Win32.csproj" />
|
||||
<ProjectReference Include="../../src/Windows/Avalonia.Direct2D1/Avalonia.Direct2D1.csproj" />
|
||||
<ProjectReference Include="../../src/Skia/Avalonia.Skia/Avalonia.Skia.csproj" />
|
||||
<ProjectReference Include="../../src/Gtk/Avalonia.Gtk3/Avalonia.Gtk3.csproj" />
|
||||
<ProjectReference Include="../../src/OSX/Avalonia.MonoMac/Avalonia.MonoMac.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="AggregatePackage.NuGet.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net461;netcoreapp2.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../src/Avalonia.Remote.Protocol/Avalonia.Remote.Protocol.csproj" EmbedReference="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\build\SharedVersion.props" />
|
||||
<Import Project="..\..\build\NetFX.props" />
|
||||
<Import Project="..\..\build\CoreLibraries.props" />
|
||||
</Project>
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX" publicKeyToken="b4dcf0f35e5521f1" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX.DXGI" publicKeyToken="b4dcf0f35e5521f1" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Mono.Cairo" publicKeyToken="0738eb9f132ed756" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Mono.Cairo" publicKeyToken="0738eb9f132ed756" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX" publicKeyToken="b4dcf0f35e5521f1" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX.DXGI" publicKeyToken="b4dcf0f35e5521f1" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -8,7 +8,10 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Linux\Avalonia.LinuxFramebuffer\Avalonia.LinuxFramebuffer.csproj" />
|
||||
<ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj" />
|
||||
<ProjectReference Include="..\..\packages\Avalonia.Desktop\Avalonia.Desktop.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<Import Project="..\..\build\SampleApp.props" />
|
||||
<Import Project="..\..\build\ReferenceCoreLibraries.props" />
|
||||
</Project>
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Mono.Cairo" publicKeyToken="0738eb9f132ed756" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.2.0" newVersion="3.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX.DXGI" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.0.2.0" newVersion="3.0.2.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -19,19 +19,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- <ProjectReference Include="..\..\src\Markup\Avalonia.Markup.Xaml\Avalonia.Markup.Xaml.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup\Avalonia.Markup.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Animation\Avalonia.Animation.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Base\Avalonia.Base.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Controls\Avalonia.Controls.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Diagnostics\Avalonia.Diagnostics.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Input\Avalonia.Input.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Interactivity\Avalonia.Interactivity.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Layout\Avalonia.Layout.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Visuals\Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Styling\Avalonia.Styling.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Themes.Default\Avalonia.Themes.Default.csproj" /> -->
|
||||
<ProjectReference Include="..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.ReactiveUI\Avalonia.ReactiveUI.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -10,5 +10,7 @@
|
||||
<EmbeddedResource Include="**\*.xaml" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.ReactiveUI\Avalonia.ReactiveUI.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\build\SampleApp.props" />
|
||||
<Import Project="..\..\build\ReferenceCoreLibraries.props" />
|
||||
</Project>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\..\build\SampleApp.props" />
|
||||
<Import Project="..\..\build\ReferenceCoreLibraries.props" />
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpDX.DXGI" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -116,9 +116,9 @@
|
||||
<Project>{7062ae20-5dcc-4442-9645-8195bdece63e}</Project>
|
||||
<Name>Avalonia.Diagnostics</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\src\Avalonia.DotNetFrameworkRuntime\Avalonia.DotNetFrameworkRuntime.csproj">
|
||||
<ProjectReference Include="..\..\..\src\Avalonia.DesktopRuntime\Avalonia.DesktopRuntime.csproj">
|
||||
<Project>{4a1abb09-9047-4bd5-a4ad-a055e52c5ee0}</Project>
|
||||
<Name>Avalonia.DotNetFrameworkRuntime</Name>
|
||||
<Name>Avalonia.DesktopRuntime</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\src\Avalonia.Input\Avalonia.Input.csproj">
|
||||
<Project>{62024b2d-53eb-4638-b26b-85eeaa54866e}</Project>
|
||||
@@ -186,4 +186,4 @@
|
||||
<Import Project="..\..\..\build\Rx.props" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\..\..\build\SkiaSharp.props" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../Avalonia.Base/Avalonia.Base.csproj" />
|
||||
<ProjectReference Include="../Avalonia.Visuals/Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="../Avalonia.Controls/Avalonia.Controls.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\build\NetCore.props" />
|
||||
<Import Project="..\Shared\PlatformSupport\PlatformSupport.projitems" />
|
||||
</Project>
|
||||
+4
-1
@@ -21,9 +21,12 @@ namespace Avalonia.Shared.PlatformSupport
|
||||
|
||||
return new RuntimePlatformInfo
|
||||
{
|
||||
#if NETCOREAPP2_0
|
||||
IsCoreClr = true,
|
||||
IsDesktop = true,
|
||||
#elif NET461
|
||||
IsDotNetFramework = false,
|
||||
#endif
|
||||
IsDesktop = true,
|
||||
IsMono = false,
|
||||
IsMobile = false,
|
||||
IsUnix = os != OperatingSystemType.WinNT,
|
||||
@@ -1,58 +0,0 @@
|
||||
using System.Reflection;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Platform;
|
||||
using Avalonia.Shared.PlatformSupport;
|
||||
|
||||
namespace Avalonia
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes platform-specific services for an <see cref="Application"/>.
|
||||
/// </summary>
|
||||
public sealed class AppBuilder : AppBuilderBase<AppBuilder>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AppBuilder"/> class.
|
||||
/// </summary>
|
||||
public AppBuilder()
|
||||
: base(new StandardRuntimePlatform(),
|
||||
builder => StandardRuntimePlatformServices.Register(builder.Instance?.GetType()
|
||||
?.GetTypeInfo().Assembly))
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AppBuilder"/> class.
|
||||
/// </summary>
|
||||
/// <param name="app">The <see cref="Application"/> instance.</param>
|
||||
public AppBuilder(Application app) : this()
|
||||
{
|
||||
Instance = app;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Instructs the <see cref="AppBuilder"/> to use the best settings for the platform.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="AppBuilder"/> instance.</returns>
|
||||
public AppBuilder UsePlatformDetect()
|
||||
{
|
||||
var os = RuntimePlatform.GetRuntimeInfo().OperatingSystem;
|
||||
//We don't have the ability to load every assembly right now, so we are
|
||||
//stuck with manual configuration here
|
||||
//Helpers are extracted to separate methods to take the advantage of the fact
|
||||
//that CLR doesn't try to load dependencies before referencing method is jitted
|
||||
if (os == OperatingSystemType.WinNT)
|
||||
LoadWin32();
|
||||
else if(os==OperatingSystemType.OSX)
|
||||
LoadAvaloniaNative();
|
||||
else
|
||||
LoadGtk3();
|
||||
this.UseSkia();
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
void LoadAvaloniaNative() => this.UseAvaloniaNative();
|
||||
void LoadWin32() => this.UseWin32();
|
||||
void LoadGtk3() => this.UseGtk3();
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<DefineConstants>$(DefineConstants);DOTNETCORE</DefineConstants>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Avalonia.Base\Avalonia.Base.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Controls\Avalonia.Controls.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Visuals\Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="..\Gtk\Avalonia.Gtk3\Avalonia.Gtk3.csproj" />
|
||||
<ProjectReference Include="..\Skia\Avalonia.Skia\Avalonia.Skia.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Native\Avalonia.Native.csproj" />
|
||||
<ProjectReference Include="..\Windows\Avalonia.Direct2D1\Avalonia.Direct2D1.csproj" />
|
||||
<ProjectReference Include="..\Windows\Avalonia.Win32\Avalonia.Win32.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\..\build\NetCore.props" />
|
||||
<Import Project="..\Shared\PlatformSupport\PlatformSupport.projitems" />
|
||||
</Project>
|
||||
@@ -1,18 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
|
||||
<DocumentationFile>bin\$(Configuration)\Avalonia.DotNetFrameworkRuntime.xml</DocumentationFile>
|
||||
<DefineConstants>$(DefineConstants);FULLDOTNET</DefineConstants>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Avalonia.Base\Avalonia.Base.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Controls\Avalonia.Controls.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Visuals\Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Styling\Avalonia.Styling.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\Shared\PlatformSupport\PlatformSupport.projitems" Label="Shared" />
|
||||
<Import Project="..\..\build\Rx.props" />
|
||||
<Import Project="..\..\build\NetFX.props" />
|
||||
</Project>
|
||||
@@ -1,44 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Avalonia.Platform;
|
||||
|
||||
namespace Avalonia.Shared.PlatformSupport
|
||||
{
|
||||
internal partial class StandardRuntimePlatform
|
||||
{
|
||||
private static readonly Lazy<RuntimePlatformInfo> Info = new Lazy<RuntimePlatformInfo>(() =>
|
||||
{
|
||||
var isMono = Type.GetType("Mono.Runtime") != null;
|
||||
var isUnix = Environment.OSVersion.Platform == PlatformID.Unix ||
|
||||
Environment.OSVersion.Platform == PlatformID.MacOSX;
|
||||
return new RuntimePlatformInfo
|
||||
{
|
||||
IsCoreClr = false,
|
||||
IsDesktop = true,
|
||||
IsDotNetFramework = !isMono,
|
||||
IsMono = isMono,
|
||||
IsMobile = false,
|
||||
IsUnix = isUnix,
|
||||
OperatingSystem = isUnix ? DetectUnix() : OperatingSystemType.WinNT,
|
||||
};
|
||||
});
|
||||
|
||||
[DllImport("libc")]
|
||||
static extern int uname(IntPtr buf);
|
||||
|
||||
static OperatingSystemType DetectUnix()
|
||||
{
|
||||
var buffer = Marshal.AllocHGlobal(0x1000);
|
||||
uname(buffer);
|
||||
var unixName = Marshal.PtrToStringAnsi(buffer);
|
||||
Marshal.FreeHGlobal(buffer);
|
||||
if(unixName=="Darwin")
|
||||
return OperatingSystemType.OSX;
|
||||
if (unixName == "Linux")
|
||||
return OperatingSystemType.Linux;
|
||||
return OperatingSystemType.Unknown;
|
||||
}
|
||||
|
||||
public RuntimePlatformInfo GetRuntimeInfo() => Info.Value;
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\..\build\Rx.props" />
|
||||
<Import Project="..\..\build\ReactiveUI.props" />
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
<ProjectReference Include="..\..\Avalonia.OpenGL\Avalonia.OpenGL.csproj" />
|
||||
<ProjectReference Include="..\..\Avalonia.Visuals\Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\Skia\Avalonia.Skia\Avalonia.Skia.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace Avalonia.Shared.PlatformSupport
|
||||
|
||||
|
||||
|
||||
#if FULLDOTNET || DOTNETCORE
|
||||
#if NET461 || NETCOREAPP2_0
|
||||
[DllImport("libc", SetLastError = true)]
|
||||
private static extern IntPtr mmap(IntPtr addr, IntPtr length, int prot, int flags, int fd, IntPtr offset);
|
||||
[DllImport("libc", SetLastError = true)]
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<ProjectReference Include="..\..\Avalonia.Styling\Avalonia.Styling.csproj" />
|
||||
<ProjectReference Include="..\..\Avalonia.Visuals\Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\..\build\SkiaSharp.props" />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\..\..\build\Rx.props" />
|
||||
<Import Project="..\..\..\build\SharpDX.props" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<UseDirect3D9>true</UseDirect3D9>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Win32\Avalonia.Win32.csproj" />
|
||||
<ProjectReference Include="..\Avalonia.Direct2D1\Avalonia.Direct2D1.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<ProjectReference Include="..\..\Avalonia.Styling\Avalonia.Styling.csproj" />
|
||||
<ProjectReference Include="..\..\Avalonia.Visuals\Avalonia.Visuals.csproj" />
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildThisFileDirectory)\..\..\..\build\System.Drawing.Common.props" />
|
||||
</Project>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\build\Avalonia.csproj" />
|
||||
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\..\Shared\PlatformSupport\PlatformSupport.projitems" Label="Shared" />
|
||||
<Import Project="..\..\..\build\Rx.props" />
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Avalonia.DesignerSupport\Avalonia.DesignerSupport.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.DotNetCoreRuntime\Avalonia.DotNetCoreRuntime.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.DesktopRuntime\Avalonia.DesktopRuntime.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup.Xaml\Avalonia.Markup.Xaml.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup\Avalonia.Markup.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Animation\Avalonia.Animation.csproj" />
|
||||
@@ -28,10 +28,6 @@
|
||||
<ProjectReference Include="..\..\src\Avalonia.Styling\Avalonia.Styling.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Themes.Default\Avalonia.Themes.Default.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\build\Serilog.props" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Compile Include="..\Avalonia.RenderTests\**\*.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Avalonia.DotNetCoreRuntime\Avalonia.DotNetCoreRuntime.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.DesktopRuntime\Avalonia.DesktopRuntime.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup.Xaml\Avalonia.Markup.Xaml.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup\Avalonia.Markup.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Animation\Avalonia.Animation.csproj" />
|
||||
@@ -24,4 +24,4 @@
|
||||
<Import Project="..\..\build\Rx.props" />
|
||||
<Import Project="..\..\build\XUnit.props" />
|
||||
<Import Project="..\..\build\Magick.NET-Q16-AnyCPU.props" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<Compile Include="..\Avalonia.RenderTests\**\*.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Avalonia.DotNetCoreRuntime\Avalonia.DotNetCoreRuntime.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.DesktopRuntime\Avalonia.DesktopRuntime.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup.Xaml\Avalonia.Markup.Xaml.csproj" />
|
||||
<ProjectReference Include="..\..\src\Markup\Avalonia.Markup\Avalonia.Markup.csproj" />
|
||||
<ProjectReference Include="..\..\src\Avalonia.Animation\Avalonia.Animation.csproj" />
|
||||
@@ -26,4 +26,4 @@
|
||||
<Import Project="..\..\build\XUnit.props" />
|
||||
<Import Project="..\..\build\Magick.NET-Q16-AnyCPU.props" />
|
||||
<Import Project="..\..\build\SkiaSharp.props" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user