Skip to content

Commit

Permalink
feat(vsix): Include Skia targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 1, 2020
1 parent 9b05b58 commit fde903c
Show file tree
Hide file tree
Showing 12 changed files with 128 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Metadata>
<Identity Id="UnoSolutionTemplate.b8e0806a-a194-4442-8634-474e089e479e" Version="1.43.0.657" Language="en-US" Publisher="nventive" />
<DisplayName>Uno Platform Solution Templates</DisplayName>
<Description xml:space="preserve">A solution template for Uno Platform enabled projects.</Description>
<Description xml:space="preserve">Solution templates for Uno Platform enabled projects</Description>
<MoreInfo>https://github.com/unoplatform/uno</MoreInfo>
<GettingStartedGuide>https://github.com/unoplatform/uno/blob/master/doc/index.md</GettingStartedGuide>
<Icon>logo.png</Icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using GLib;
using Uno.UI.Runtime.Skia;

namespace UnoQuickStart.Skia.Gtk
namespace $ext_safeprojectname$.Skia.Gtk
{
class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>UnoQuickStart.Skia.Gtk</Name>
<Description>No Description</Description>
<Icon>__TemplateIcon.png</Icon>
<PreviewImage>__PreviewImage.png</PreviewImage>
<ProjectType>CSharp</ProjectType>
<ProjectSubType />
<SortOrder>1000</SortOrder>
<DefaultName>UnoQuickStart.Skia.Gtk</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
<LocationField>Enabled</LocationField>
<CreateInPlace>true</CreateInPlace>
</TemplateData>
<TemplateContent>
<Project File="UnoQuickStart.Skia.Gtk.csproj" TargetFileName="$ext_safeprojectname$.Skia.Gtk.csproj" ReplaceParameters="true">
<Folder Name="Assets" TargetFolderName="Assets">
<Folder Name="Fonts" TargetFolderName="Fonts">
<ProjectItem TargetFileName="uno-fluentui-assets.ttf" ReplaceParameters="false">uno-fluentui-assets.ttf</ProjectItem>
</Folder>
</Folder>
<ProjectItem TargetFileName="Program.cs" ReplaceParameters="true">Program.cs</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>UnoQuickStart.Skia.Wpf.Host</Name>
<Description>No Description</Description>
<Icon>__TemplateIcon.png</Icon>
<PreviewImage>__PreviewImage.png</PreviewImage>
<ProjectType>CSharp</ProjectType>
<ProjectSubType />
<SortOrder>1000</SortOrder>
<DefaultName>UnoQuickStart.Skia.Wpf.Host</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
<LocationField>Enabled</LocationField>
<CreateInPlace>true</CreateInPlace>
</TemplateData>
<TemplateContent>
<Project File="UnoQuickStart.Skia.Wpf.Host.csproj" TargetFileName="$ext_safeprojectname$.Skia.Wpf.Host.csproj" ReplaceParameters="true">
<Folder Name="Assets" TargetFolderName="Assets">
<Folder Name="Fonts" TargetFolderName="Fonts">
<ProjectItem TargetFileName="uno-fluentui-assets.ttf" ReplaceParameters="false">uno-fluentui-assets.ttf</ProjectItem>
</Folder>
</Folder>
<Folder Name="Properties" TargetFolderName="Properties">
<ProjectItem TargetFileName="AssemblyInfo.cs" ReplaceParameters="true">assemblyinfo.cs</ProjectItem>
<ProjectItem TargetFileName="Resources.Designer.cs" ReplaceParameters="true">Resources.Designer.cs</ProjectItem>
<ProjectItem TargetFileName="Resources.resx" ReplaceParameters="true">Resources.resx</ProjectItem>
<ProjectItem TargetFileName="Settings.Designer.cs" ReplaceParameters="true">Settings.Designer.cs</ProjectItem>
<ProjectItem TargetFileName="Settings.settings" ReplaceParameters="true">Settings.settings</ProjectItem>
</Folder>

<ProjectItem TargetFileName="App.config" ReplaceParameters="true">App.config</ProjectItem>
<ProjectItem TargetFileName="App.xaml" ReplaceParameters="true">App.xaml</ProjectItem>
<ProjectItem TargetFileName="App.xaml.cs" ReplaceParameters="true">App.xaml.cs</ProjectItem>
<ProjectItem TargetFileName="MainWindow.xaml" ReplaceParameters="true">MainWindow.xaml</ProjectItem>
<ProjectItem TargetFileName="MainWindow.xaml.cs" ReplaceParameters="true">MainWindow.xaml.cs</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<OutputType Condition="'$(Configuration)'=='Release'">WinExe</OutputType>
<OutputType Condition="'$(Configuration)'=='Debug'">Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Uno.UI.Skia.Wpf" Version="3.1.0-dev.568" />
<PackageReference Include="Uno.UI.RemoteControl" Version="3.1.0-dev.568" Condition="'$(Configuration)'=='Debug'" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\$ext_safeprojectname$.Skia.WPF\$ext_safeprojectname$.Skia.WPF.csproj" />
</ItemGroup>
</Project>

This file was deleted.

3 changes: 3 additions & 0 deletions src/SolutionTemplate/UnoSolutionTemplate/Skia.WPF/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace $ext_safeprojectname$.Skia.Gtk
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>UnoQuickStart.Skia.Wpf</Name>
<Description>No Description</Description>
<Icon>__TemplateIcon.png</Icon>
<PreviewImage>__PreviewImage.png</PreviewImage>
<ProjectType>CSharp</ProjectType>
<ProjectSubType />
<SortOrder>1000</SortOrder>
<DefaultName>UnoQuickStart.Skia.Wpf</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
<LocationField>Enabled</LocationField>
<CreateInPlace>true</CreateInPlace>
</TemplateData>
<TemplateContent>
<Project File="UnoQuickStart.Skia.Wpf.csproj" TargetFileName="$ext_safeprojectname$.Skia.Wpf.csproj" ReplaceParameters="true">
<ProjectItem TargetFileName="Program.cs" ReplaceParameters="true">Program.cs</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>
4 changes: 4 additions & 0 deletions src/SolutionTemplate/UnoSolutionTemplate/UnoApp.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<ProjectTemplateLink ProjectName="$projectname$.UWP" CopyParameters="true">UWP\UWP.vstemplate</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$projectname$.Wasm" CopyParameters="true">Wasm\Wasm.vstemplate</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$projectname$.macOS" CopyParameters="true">macOS\macOS.vstemplate</ProjectTemplateLink>

<ProjectTemplateLink ProjectName="$projectname$.Skia.Wpf.Host" CopyParameters="true">Skia.Wpf.Host\SkiaWpfHost.vstemplate</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$projectname$.Skia.Wpf" CopyParameters="true">Skia.Wpf\SkiaWpf.vstemplate</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$projectname$.Skia.Gtk" CopyParameters="true">Skia.Gtk\SkiaGtk.vstemplate</ProjectTemplateLink>
</ProjectCollection>
</TemplateContent>
<WizardExtension>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<None Include="Skia.WPF\Program.cs" />
<None Include="Skia.WPF.Host\App.xaml.cs" />
<None Include="Skia.WPF.Host\MainWindow.xaml.cs" />
<None Include="Skia.WPF.Host\Properties\AssemblyInfo.cs" />
Expand Down Expand Up @@ -116,8 +117,8 @@
<None Include="Skia.WPF.Host\App.config" />
<None Include="Skia.WPF.Host\Assets\Fonts\uno-fluentui-assets.ttf" />
<None Include="Skia.WPF.Host\Properties\Settings.settings" />
<None Include="Skia.WPF.Host\UnoQuickStart.Wpf.Host.csproj" />
<None Include="Skia.WPF\UnoQuickStart.Skia.WPF.csproj" />
<None Include="Skia.WPF.Host\UnoQuickStart.Skia.Wpf.Host.csproj" />
<None Include="Skia.WPF\UnoQuickStart.Skia.Wpf.csproj" />
<None Include="Wasm\Program.cs" />
<None Include="Droid\MainActivity.cs" />
<None Include="Droid\Properties\AssemblyInfo.cs" />
Expand Down Expand Up @@ -227,6 +228,15 @@
<None Include="macOS\Assets.xcassets\AppIcon.appiconset\AppIcon-512%402x.png" />
<None Include="macOS\Assets.xcassets\AppIcon.appiconset\AppIcon-512.png" />
<None Include="macOS\Assets.xcassets\unologo.imageset\unoplatform.jpg" />
<None Include="Skia.WPF.Host\SkiaWpfHost.vstemplate">
<SubType>Designer</SubType>
</None>
<None Include="Skia.WPF\SkiaWpf.vstemplate">
<SubType>Designer</SubType>
</None>
<None Include="Skia.Gtk\SkiaGtk.vstemplate">
<SubType>Designer</SubType>
</None>
<Content Include="UWP\Assets\LockScreenLogo.scale-200.png" />
<Content Include="UWP\Assets\SplashScreen.scale-200.png" />
<Content Include="UWP\Assets\Square150x150Logo.scale-200.png" />
Expand All @@ -246,8 +256,8 @@
<EmbeddedResource Include="Skia.WPF.Host\Properties\Resources.resx" />
</ItemGroup>
<ItemGroup>
<None Include="Skia.WPF.Host\App.xaml"/>
<None Include="Skia.WPF.Host\MainWindow.xaml"/>
<None Include="Skia.WPF.Host\App.xaml" />
<None Include="Skia.WPF.Host\MainWindow.xaml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
Expand All @@ -259,4 +269,4 @@
</Target>
-->
<Import Project="..\..\Common.targets" />
</Project>
</Project>

0 comments on commit fde903c

Please sign in to comment.