This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://en.cppreference.com/w/cpp/utility/variadic | |
#include <iostream> | |
#include <cstdarg> | |
#include <stdexcept> | |
void Format(const char* fmt...) | |
{ | |
va_list args; | |
va_start(args, fmt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <curl/curl.h> | |
#include <curl/easy.h> | |
#include <sstream> | |
#include <iostream> | |
#pragma comment(lib, "libcurl.a") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
This is a Powershell script to publish .NET Core projects. | |
.DESCRIPTION | |
This Powershell script will publish .NET Core projects. | |
.PARAMETER Path | |
The output path. | |
#> | |
[CmdletBinding()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .\Publish-All-Avalonia-Projects.ps1 -Path ".\_PUBLISH_" -RuntimeIdentifier "win7-x64" | |
# .\Publish-All-Avalonia-Projects.ps1 -Path ".\_PUBLISH_" -RuntimeIdentifier "ubuntu.14.04-x64" | |
# .\Publish-All-Avalonia-Projects.ps1 -Path ".\_PUBLISH_" -RuntimeIdentifier "osx.10.12-x64" | |
<# | |
.SYNOPSIS | |
This is a Powershell script to publish .NET Core projects. | |
.DESCRIPTION | |
This Powershell script will publish .NET Core projects. | |
.PARAMETER Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before linking (B) After linking (B) Size decrease | |
----------- ----------- ----------- ----------- | |
Total size of assemblies 60,405,136 29,815,688 50.64 % | |
----------- ----------- ----------- ----------- | |
Core2D.Avalonia.NetCore.dll 11,264 11,264 0.00 % | |
Autofac.dll 217,600 217,600 0.00 % | |
Avalonia.Animation.dll 10,240 10,240 0.00 % | |
Avalonia.Base.dll 91,136 91,136 0.00 % | |
Avalonia.Controls.dll 252,416 252,416 0.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\DOWNLOADS\GitHub\AvaloniaBehaviors\samples\BehaviorsTestApplication.NetCore> dotnet run | |
Unhandled Exception: OmniXaml.LoadException: Error loading XAML: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. | |
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) | |
at System.Reflection.RuntimeAssembly.get_DefinedTypes() | |
at OmniXaml.Builder.ConfiguredAssemblyWithNamespaces.Get(String typeName) | |
at OmniXaml.Builder.AddressPack.<>c__DisplayClass2_0.<Get>b__0(ConfiguredAssemblyWithNamespaces configuredAssemblyWithNamespaces) | |
at System.Linq.Enumerable.SelectListIterator`2.MoveNext() | |
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() | |
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<XGroup Name="AND" State="Visible, Printable, Standalone" xmlns="https://github.com/Core2D" xmlns:sci="clr-namespace:System.Collections.Immutable;assembly=System.Collections.Immutable" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<XGroup.Connectors> | |
<XPoint State="Visible, Printable, Connector, None" X="15" Y="30"> | |
<XPoint.Data> | |
<XContext /> | |
</XPoint.Data> | |
<XPoint.Owner> | |
<x:Reference>AND</x:Reference> | |
</XPoint.Owner> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<XGroup Name="AND" State="Visible, Printable, Standalone" xmlns="https://github.com/Core2D" xmlns:sci="clr-namespace:System.Collections.Immutable;assembly=System.Collections.Immutable" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<XGroup.Connectors> | |
<sci:ImmutableArray x:TypeArguments="XPoint"> | |
<XPoint State="Visible, Printable, Connector, None" X="15" Y="30"> | |
<XPoint.Data> | |
<XContext /> | |
</XPoint.Data> | |
<XPoint.Owner> | |
<x:Reference>AND</x:Reference> | |
</XPoint.Owner> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<XProject Name="Groups_Xaml" xmlns="https://github.com/Core2D" xmlns:sci="clr-namespace:System.Collections.Immutable;assembly=System.Collections.Immutable" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<XProject.CurrentContainer> | |
<XContainer Background="#FFFFFFFF" Height="600" Name="Page" Width="840"> | |
<XContainer.CurrentLayer> | |
<XLayer IsVisible="True" Name="Layer1" Owner="{x:Reference Page}"> | |
<sci:ImmutableArray x:TypeArguments="BaseShape"> | |
<XGroup Name="AND" State="Visible, Printable, Standalone"> | |
<XGroup.Connectors> | |
<sci:ImmutableArray x:TypeArguments="XPoint"> | |
<XPoint State="Visible, Printable, Connector, None" Y="15"> |