From 0cfbde78b82789827d5eef16439e22814e625c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Mon, 7 Oct 2019 22:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0AvaloniaUI=E7=89=88=EF=BC=8CP?= =?UTF-8?q?C=E4=B8=8B=E5=8F=AF=E7=94=A8=EF=BC=8C=E6=A0=91=E8=8E=93?= =?UTF-8?q?=E6=B4=BE=E5=A4=B1=E8=B4=A5=EF=BC=8C=E5=8E=9F=E5=9B=A0=E6=98=AF?= =?UTF-8?q?Mono=E7=9A=84SkiaSharp=E6=9C=AA=E6=94=AF=E6=8C=81Linux32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XCoderAv/App.xaml | 8 ++++ XCoderAv/App.xaml.cs | 13 ++++++ XCoderAv/MainWindow.xaml | 9 ++++ XCoderAv/MainWindow.xaml.cs | 22 ++++++++++ XCoderAv/Program.cs | 27 ++++++++++++ .../PublishProfiles/FolderProfile.pubxml | 13 ++++++ XCoderAv/XCoderAv.csproj | 41 +++++++++++++++++++ XCoderAv/nuget.config | 11 +++++ ...1\347\245\236\345\267\245\345\205\267.sln" | 8 +++- 9 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 XCoderAv/App.xaml create mode 100644 XCoderAv/App.xaml.cs create mode 100644 XCoderAv/MainWindow.xaml create mode 100644 XCoderAv/MainWindow.xaml.cs create mode 100644 XCoderAv/Program.cs create mode 100644 XCoderAv/Properties/PublishProfiles/FolderProfile.pubxml create mode 100644 XCoderAv/XCoderAv.csproj create mode 100644 XCoderAv/nuget.config diff --git a/XCoderAv/App.xaml b/XCoderAv/App.xaml new file mode 100644 index 00000000..bacd61fb --- /dev/null +++ b/XCoderAv/App.xaml @@ -0,0 +1,8 @@ + + + + + + diff --git a/XCoderAv/App.xaml.cs b/XCoderAv/App.xaml.cs new file mode 100644 index 00000000..bbf8579b --- /dev/null +++ b/XCoderAv/App.xaml.cs @@ -0,0 +1,13 @@ +using Avalonia; +using Avalonia.Markup.Xaml; + +namespace XCoderAv +{ + public class App : Application + { + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + } +} diff --git a/XCoderAv/MainWindow.xaml b/XCoderAv/MainWindow.xaml new file mode 100644 index 00000000..d721e61a --- /dev/null +++ b/XCoderAv/MainWindow.xaml @@ -0,0 +1,9 @@ + + 学无先后达者为师! + diff --git a/XCoderAv/MainWindow.xaml.cs b/XCoderAv/MainWindow.xaml.cs new file mode 100644 index 00000000..760a86f2 --- /dev/null +++ b/XCoderAv/MainWindow.xaml.cs @@ -0,0 +1,22 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace XCoderAv +{ + public class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); +#if DEBUG + this.AttachDevTools(); +#endif + } + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } + } +} diff --git a/XCoderAv/Program.cs b/XCoderAv/Program.cs new file mode 100644 index 00000000..cea434da --- /dev/null +++ b/XCoderAv/Program.cs @@ -0,0 +1,27 @@ +using System; +using Avalonia; +using Avalonia.Logging.Serilog; + +namespace XCoderAv +{ + class Program + { + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. + public static void Main(string[] args) => BuildAvaloniaApp().Start(AppMain, args); + + // Avalonia configuration, don't remove; also used by visual designer. + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure() + .UsePlatformDetect() + .LogToDebug(); + + // Your application's entry point. Here you can initialize your MVVM framework, DI + // container, etc. + private static void AppMain(Application app, string[] args) + { + app.Run(new MainWindow()); + } + } +} diff --git a/XCoderAv/Properties/PublishProfiles/FolderProfile.pubxml b/XCoderAv/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 00000000..b9b11824 --- /dev/null +++ b/XCoderAv/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + FileSystem + Release + Any CPU + netcoreapp2.1 + ..\..\XCoder\publish\ + + \ No newline at end of file diff --git a/XCoderAv/XCoderAv.csproj b/XCoderAv/XCoderAv.csproj new file mode 100644 index 00000000..c6f2d5bd --- /dev/null +++ b/XCoderAv/XCoderAv.csproj @@ -0,0 +1,41 @@ + + + Exe + netcoreapp2.1 + XCoder + XCoder + 新生命码神工具 + 众多开发者工具 + 新生命开发团队 + ©2002-2019 新生命开发团队 + 8.0.2019.1007 + 8.0.2019.1007 + 8.0.* + false + ..\XCoder\leaf.ico + ..\..\XCoder\ + pdbonly + true + TRACE;NC30;__CORE__ + + + + $(DefineConstants);DEBUG + full + false + + + + %(Filename) + + + Designer + + + + + + + + + diff --git a/XCoderAv/nuget.config b/XCoderAv/nuget.config new file mode 100644 index 00000000..6c273ab3 --- /dev/null +++ b/XCoderAv/nuget.config @@ -0,0 +1,11 @@ + + + + + + + + + diff --git "a/\347\240\201\347\245\236\345\267\245\345\205\267.sln" "b/\347\240\201\347\245\236\345\267\245\345\205\267.sln" index f190c769..22e604e0 100644 --- "a/\347\240\201\347\245\236\345\267\245\345\205\267.sln" +++ "b/\347\240\201\347\245\236\345\267\245\345\205\267.sln" @@ -14,7 +14,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoder", "XCoder\XCoder.csp EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoder40", "XCoder40\XCoder40.csproj", "{A4A7E1BD-9E53-4D60-A0E0-122E5441DDBF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoder30", "XCoder30\XCoder30.csproj", "{604666BC-BB6C-426F-BE8F-A68592155698}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XCoder30", "XCoder30\XCoder30.csproj", "{604666BC-BB6C-426F-BE8F-A68592155698}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XCoderAv", "XCoderAv\XCoderAv.csproj", "{66991C0D-D3A6-40E9-8BE1-C11F1F0D8894}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -34,6 +36,10 @@ Global {604666BC-BB6C-426F-BE8F-A68592155698}.Debug|Any CPU.Build.0 = Debug|Any CPU {604666BC-BB6C-426F-BE8F-A68592155698}.Release|Any CPU.ActiveCfg = Release|Any CPU {604666BC-BB6C-426F-BE8F-A68592155698}.Release|Any CPU.Build.0 = Release|Any CPU + {66991C0D-D3A6-40E9-8BE1-C11F1F0D8894}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {66991C0D-D3A6-40E9-8BE1-C11F1F0D8894}.Debug|Any CPU.Build.0 = Debug|Any CPU + {66991C0D-D3A6-40E9-8BE1-C11F1F0D8894}.Release|Any CPU.ActiveCfg = Release|Any CPU + {66991C0D-D3A6-40E9-8BE1-C11F1F0D8894}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE