-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
203 changed files
with
2,169 additions
and
3,866 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"name": "Debug (Chrome, WebAssembly)", | ||
"type": "chrome", | ||
"request": "launch", | ||
"url": "http://localhost:5000", | ||
"webRoot": "${workspaceFolder}/HelloWorld.Wasm", | ||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", | ||
"timeout": 30000, | ||
"server": { | ||
"runtimeExecutable": "dotnet", | ||
"program": "run", | ||
"outputCapture": "std", | ||
"timeout": 30000, | ||
"cwd": "${workspaceFolder}/HelloWorld.Wasm" | ||
} | ||
}, | ||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"name": "Skia.GTK (Debug)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build-skia-gtk", | ||
// If you have changed target frameworks, make sure to update the program path. | ||
"program": "${workspaceFolder}/HelloWorld.Skia.Gtk/bin/Debug/net7.0/HelloWorld.Skia.Gtk.dll", | ||
"args": [], | ||
"env": { | ||
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug" | ||
}, | ||
"cwd": "${workspaceFolder}/HelloWorld.Skia.Gtk", | ||
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console | ||
"console": "internalConsole", | ||
"stopAtEntry": false | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"explorer.fileNesting.enabled": true, | ||
"explorer.fileNesting.expand": false, | ||
"explorer.fileNesting.patterns": { | ||
"*.xaml": "$(capture).xaml.cs" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build-wasm", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/HelloWorld.Wasm/HelloWorld.Wasm.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish-wasm", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/HelloWorld.Wasm/HelloWorld.Wasm.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build-skia-gtk", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/HelloWorld.Skia.Gtk/HelloWorld.Skia.Gtk.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish-skia-gtk", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/HelloWorld.Skia.Gtk/HelloWorld.Skia.Gtk.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<Project ToolsVersion="15.0"> | ||
<Import Project="..\..\src\Uno\Prism.Uno\build\Prism.Uno.WinUI.props" /> | ||
<PropertyGroup> | ||
<LangVersion>11</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
|
||
<DebugType>portable</DebugType> | ||
<DebugSymbols>True</DebugSymbols> | ||
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata> | ||
|
||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors> | ||
<NoWarn>$(NoWarn);Uno0001;CS1998;CA1416;NU1507</NoWarn> | ||
|
||
<DefaultLanguage>en</DefaultLanguage> | ||
|
||
<IsAndroid>false</IsAndroid> | ||
<IsIOS>false</IsIOS> | ||
<IsMac>false</IsMac> | ||
<IsMacCatalyst>false</IsMacCatalyst> | ||
<IsWinAppSdk>false</IsWinAppSdk> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<NoWarn>$(NoWarn);NU5104;NU5100;NU5118;NU5123;NU1603;CS1701;CS1702;XA0101;MSB3277;CS8785;CS8669;CS1998</NoWarn> | ||
<IsUnoProject>true</IsUnoProject> | ||
</PropertyGroup> | ||
|
||
<Choose> | ||
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'"> | ||
<PropertyGroup> | ||
<IsAndroid>true</IsAndroid> | ||
<SupportedOSPlatformVersion>21.0</SupportedOSPlatformVersion> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'"> | ||
<PropertyGroup> | ||
<IsIOS>true</IsIOS> | ||
<SupportedOSPlatformVersion>14.2</SupportedOSPlatformVersion> | ||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)'==''">iossimulator-x64</RuntimeIdentifier> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'macos'"> | ||
<PropertyGroup> | ||
<IsMac>true</IsMac> | ||
<SupportedOSPlatformVersion>10.14</SupportedOSPlatformVersion> | ||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)'==''">osx-x64</RuntimeIdentifier> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'"> | ||
<PropertyGroup> | ||
<IsMacCatalyst>true</IsMacCatalyst> | ||
<SupportedOSPlatformVersion>14.0</SupportedOSPlatformVersion> | ||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)'==''">maccatalyst-x64</RuntimeIdentifier> | ||
</PropertyGroup> | ||
</When> | ||
<When Condition="$(TargetFramework.Contains('windows10'))"> | ||
<PropertyGroup> | ||
<IsWinAppSdk>true</IsWinAppSdk> | ||
<SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion> | ||
</PropertyGroup> | ||
</When> | ||
</Choose> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<Project ToolsVersion="15.0"> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"solution": { | ||
"path": "HelloWorld.sln", | ||
"projects": [ | ||
"HelloWorld.Mobile\\HelloWorld.Mobile.csproj", | ||
"HelloWorld.Skia.Gtk\\HelloWorld.Skia.Gtk.csproj", | ||
"HelloWorld.Wasm\\HelloWorld.Wasm.csproj", | ||
"HelloWorld\\HelloWorld.csproj" | ||
] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<local:App x:Class="HelloWorld.AppHead" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:wasm="http://platform.uno/wasm" | ||
xmlns:local="using:HelloWorld" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="wasm"> | ||
|
||
<local:App.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="ms-appx:///HelloWorld/AppResources.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</local:App.Resources> | ||
|
||
</local:App> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace HelloWorld; | ||
|
||
public sealed partial class AppHead : App | ||
{ | ||
/// <summary> | ||
/// Initializes the singleton application object. This is the first line of authored code | ||
/// executed, and as such is the logical equivalent of main() or WinMain(). | ||
/// </summary> | ||
public AppHead() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} |
Oops, something went wrong.