<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- <TargetFrameworks>netstandard2.0</TargetFrameworks>-->
- <TargetFramework>netcoreapp3.0</TargetFramework>
+ <TargetFrameworks>net48;netcoreapp3.0</TargetFrameworks>
+ <TargetFramework>net48</TargetFramework>
<AssemblyVersion>$(CrowVersion)</AssemblyVersion>
<PackageVersion>$(CrowPackageVersion)</PackageVersion>
<DefineConstants>$(DefineConstants);DEBUG;TRACE;_DEBUG_BINDING;_DEBUG_CLIP_RECTANGLE</DefineConstants>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
</PropertyGroup>
- <ItemGroup Condition="$(TargetFramework.StartsWith('netstandard'))">
+ <ItemGroup Condition=" '$(TargetFramework)' == 'net48' ">
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.6.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.6.0" />
+ <PackageReference Include="System.IO.Compression" Version="4.3.0" />
+ <PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>
<ItemGroup>
<!--<PackageReference Include="FastEnum" Version="1.5.3" />-->
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;
-using System.Collections.Generic;
-using System.Linq;
-//using FastEnumUtility;
namespace Crow
{
(((uint)Math.Round (b * 255.0)) << 8) +
(((uint)Math.Round (a * 255.0)));
}
+
public Color (ReadOnlySpan<double> rgba) {
value =
(((uint)Math.Round (rgba[0] * 255.0)) << 24) +
init_internal ();
}
}
- static void nativeHelpMessage () {
- }
+#if !NET48
static IntPtr resolveUnmanaged(Assembly assembly, String libraryName)
{
try {
}
return IntPtr.Zero;
}
-
+#endif
#region CTOR
static Interface ()
{
+#if !NET48
System.Runtime.Loader.AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly()).ResolvingUnmanagedDll += resolveUnmanaged;
-
+#endif
CROW_CONFIG_ROOT =
System.IO.Path.Combine (
Environment.GetFolderPath (Environment.SpecialFolder.UserProfile),
<IntermediateOutputPath>$(SolutionDir)build\obj\$(Configuration)\</IntermediateOutputPath>
<License>MIT</License>
<Authors>Jean-Philippe Bruyère</Authors>
- <LangVersion>7.3</LangVersion>
+ <!--<LangVersion>7.3</LangVersion>-->
- <CrowVersion>0.9.8</CrowVersion>
- <CrowPackageVersion>$(CrowVersion)</CrowPackageVersion>
+ <CrowVersion>0.9.9</CrowVersion>
+ <CrowPackageVersion>$(CrowVersion)-beta</CrowPackageVersion>
<!-- If you dont have a native libstb on your system, enable the managed version of stb here
TODO: this could be detected on startup or install automatically-->
<!-- Experimental vkvg backend, testing only-->
<CrowVkvgBackend>false</CrowVkvgBackend>
- <GlfwSharpVersion>0.2.14</GlfwSharpVersion>
+ <GlfwSharpVersion>0.2.15-beta</GlfwSharpVersion>
</PropertyGroup>
</Project>
<Project>
<PropertyGroup>
- <TargetFrameworks>netcoreapp3.1</TargetFrameworks>
+ <TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>
<!--<TargetFrameworks>net5</TargetFrameworks>-->
- <OutputType>WinExe</OutputType>
+ <OutputType>Exe</OutputType>
<SolutionDir>$(MSBuildThisFileDirectory)..\</SolutionDir>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>