From fde903cb5c6892aed37c994a796e9fcf90f75ca5 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Thu, 1 Oct 2020 14:44:17 -0400 Subject: [PATCH] feat(vsix): Include Skia targets --- .../UnoSolutionTemplate.VISX.csproj | 2 +- .../source.extension.vsixmanifest | 2 +- .../UnoSolutionTemplate/Skia.Gtk/Program.cs | 2 +- .../Skia.Gtk/SkiaGtk.vstemplate | 26 +++++ .../Skia.WPF.Host/Properties/AssemblyInfo.cs | 26 ----- .../Skia.WPF.Host/SkiaWpfHost.vstemplate | 38 +++++++ .../UnoQuickStart.Skia.Wpf.Host.csproj | 18 +++ .../UnoQuickStart.Wpf.Host.csproj | 105 ------------------ .../UnoSolutionTemplate/Skia.WPF/Program.cs | 3 + .../Skia.WPF/SkiaWpf.vstemplate | 21 ++++ .../UnoSolutionTemplate/UnoApp.vstemplate | 4 + .../UnoSolutionTemplate.csproj | 20 +++- 12 files changed, 128 insertions(+), 139 deletions(-) create mode 100644 src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/SkiaGtk.vstemplate create mode 100644 src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/SkiaWpfHost.vstemplate create mode 100644 src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Skia.Wpf.Host.csproj delete mode 100644 src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Wpf.Host.csproj create mode 100644 src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/Program.cs create mode 100644 src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/SkiaWpf.vstemplate diff --git a/src/SolutionTemplate/UnoSolutionTemplate.VISX/UnoSolutionTemplate.VISX.csproj b/src/SolutionTemplate/UnoSolutionTemplate.VISX/UnoSolutionTemplate.VISX.csproj index 0ff4850e2838..1a85614504af 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate.VISX/UnoSolutionTemplate.VISX.csproj +++ b/src/SolutionTemplate/UnoSolutionTemplate.VISX/UnoSolutionTemplate.VISX.csproj @@ -207,4 +207,4 @@ - + \ No newline at end of file diff --git a/src/SolutionTemplate/UnoSolutionTemplate.VISX/source.extension.vsixmanifest b/src/SolutionTemplate/UnoSolutionTemplate.VISX/source.extension.vsixmanifest index 94b07134361d..a1fc4b14aa97 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate.VISX/source.extension.vsixmanifest +++ b/src/SolutionTemplate/UnoSolutionTemplate.VISX/source.extension.vsixmanifest @@ -3,7 +3,7 @@ Uno Platform Solution Templates - A solution template for Uno Platform enabled projects. + Solution templates for Uno Platform enabled projects https://github.com/unoplatform/uno https://github.com/unoplatform/uno/blob/master/doc/index.md logo.png diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/Program.cs b/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/Program.cs index b1088f400fc6..17877de20566 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/Program.cs +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/Program.cs @@ -2,7 +2,7 @@ using GLib; using Uno.UI.Runtime.Skia; -namespace UnoQuickStart.Skia.Gtk +namespace $ext_safeprojectname$.Skia.Gtk { class Program { diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/SkiaGtk.vstemplate b/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/SkiaGtk.vstemplate new file mode 100644 index 000000000000..2035c9fc5920 --- /dev/null +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.Gtk/SkiaGtk.vstemplate @@ -0,0 +1,26 @@ + + + UnoQuickStart.Skia.Gtk + No Description + __TemplateIcon.png + __PreviewImage.png + CSharp + + 1000 + UnoQuickStart.Skia.Gtk + true + true + Enabled + true + + + + + + uno-fluentui-assets.ttf + + + Program.cs + + + diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/Properties/AssemblyInfo.cs b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/Properties/AssemblyInfo.cs index 56798ce86f85..992bb34d27c9 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/Properties/AssemblyInfo.cs +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/Properties/AssemblyInfo.cs @@ -4,18 +4,6 @@ using System.Runtime.InteropServices; using System.Windows; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("$ext_safeprojectname$.WPF.Host")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("$ext_safeprojectname$.WPF.Host")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. @@ -39,17 +27,3 @@ //(used if a resource is not found in the page, // app, or any theme specific resource dictionaries) )] - - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/SkiaWpfHost.vstemplate b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/SkiaWpfHost.vstemplate new file mode 100644 index 000000000000..959a3fa4f643 --- /dev/null +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/SkiaWpfHost.vstemplate @@ -0,0 +1,38 @@ + + + UnoQuickStart.Skia.Wpf.Host + No Description + __TemplateIcon.png + __PreviewImage.png + CSharp + + 1000 + UnoQuickStart.Skia.Wpf.Host + true + true + Enabled + true + + + + + + uno-fluentui-assets.ttf + + + + assemblyinfo.cs + Resources.Designer.cs + Resources.resx + Settings.Designer.cs + Settings.settings + + + App.config + App.xaml + App.xaml.cs + MainWindow.xaml + MainWindow.xaml.cs + + + diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Skia.Wpf.Host.csproj b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Skia.Wpf.Host.csproj new file mode 100644 index 000000000000..8cacda05e1df --- /dev/null +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Skia.Wpf.Host.csproj @@ -0,0 +1,18 @@ + + + + WinExe + Exe + netcoreapp3.1 + true + + + + + + + + + + + diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Wpf.Host.csproj b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Wpf.Host.csproj deleted file mode 100644 index 864b758b5ac2..000000000000 --- a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF.Host/UnoQuickStart.Wpf.Host.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - - - Debug - AnyCPU - $guid5$ - WinExe - $ext_safeprojectname$.Wpf.Host - $ext_safeprojectname$.Wpf.Host - v4.7.2 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - true - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - 4.0 - - - - - - - - - - - - - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - - diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/Program.cs b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/Program.cs new file mode 100644 index 000000000000..2bcbba20b8e6 --- /dev/null +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/Program.cs @@ -0,0 +1,3 @@ +namespace $ext_safeprojectname$.Skia.Gtk +{ +} diff --git a/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/SkiaWpf.vstemplate b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/SkiaWpf.vstemplate new file mode 100644 index 000000000000..0914ee541e5c --- /dev/null +++ b/src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/SkiaWpf.vstemplate @@ -0,0 +1,21 @@ + + + UnoQuickStart.Skia.Wpf + No Description + __TemplateIcon.png + __PreviewImage.png + CSharp + + 1000 + UnoQuickStart.Skia.Wpf + true + true + Enabled + true + + + + Program.cs + + + diff --git a/src/SolutionTemplate/UnoSolutionTemplate/UnoApp.vstemplate b/src/SolutionTemplate/UnoSolutionTemplate/UnoApp.vstemplate index bb95c0139a10..f2af86cb4655 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate/UnoApp.vstemplate +++ b/src/SolutionTemplate/UnoSolutionTemplate/UnoApp.vstemplate @@ -33,6 +33,10 @@ UWP\UWP.vstemplate Wasm\Wasm.vstemplate macOS\macOS.vstemplate + + Skia.Wpf.Host\SkiaWpfHost.vstemplate + Skia.Wpf\SkiaWpf.vstemplate + Skia.Gtk\SkiaGtk.vstemplate diff --git a/src/SolutionTemplate/UnoSolutionTemplate/UnoSolutionTemplate.csproj b/src/SolutionTemplate/UnoSolutionTemplate/UnoSolutionTemplate.csproj index dcaa1994cd34..4b9c10a5ae33 100644 --- a/src/SolutionTemplate/UnoSolutionTemplate/UnoSolutionTemplate.csproj +++ b/src/SolutionTemplate/UnoSolutionTemplate/UnoSolutionTemplate.csproj @@ -75,6 +75,7 @@ + @@ -116,8 +117,8 @@ - - + + @@ -227,6 +228,15 @@ + + Designer + + + Designer + + + Designer + @@ -246,8 +256,8 @@ - - + + @@ -259,4 +269,4 @@ --> - + \ No newline at end of file