src/GraphicObjects/VerticalWrappingWidget.cs
src/GraphicObjects/HorizontalWrappingWidget.cs
TestResult.xml
+*.swp
+*.perf
+.vscode
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <config>
- <add key="repositoryPath" value="../packages" />
- </config>
-</configuration>
<ItemGroup Condition="$(TargetFramework.StartsWith('netstandard'))">
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.6.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.6.0" />
- <PackageReference Include="glfw-sharp" Version="0.2.9-beta" />
+ </ItemGroup>
+ <ItemGroup>
<PackageReference Include="FastEnum" Version="1.5.3" />
+ <PackageReference Include="glfw-sharp" Version="0.2.10-beta" />
</ItemGroup>
+
<PropertyGroup Condition=" '$(CrowStbSharp)' == 'true'">
<DefineConstants>$(DefineConstants);STB_SHARP</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(CrowStbSharp)' == 'true'">
<PackageReference Include="StbImageSharp" Version="2.22.4" />
</ItemGroup>
+
<ItemGroup>
- <Content Include="$(SolutionDir)Images/crow.png" Pack="true" PackagePath="" />
+ <Content Include="$(SolutionDir)Images\crow.png" Pack="true" PackagePath="" />
<Compile Include="src\**\*.cs" Exclude="src\Mono.Cairo\NativeMethods-internal.cs" />
<EmbeddedResource Include="Templates\*.*">
<LogicalName>Crow.%(Filename).template</LogicalName>
<LogicalName>Crow.Cursors.%(Filename)</LogicalName>
</EmbeddedResource>
<Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Compile Remove="src\Widgets\ColorPicker2.cs" />
+ <Compile Remove="src\Widgets\ColorPicker2.cs" />
</ItemGroup>
</Project>
<Project>
<PropertyGroup>
- <RootDirectory>$(MSBuildThisFileDirectory)</RootDirectory>
+ <SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<IntermediateOutputPath>$(SolutionDir)build\obj\$(Configuration)\</IntermediateOutputPath>
<License>MIT</License>
<Authors>Jean-Philippe Bruyère</Authors>
<LangVersion>7.2</LangVersion>
- <CrowVersion>0.9.1</CrowVersion>
+ <CrowVersion>0.9.2</CrowVersion>
<CrowPackageVersion>$(CrowVersion)-beta</CrowPackageVersion>
<CrowStbSharp>true</CrowStbSharp>
</PropertyGroup>
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using System.Reflection;
using Crow;
using Glfw;
{
static void Main ()
{
-#if NETCOREAPP3_1
- DllMapCore.Resolve.Enable (true);
-#endif
-
using (BasicTests app = new BasicTests ()) {
app.Run ();
}
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedControl", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedContainer", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedGroup", "*.crow")).ToArray ();
- testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Splitter", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Wrapper", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Divers", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/DragAndDrop", "*.crow")).ToArray ();
{
static void Main (string [] args)
{
-#if NETCOREAPP3_1
- DllMapCore.Resolve.Enable (true);
-#endif
using (Program app = new Program ())
app.Run ();
}
<Project>
<PropertyGroup>
- <TargetFrameworks>net472</TargetFrameworks>
+ <TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
<OutputType>Exe</OutputType>
- <RootDirectory>$(MSBuildThisFileDirectory)</RootDirectory>
+ <SolutionDir>$(MSBuildThisFileDirectory)..\</SolutionDir>
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<IntermediateOutputPath>$(SolutionDir)build\obj\$(Configuration)\</IntermediateOutputPath>
<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<SamplesDir>$(SolutionDir)Samples\</SamplesDir>
+ <AppConfig>$(SolutionDir)Crow\App.config</AppConfig>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="DllMapCore" Version="0.1.0" Condition="'$(TargetFramework)'=='netcoreapp3.1'" />
<ProjectReference Include="$(SolutionDir)Crow\Crow.csproj" />
</ItemGroup>
<ItemGroup>
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<EmbeddedResource Include="ui\**\*.*">
{
class Program {
static void Main (string[] args) {
-#if NETCOREAPP3_1
- DllMapCore.Resolve.Enable (true);
-#endif
using (Interface app = new Interface ()) {
app.Initialized += (sender, e) => (sender as Interface).Load ("#HelloWorld.helloworld.crow");
app.Run ();
{
static void Main ()
{
-#if NETCOREAPP3_1
- DllMapCore.Resolve.Enable (true);
-#endif
using (Showcase app = new Showcase ())
app.Run ();
}
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="CVKL" version="0.1.2" targetFramework="net471" />
- <package id="glTF2Loader" version="1.1.3-alpha" targetFramework="net471" />
- <package id="Newtonsoft.Json" version="12.0.2" targetFramework="net471" />
- <package id="System.Numerics.Vectors" version="4.6.0-preview4.19212.13" targetFramework="net471" />
- <package id="System.Runtime.CompilerServices.Unsafe" version="4.6.0-preview4.19212.13" targetFramework="net471" />
- <package id="Vulkan" version="0.1.2.6" targetFramework="net471" />
-</packages>
\ No newline at end of file
-using System;
+using System.Net.NetworkInformation;
+using System.Runtime.InteropServices;
+using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Crow
{
public class SampleBase : Interface {
+#if NETCOREAPP
+ static IntPtr resolveUnmanaged (Assembly assembly, String libraryName) {
+
+ switch (libraryName)
+ {
+ case "glfw3":
+ return NativeLibrary.Load("glfw", assembly, null);
+ case "rsvg-2.40":
+ return NativeLibrary.Load("rsvg-2", assembly, null);
+ }
+ Console.WriteLine ($"[UNRESOLVE] {assembly} {libraryName}");
+ return IntPtr.Zero;
+ }
+
+ static SampleBase () {
+ System.Runtime.Loader.AssemblyLoadContext.Default.ResolvingUnmanagedDll+=resolveUnmanaged;
+ }
+#endif
public Version CrowVersion => Assembly.GetAssembly (typeof (Widget)).GetName ().Version;
#region Test values for Binding