Skip to content

A Swiss Army knife for developers.

Added Wasdk project

Etienne Baudoux05194a7872bc
diff --git a/.gitignore b/.gitignore
index 1b95e36ec..f3bd7f89a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,7 +40,7 @@ BenchmarkDotNet.Artifacts/
project.lock.json
project.fragment.lock.json
artifacts/
-**/Properties/launchSettings.json
+#**/Properties/launchSettings.json
# StyleCop
StyleCopReport.xml
diff --git a/src/.editorconfig b/src/.editorconfig
index bf0b7b37c..3cb957697 100644
--- a/src/.editorconfig
+++ b/src/.editorconfig
@@ -3,6 +3,12 @@
# top-most EditorConfig file
root = true
+# Spell checker
+spelling_languages = en-US
+spelling_checkable_types = strings,identifiers,comments
+spelling_error_severity = information
+spelling_exclusion_path = spellcheckerexclusion.dic
+
# Use CRLF for end of line
[*]
end_of_line = crlf
diff --git a/src/DevToys-Windows.sln b/src/DevToys-Windows.sln
index e5e927d34..9760d39b6 100644
--- a/src/DevToys-Windows.sln
+++ b/src/DevToys-Windows.sln
@@ -67,18 +67,25 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevToys.Wasm", "app\dev\pla
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevToys.MauiBlazor", "app\dev\platforms\desktop\DevToys.MauiBlazor\DevToys.MauiBlazor.csproj", "{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevToys.Wasdk", "app\dev\platforms\desktop\windows\DevToys.Wasdk\DevToys.Wasdk.csproj", "{804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
Debug|AnyCPU = Debug|AnyCPU
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
Release|AnyCPU = Release|AnyCPU
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|Any CPU.Build.0 = Debug|x86
+ {34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|Any CPU.Deploy.0 = Debug|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|AnyCPU.ActiveCfg = Debug|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|AnyCPU.Build.0 = Debug|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|AnyCPU.Deploy.0 = Debug|x86
@@ -91,6 +98,9 @@ Global
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|x86.ActiveCfg = Debug|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|x86.Build.0 = Debug|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Debug|x86.Deploy.0 = Debug|x86
+ {34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|Any CPU.ActiveCfg = Release|x64
+ {34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|Any CPU.Build.0 = Release|x64
+ {34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|Any CPU.Deploy.0 = Release|x64
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|AnyCPU.ActiveCfg = Release|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|AnyCPU.Build.0 = Release|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|AnyCPU.Deploy.0 = Release|x86
@@ -103,6 +113,8 @@ Global
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|x86.ActiveCfg = Release|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|x86.Build.0 = Release|x86
{34D966D5-5756-4192-B4AB-44AD6FF07CC5}.Release|x86.Deploy.0 = Release|x86
+ {97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|Any CPU.Build.0 = Debug|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|AnyCPU.ActiveCfg = Debug|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|AnyCPU.Build.0 = Debug|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|ARM64.ActiveCfg = Debug|arm64
@@ -111,6 +123,9 @@ Global
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|x64.Build.0 = Debug|x64
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|x86.ActiveCfg = Debug|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Debug|x86.Build.0 = Debug|x86
+ {97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|Any CPU.Deploy.0 = Release|Any CPU
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|AnyCPU.ActiveCfg = Release|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|AnyCPU.Build.0 = Release|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|ARM64.ActiveCfg = Release|arm64
@@ -119,6 +134,8 @@ Global
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|x64.Build.0 = Release|x64
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|x86.ActiveCfg = Release|x86
{97AA45F4-41E2-4FDA-B5B7-F4579DF2C7EE}.Release|x86.Build.0 = Release|x86
+ {8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -127,6 +144,8 @@ Global
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|x64.Build.0 = Debug|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|x86.ActiveCfg = Debug|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Debug|x86.Build.0 = Debug|Any CPU
+ {8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|Any CPU.Build.0 = Release|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|AnyCPU.Build.0 = Release|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -135,6 +154,8 @@ Global
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|x64.Build.0 = Release|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|x86.ActiveCfg = Release|Any CPU
{8C72D38A-658D-4C9D-B0AD-2DA975BE7826}.Release|x86.Build.0 = Release|Any CPU
+ {745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -143,6 +164,8 @@ Global
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|x64.Build.0 = Debug|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|x86.ActiveCfg = Debug|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Debug|x86.Build.0 = Debug|Any CPU
+ {745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|Any CPU.Build.0 = Release|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|AnyCPU.Build.0 = Release|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -151,6 +174,8 @@ Global
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|x64.Build.0 = Release|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|x86.ActiveCfg = Release|Any CPU
{745FD4CA-84CC-45D8-A3E2-814A0B9C16C4}.Release|x86.Build.0 = Release|Any CPU
+ {89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -159,6 +184,8 @@ Global
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|x64.Build.0 = Debug|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|x86.ActiveCfg = Debug|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Debug|x86.Build.0 = Debug|Any CPU
+ {89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|Any CPU.Build.0 = Release|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|AnyCPU.Build.0 = Release|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -167,6 +194,8 @@ Global
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|x64.Build.0 = Release|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|x86.ActiveCfg = Release|Any CPU
{89A4D88F-5AC0-436A-8EC5-8E98728CA89E}.Release|x86.Build.0 = Release|Any CPU
+ {CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -175,6 +204,8 @@ Global
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|x64.Build.0 = Debug|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|x86.ActiveCfg = Debug|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Debug|x86.Build.0 = Debug|Any CPU
+ {CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|Any CPU.Build.0 = Release|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|AnyCPU.Build.0 = Release|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -183,6 +214,8 @@ Global
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|x64.Build.0 = Release|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|x86.ActiveCfg = Release|Any CPU
{CCAB7530-4341-4C24-B4E8-28679BB6C4FB}.Release|x86.Build.0 = Release|Any CPU
+ {B6D48157-5257-4B60-B065-3B231B610A54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B6D48157-5257-4B60-B065-3B231B610A54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -191,6 +224,8 @@ Global
{B6D48157-5257-4B60-B065-3B231B610A54}.Debug|x64.Build.0 = Debug|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Debug|x86.ActiveCfg = Debug|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Debug|x86.Build.0 = Debug|Any CPU
+ {B6D48157-5257-4B60-B065-3B231B610A54}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B6D48157-5257-4B60-B065-3B231B610A54}.Release|Any CPU.Build.0 = Release|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Release|AnyCPU.Build.0 = Release|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -199,6 +234,8 @@ Global
{B6D48157-5257-4B60-B065-3B231B610A54}.Release|x64.Build.0 = Release|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Release|x86.ActiveCfg = Release|Any CPU
{B6D48157-5257-4B60-B065-3B231B610A54}.Release|x86.Build.0 = Release|Any CPU
+ {A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -207,6 +244,8 @@ Global
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|x64.Build.0 = Debug|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|x86.ActiveCfg = Debug|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Debug|x86.Build.0 = Debug|Any CPU
+ {A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|Any CPU.Build.0 = Release|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|AnyCPU.Build.0 = Release|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -215,38 +254,48 @@ Global
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|x64.Build.0 = Release|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|x86.ActiveCfg = Release|Any CPU
{A730FA8A-3713-4F7A-915D-79098CA12DF0}.Release|x86.Build.0 = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|Any CPU.Build.0 = Debug|Any CPU
{723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|AnyCPU.Build.0 = Debug|Any CPU
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|ARM64.ActiveCfg = Debug|arm64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|ARM64.Build.0 = Debug|arm64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x64.ActiveCfg = Debug|x64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x64.Build.0 = Debug|x64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x86.ActiveCfg = Debug|x86
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x86.Build.0 = Debug|x86
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|ARM64.ActiveCfg = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|ARM64.Build.0 = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x64.Build.0 = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Debug|x86.Build.0 = Debug|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|Any CPU.Build.0 = Release|Any CPU
{723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|AnyCPU.Build.0 = Release|Any CPU
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|ARM64.ActiveCfg = Release|arm64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|ARM64.Build.0 = Release|arm64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x64.ActiveCfg = Release|x64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x64.Build.0 = Release|x64
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x86.ActiveCfg = Release|x86
- {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x86.Build.0 = Release|x86
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|ARM64.ActiveCfg = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|ARM64.Build.0 = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x64.ActiveCfg = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x64.Build.0 = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x86.ActiveCfg = Release|Any CPU
+ {723A3D71-2425-49EE-B669-1A0DF3A8B486}.Release|x86.Build.0 = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|AnyCPU.Build.0 = Debug|Any CPU
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|ARM64.ActiveCfg = Debug|arm64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|ARM64.Build.0 = Debug|arm64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x64.ActiveCfg = Debug|x64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x64.Build.0 = Debug|x64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x86.ActiveCfg = Debug|x86
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x86.Build.0 = Debug|x86
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|ARM64.ActiveCfg = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|ARM64.Build.0 = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x64.Build.0 = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Debug|x86.Build.0 = Debug|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|Any CPU.Build.0 = Release|Any CPU
{104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|AnyCPU.Build.0 = Release|Any CPU
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|ARM64.ActiveCfg = Release|arm64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|ARM64.Build.0 = Release|arm64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x64.ActiveCfg = Release|x64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x64.Build.0 = Release|x64
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x86.ActiveCfg = Release|x86
- {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x86.Build.0 = Release|x86
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|ARM64.ActiveCfg = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|ARM64.Build.0 = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x64.ActiveCfg = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x64.Build.0 = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x86.ActiveCfg = Release|Any CPU
+ {104F1E4B-E0D3-4D87-9DA0-3FE82FE2573A}.Release|x86.Build.0 = Release|Any CPU
+ {CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|ARM64.ActiveCfg = Debug|arm64
@@ -255,6 +304,8 @@ Global
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|x64.Build.0 = Debug|x64
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|x86.ActiveCfg = Debug|x86
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Debug|x86.Build.0 = Debug|x86
+ {CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|Any CPU.Build.0 = Release|Any CPU
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|AnyCPU.Build.0 = Release|Any CPU
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|ARM64.ActiveCfg = Release|arm64
@@ -263,6 +314,8 @@ Global
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|x64.Build.0 = Release|x64
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|x86.ActiveCfg = Release|x86
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8}.Release|x86.Build.0 = Release|x86
+ {9E59352A-836D-47DE-AB02-F404A8345242}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9E59352A-836D-47DE-AB02-F404A8345242}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Debug|AnyCPU.Build.0 = Debug|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Debug|ARM64.ActiveCfg = Debug|Any CPU
@@ -271,6 +324,8 @@ Global
{9E59352A-836D-47DE-AB02-F404A8345242}.Debug|x64.Build.0 = Debug|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Debug|x86.ActiveCfg = Debug|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Debug|x86.Build.0 = Debug|Any CPU
+ {9E59352A-836D-47DE-AB02-F404A8345242}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9E59352A-836D-47DE-AB02-F404A8345242}.Release|Any CPU.Build.0 = Release|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Release|AnyCPU.Build.0 = Release|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Release|ARM64.ActiveCfg = Release|Any CPU
@@ -279,24 +334,65 @@ Global
{9E59352A-836D-47DE-AB02-F404A8345242}.Release|x64.Build.0 = Release|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Release|x86.ActiveCfg = Release|Any CPU
{9E59352A-836D-47DE-AB02-F404A8345242}.Release|x86.Build.0 = Release|Any CPU
- {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
- {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|AnyCPU.Build.0 = Debug|Any CPU
- {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|AnyCPU.Deploy.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|AnyCPU.ActiveCfg = Debug|x86
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|AnyCPU.Build.0 = Debug|x86
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|AnyCPU.Deploy.0 = Debug|x86
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|ARM64.Build.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|ARM64.Deploy.0 = Debug|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|x64.ActiveCfg = Debug|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|x64.Build.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|x64.Deploy.0 = Debug|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|x86.ActiveCfg = Debug|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|x86.Build.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Debug|x86.Deploy.0 = Debug|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|Any CPU.Build.0 = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|AnyCPU.ActiveCfg = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|AnyCPU.Build.0 = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|AnyCPU.Deploy.0 = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|ARM64.ActiveCfg = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|ARM64.Build.0 = Release|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|ARM64.Deploy.0 = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|x64.ActiveCfg = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|x64.Build.0 = Release|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|x64.Deploy.0 = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|x86.ActiveCfg = Release|Any CPU
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|x86.Build.0 = Release|Any CPU
+ {64B8DB6D-3168-48DE-95BD-BBE7BAB3A262}.Release|x86.Deploy.0 = Release|Any CPU
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|Any CPU.Build.0 = Debug|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|Any CPU.Deploy.0 = Debug|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|AnyCPU.ActiveCfg = Debug|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|AnyCPU.Build.0 = Debug|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|AnyCPU.Deploy.0 = Debug|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|ARM64.ActiveCfg = Debug|ARM64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|ARM64.Build.0 = Debug|ARM64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|ARM64.Deploy.0 = Debug|ARM64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|x64.ActiveCfg = Debug|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|x64.Build.0 = Debug|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|x64.Deploy.0 = Debug|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|x86.ActiveCfg = Debug|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|x86.Build.0 = Debug|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Debug|x86.Deploy.0 = Debug|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|Any CPU.ActiveCfg = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|Any CPU.Build.0 = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|Any CPU.Deploy.0 = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|AnyCPU.ActiveCfg = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|AnyCPU.Build.0 = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|AnyCPU.Deploy.0 = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|ARM64.ActiveCfg = Release|ARM64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|ARM64.Build.0 = Release|ARM64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|ARM64.Deploy.0 = Release|ARM64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|x64.ActiveCfg = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|x64.Build.0 = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|x64.Deploy.0 = Release|x64
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|x86.ActiveCfg = Release|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|x86.Build.0 = Release|x86
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -323,11 +419,13 @@ Global
{CDD8B469-ACA6-4A7D-91A0-66ADB0563AE8} = {B20E4027-0777-4A75-A848-609594E9A6B0}
{9E59352A-836D-47DE-AB02-F404A8345242} = {04F9E03E-B519-49C5-BC6A-2131ED9BADC0}
{64B8DB6D-3168-48DE-95BD-BBE7BAB3A262} = {22EE9386-CEFA-47D8-97B2-09A63EDF7F2E}
+ {804DBC7B-FBF4-4B2E-AAE9-D74C32985D3F} = {AFE37797-0A43-4838-8C1E-4D2D1446499C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C2C953F5-F97F-4198-B15C-4947A886050F}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
+ app\dev\DevToys.UI.EntryPoint\DevToys.UI.EntryPoint.projitems*{804dbc7b-fbf4-4b2e-aae9-d74c32985d3f}*SharedItemsImports = 5
app\dev\DevToys.UI.EntryPoint\DevToys.UI.EntryPoint.projitems*{93e31b7f-903d-4f24-b30d-220489242866}*SharedItemsImports = 13
app\dev\DevToys.UI.EntryPoint\DevToys.UI.EntryPoint.projitems*{97aa45f4-41e2-4fda-b5b7-f4579df2c7ee}*SharedItemsImports = 4
app\dev\DevToys.UI.EntryPoint\DevToys.UI.EntryPoint.projitems*{9e59352a-836d-47de-ab02-f404a8345242}*SharedItemsImports = 5
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index a30aa11e9..42392a383 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -32,6 +32,7 @@
<PackageVersion Include="Microsoft.Web.WebView2" Version="$(WebView2Version)" />
<PackageVersion Include="Microsoft.Windows.Compatibility" Version="$(DotNetVersion)" />
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="$(MicrosoftWindowsSDKBuildToolsVersion)" />
+ <PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.2.230118.102" />
<PackageVersion Include="Moq" Version="4.18.2" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
<PackageVersion Include="Nito.AsyncEx" Version="5.1.2" />
diff --git a/src/app/dev/DevToys.MonacoEditor/CodeEditor/CodeEditorPresenter.Windows.cs b/src/app/dev/DevToys.MonacoEditor/CodeEditor/CodeEditorPresenter.Windows.cs
index aeee1f01b..9ddab8cf1 100644
--- a/src/app/dev/DevToys.MonacoEditor/CodeEditor/CodeEditorPresenter.Windows.cs
+++ b/src/app/dev/DevToys.MonacoEditor/CodeEditor/CodeEditorPresenter.Windows.cs
@@ -1,4 +1,4 @@
-#if WINDOWS_UWP
+#if WINDOWS_UWP || __WINDOWS__
using System.Reflection;
using System.Text;
@@ -10,11 +10,17 @@ using Newtonsoft.Json;
using Uno.Extensions;
using Uno.Logging;
using Windows.Foundation;
+
+#if WINDOWS_UWP
using Windows.Storage;
-using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using DispatcherQueue = Windows.UI.Core.CoreDispatcher;
+using DispatcherQueuePriority = Windows.UI.Core.CoreDispatcherPriority;
+#elif __WINDOWS__
+using Microsoft.UI.Dispatching;
+using Microsoft.UI.Xaml;
+#endif
namespace DevToys.MonacoEditor;
@@ -66,7 +72,9 @@ public sealed partial class CodeEditorPresenter : UserControl, ICodeEditorPresen
this.Visibility = Visibility.Collapsed;
_webView.AllowFocusOnInteraction = true;
+#if WINDOWS_UWP
_webView.IsFocusEngagementEnabled = true;
+#endif
_webView.CoreWebView2Initialized += WebView_CoreWebView2Initialized;
ILogger logger = this.Log();
@@ -75,8 +83,10 @@ public sealed partial class CodeEditorPresenter : UserControl, ICodeEditorPresen
_errorLogger = logger.IsEnabled(LogLevel.Error) ? logger : null;
}
+#if WINDOWS_UWP
/// <inheritdoc />
public DispatcherQueue DispatcherQueue => DispatcherQueueExtensions.DispatcherQueue;
+#endif
/// <inheritdoc />
public event TypedEventHandler<ICodeEditorPresenter, CoreWebView2NewWindowRequestedEventArgs>? NewWindowRequested;
@@ -103,11 +113,21 @@ public sealed partial class CodeEditorPresenter : UserControl, ICodeEditorPresen
{
await _webView.EnsureCoreWebView2Async();
+#if WINDOWS_UWP
StorageFile storageFile
= await StorageFile.GetFileFromApplicationUriAsync(
new Uri("ms-appx:///DevToys.MonacoEditor/CodeEditor/CodeEditor.Windows.html"));
+ string path = storageFile.Path;
+#elif __WINDOWS__
+ string path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "DevToys.MonacoEditor", "CodeEditor", "CodeEditor.Windows.html");
+ if (!File.Exists(path))
+ {
+ path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "CodeEditor", "CodeEditor.Windows.html");
+ Debug.Assert(File.Exists(path));
+ }
+#endif
- string rootDirectory = Directory.GetParent(storageFile.Path)!.Parent!.FullName;
+ string rootDirectory = Directory.GetParent(path)!.Parent!.FullName;
_webView.CoreWebView2.SetVirtualHostNameToFolderMapping(
hostName: "devtoys.local",
@@ -373,7 +393,7 @@ public sealed partial class CodeEditorPresenter : UserControl, ICodeEditorPresen
{
string result
= await DispatcherQueue.RunOnUIThreadAsync(
- CoreDispatcherPriority.High,
+ DispatcherQueuePriority.High,
async () =>
{
return await _webView.ExecuteScriptAsync(script);
diff --git a/src/app/dev/DevToys.MonacoEditor/DevToys.MonacoEditor.csproj b/src/app/dev/DevToys.MonacoEditor/DevToys.MonacoEditor.csproj
index f2542ec14..ca8b2f11f 100644
--- a/src/app/dev/DevToys.MonacoEditor/DevToys.MonacoEditor.csproj
+++ b/src/app/dev/DevToys.MonacoEditor/DevToys.MonacoEditor.csproj
@@ -6,13 +6,14 @@
<PropertyGroup>
<TargetFrameworks>$(NetCore)</TargetFrameworks>
<TargetFrameworks Condition="$(IsMac)">$(TargetFrameworks);$(NetMacCatalyst)</TargetFrameworks>
- <TargetFrameworks Condition="$(IsWindows)">$(UAP);$(TargetFrameworks)</TargetFrameworks>
+ <TargetFrameworks Condition="$(IsWindows)">$(UAP);$(NetCoreWindows);$(TargetFrameworks)</TargetFrameworks>
<!-- Ensures the .xr.xml files are generated in a proper layout folder -->
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<IsUWP>false</IsUWP>
<IsWasm>false</IsWasm>
<IsMacCatalyst>false</IsMacCatalyst>
+ <IsWasdk>false</IsWasdk>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
@@ -32,7 +33,7 @@
<ItemGroup>
<None Remove="ts-helpermethods\ts-helpermethods-Wasm\tsconfig.json" />
- <None Remove="ts-helpermethods\ts-helpermethods-Windows\tsconfig.json" />
+ <None Remove="ts-helpermethods\ts-helpermethods-UWP\tsconfig.json" />
<None Remove="WasmScripts\WASM\uno-monaco-helpers.g.js" />
<None Remove="WasmScripts\UWP\uno-monaco-helpers.g.js" />
<None Remove="monaco-editor\**\*.*" />
@@ -71,7 +72,7 @@
</Compile>
<None Remove="ts-helpermethods\**\*.js" />
<Content Remove="ts-helpermethods\**\*.js" />
- <TypeScriptCompile Remove="ts-helpermethods\ts-helpermethods-Windows\**\*.js" />
+ <TypeScriptCompile Remove="ts-helpermethods\ts-helpermethods-UWP\**\*.js" />
<Content Include="ts-helpermethods\ts-helpermethods-Wasm\tsconfig.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
@@ -104,7 +105,7 @@
</Compile>
<None Remove="ts-helpermethods\**\*.js" />
<Content Remove="ts-helpermethods\**\*.js" />
- <TypeScriptCompile Remove="ts-helpermethods\ts-helpermethods-Windows\**\*.js" />
+ <TypeScriptCompile Remove="ts-helpermethods\ts-helpermethods-UWP\**\*.js" />
<Content Include="ts-helpermethods\ts-helpermethods-Wasm\tsconfig.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
@@ -119,6 +120,58 @@
</ItemGroup>
</When>
+ <When Condition="'$(TargetFramework)' == '$(NetCoreWindows)'">
+ <PropertyGroup>
+ <IsWasdk>true</IsWasdk>
+ <DefineConstants>$(DefineConstants);__WINDOWS__</DefineConstants>
+ <TargetPlatformMinVersion>$(Windows10MinSDKVersion)</TargetPlatformMinVersion>
+ <RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
+ <EnableDefaultPageItems>false</EnableDefaultPageItems>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Platform)' == 'AnyCPU'">
+ <PlatformTarget>x86</PlatformTarget>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)'=='Release'">
+ <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
+ <GenerateLibraryLayout>true</GenerateLibraryLayout>
+ <EnableDefaultPriItems>false</EnableDefaultPriItems>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="Microsoft.WindowsAppSDK" />
+ <PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="CodeEditor\CodeEditor.Windows.html">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <None Remove="ts-helpermethods\ts-helpermethods-Wasm\**\*.js" />
+ <Content Remove="ts-helpermethods\ts-helpermethods-Wasm\**\*.js" />
+ <TypeScriptCompile Remove="ts-helpermethods\ts-helpermethods-Wasm\**\*.*" />
+ <Content Include="ts-helpermethods\ts-helpermethods-UWP\tsconfig.json">
+ <CopyToOutputDirectory>Never</CopyToOutputDirectory>
+ </Content>
+ <ConfigFiles Include="ts-helpermethods\ts-helpermethods-UWP\tsconfig.json" />
+ <None Include="highlightjs\**" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="WasmScripts\UWP\uno-monaco-helpers.g.js">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Assets\**">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="monaco-editor\*.*">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="monaco-editor\min\**\*.*">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="ts-helpermethods\**\*.js">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ </When>
+
<When Condition="'$(TargetFramework)' == '$(UAP)'">
<PropertyGroup>
<IsUWP>true</IsUWP>
@@ -143,15 +196,12 @@
<None Remove="ts-helpermethods\ts-helpermethods-Wasm\**\*.js" />
<Content Remove="ts-helpermethods\ts-helpermethods-Wasm\**\*.js" />
<TypeScriptCompile Remove="ts-helpermethods\ts-helpermethods-Wasm\**\*.*" />
- <Content Include="ts-helpermethods\ts-helpermethods-Windows\tsconfig.json">
+ <Content Include="ts-helpermethods\ts-helpermethods-UWP\tsconfig.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
- <ConfigFiles Include="ts-helpermethods\ts-helpermethods-Windows\tsconfig.json" />
+ <ConfigFiles Include="ts-helpermethods\ts-helpermethods-UWP\tsconfig.json" />
<None Include="highlightjs\**" />
</ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="WasmScripts\UWP\uno-monaco-helpers.g.js" />
- </ItemGroup>
</When>
</Choose>
diff --git a/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Windows/Monaco.Helpers.ThemeAccessor.ts b/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-UWP/Monaco.Helpers.ThemeAccessor.ts
similarity index 100%
rename from src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Windows/Monaco.Helpers.ThemeAccessor.ts
rename to src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-UWP/Monaco.Helpers.ThemeAccessor.ts
diff --git a/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Windows/asyncCallbackHelpers.ts b/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-UWP/asyncCallbackHelpers.ts
similarity index 100%
rename from src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Windows/asyncCallbackHelpers.ts
rename to src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-UWP/asyncCallbackHelpers.ts
diff --git a/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Windows/tsconfig.json b/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-UWP/tsconfig.json
similarity index 100%
rename from src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Windows/tsconfig.json
rename to src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-UWP/tsconfig.json
diff --git a/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Wasm/tsconfig.json b/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Wasm/tsconfig.json
index 592eb121e..a4d935cd3 100644
--- a/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Wasm/tsconfig.json
+++ b/src/app/dev/DevToys.MonacoEditor/ts-helpermethods/ts-helpermethods-Wasm/tsconfig.json
@@ -11,6 +11,6 @@
"..\\..\\ts-helpermethods"
],
"exclude": [
- "..\\..\\ts-helpermethods\\ts-helpermethods-Windows"
+ "..\\..\\ts-helpermethods\\ts-helpermethods-UWP"
]
}
\ No newline at end of file
diff --git a/src/app/dev/DevToys.UI.Framework/DevToys.UI.Framework.csproj b/src/app/dev/DevToys.UI.Framework/DevToys.UI.Framework.csproj
index 3f472b0ed..1923f9351 100644
--- a/src/app/dev/DevToys.UI.Framework/DevToys.UI.Framework.csproj
+++ b/src/app/dev/DevToys.UI.Framework/DevToys.UI.Framework.csproj
@@ -6,7 +6,7 @@
<PropertyGroup>
<TargetFrameworks>$(NetCore)</TargetFrameworks>
<TargetFrameworks Condition="$(IsMac)">$(TargetFrameworks);$(NetMacCatalyst)</TargetFrameworks>
- <TargetFrameworks Condition="$(IsWindows)">$(TargetFrameworks);$(UAP)</TargetFrameworks>
+ <TargetFrameworks Condition="$(IsWindows)">$(TargetFrameworks);$(UAP);$(NetCoreWindows)</TargetFrameworks>
<!-- Ensures the .xr.xml files are generated in a proper layout folder -->
<GenerateLibraryLayout>true</GenerateLibraryLayout>
@@ -44,6 +44,28 @@
</ItemGroup>
</When>
+ <When Condition="'$(TargetFramework)' == '$(NetCoreWindows)'">
+ <PropertyGroup>
+ <IsUWP>true</IsUWP>
+ <DefineConstants>$(DefineConstants);__WINDOWS__</DefineConstants>
+ <TargetPlatformMinVersion>$(Windows10MinSDKVersion)</TargetPlatformMinVersion>
+ <RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
+ <EnableDefaultPageItems>false</EnableDefaultPageItems>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Platform)' == 'AnyCPU'">
+ <PlatformTarget>x86</PlatformTarget>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)'=='Release'">
+ <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
+ <GenerateLibraryLayout>true</GenerateLibraryLayout>
+ <EnableDefaultPriItems>false</EnableDefaultPriItems>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="Microsoft.WindowsAppSDK" />
+ <PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
+ </ItemGroup>
+ </When>
+
<When Condition="'$(TargetFramework)' == '$(UAP)'">
<PropertyGroup>
<IsUWP>true</IsUWP>
diff --git a/src/app/dev/DevToys.UI/DevToys.UI.csproj b/src/app/dev/DevToys.UI/DevToys.UI.csproj
index a07676688..349d62e07 100644
--- a/src/app/dev/DevToys.UI/DevToys.UI.csproj
+++ b/src/app/dev/DevToys.UI/DevToys.UI.csproj
@@ -6,7 +6,7 @@
<PropertyGroup>
<TargetFrameworks>$(NetCore)</TargetFrameworks>
<TargetFrameworks Condition="$(IsMac)">$(TargetFrameworks);$(NetMacCatalyst)</TargetFrameworks>
- <TargetFrameworks Condition="$(IsWindows)">$(TargetFrameworks);$(UAP)</TargetFrameworks>
+ <TargetFrameworks Condition="$(IsWindows)">$(TargetFrameworks);$(UAP);$(NetCoreWindows)</TargetFrameworks>
<!-- Ensures the .xr.xml files are generated in a proper layout folder -->
<GenerateLibraryLayout>true</GenerateLibraryLayout>
@@ -44,6 +44,28 @@
</ItemGroup>
</When>
+ <When Condition="'$(TargetFramework)' == '$(NetCoreWindows)'">
+ <PropertyGroup>
+ <IsUWP>true</IsUWP>
+ <DefineConstants>$(DefineConstants);__WINDOWS__</DefineConstants>
+ <TargetPlatformMinVersion>$(Windows10MinSDKVersion)</TargetPlatformMinVersion>
+ <RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
+ <EnableDefaultPageItems>false</EnableDefaultPageItems>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Platform)' == 'AnyCPU'">
+ <PlatformTarget>x86</PlatformTarget>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)'=='Release'">
+ <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
+ <GenerateLibraryLayout>true</GenerateLibraryLayout>
+ <EnableDefaultPriItems>false</EnableDefaultPriItems>
+ </PropertyGroup>
+ <ItemGroup>
+ <PackageReference Include="Microsoft.WindowsAppSDK" />
+ <PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
+ </ItemGroup>
+ </When>
+
<When Condition="'$(TargetFramework)' == '$(UAP)'">
<PropertyGroup>
<IsUWP>true</IsUWP>
diff --git a/src/app/dev/DevToys.UI/Views/MainPage.xaml b/src/app/dev/DevToys.UI/Views/MainPage.xaml
index 7c71dd38c..9a6567448 100644
--- a/src/app/dev/DevToys.UI/Views/MainPage.xaml
+++ b/src/app/dev/DevToys.UI/Views/MainPage.xaml
@@ -9,9 +9,8 @@
xmlns:wasm="http://uno.ui/wasm"
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:not_win="http://uno.ui/not_win"
- mc:Ignorable="d"
- NavigationCacheMode="Enabled"
- muxc:BackdropMaterial.ApplyToRootOrPageBackground="True">
+ mc:Ignorable="d wasm not_win"
+ NavigationCacheMode="Enabled">
<Grid Background="Transparent">
<Grid.BackgroundTransition>
diff --git a/src/app/dev/DevToys.UI/Views/MainPage.xaml.cs b/src/app/dev/DevToys.UI/Views/MainPage.xaml.cs
index eb6610e80..4c6d9aa75 100644
--- a/src/app/dev/DevToys.UI/Views/MainPage.xaml.cs
+++ b/src/app/dev/DevToys.UI/Views/MainPage.xaml.cs
@@ -1,4 +1,5 @@
#if WINDOWS_UWP
+using Microsoft.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls;
#else
using Microsoft.UI.Xaml.Controls;
@@ -21,5 +22,10 @@ public sealed partial class MainPage : Page
public MainPage()
{
this.InitializeComponent();
+
+#if WINDOWS_UWP
+ // Enable Mica effect.
+ BackdropMaterial.SetApplyToRootOrPageBackground(this, true);
+#endif
}
}
diff --git a/src/app/dev/Directory.Build.props b/src/app/dev/Directory.Build.props
index ec9c90cee..635f096c1 100644
--- a/src/app/dev/Directory.Build.props
+++ b/src/app/dev/Directory.Build.props
@@ -10,6 +10,13 @@
<!-- Workaround for https://github.com/unoplatform/uno/discussions/5007, to remove when original VS issue is fixed. -->
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
+
+ <!-- https://github.com/dotnet/project-system/blob/main/docs/build-acceleration.md -->
+ <AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
+ </PropertyGroup>
+
+ <PropertyGroup Condition="'$(Configuration)'=='Release'">
+ <Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
diff --git a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/DevToys.MauiBlazor.csproj b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/DevToys.MauiBlazor.csproj
index ccd5dd683..1ed135ca4 100644
--- a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/DevToys.MauiBlazor.csproj
+++ b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/DevToys.MauiBlazor.csproj
@@ -41,6 +41,8 @@
<DefineConstants>$(DefineConstants);__WINDOWS__</DefineConstants>
<TargetPlatformMinVersion>$(Windows10MinSDKVersion)</TargetPlatformMinVersion>
<SupportedOSPlatformVersion>$(Windows10MinSDKVersion)</SupportedOSPlatformVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)'=='Release'">
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-arm64;win10-x64;win10-x86</RuntimeIdentifiers>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
diff --git a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Platforms/Windows/Package.appxmanifest b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Platforms/Windows/Package.appxmanifest
index 7f83f732a..00cc1df03 100644
--- a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Platforms/Windows/Package.appxmanifest
+++ b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Platforms/Windows/Package.appxmanifest
@@ -7,7 +7,7 @@
IgnorableNamespaces="uap mp rescap">
<!-- Please DO NOT commit changes on the version number below unless you're about to release a new version of the app on the Store. -->
- <Identity Name="DevToysPreview"
+ <Identity Name="DevToysMauiBlazor"
Publisher="CN=ebaud"
Version="0.0.0.0" />
diff --git a/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Properties/launchSettings.json b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Properties/launchSettings.json
new file mode 100644
index 000000000..edf8aadcc
--- /dev/null
+++ b/src/app/dev/platforms/desktop/DevToys.MauiBlazor/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/LockScreenLogo.scale-200.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/LockScreenLogo.scale-200.png
new file mode 100644
index 000000000..7440f0d4b
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/LockScreenLogo.scale-200.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/SplashScreen.scale-200.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/SplashScreen.scale-200.png
new file mode 100644
index 000000000..32f486a86
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/SplashScreen.scale-200.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square150x150Logo.scale-200.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square150x150Logo.scale-200.png
new file mode 100644
index 000000000..53ee3777e
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square150x150Logo.scale-200.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square44x44Logo.scale-200.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square44x44Logo.scale-200.png
new file mode 100644
index 000000000..f713bba67
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square44x44Logo.scale-200.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
new file mode 100644
index 000000000..dc9f5bea0
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/StoreLogo.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/StoreLogo.png
new file mode 100644
index 000000000..a4586f26b
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/StoreLogo.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Wide310x150Logo.scale-200.png b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Wide310x150Logo.scale-200.png
new file mode 100644
index 000000000..8b4a5d0dd
Binary files /dev/null and b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Assets/Wide310x150Logo.scale-200.png differ
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/DevToys.Wasdk.csproj b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/DevToys.Wasdk.csproj
new file mode 100644
index 000000000..5aea52cf3
--- /dev/null
+++ b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/DevToys.Wasdk.csproj
@@ -0,0 +1,70 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <OutputType>WinExe</OutputType>
+ <TargetFramework>$(NetCoreWindows)</TargetFramework>
+ <TargetPlatformMinVersion>$(Windows10MinSDKVersion)</TargetPlatformMinVersion>
+ <RootNamespace>DevToys.Wasdk</RootNamespace>
+ <ApplicationManifest>app.manifest</ApplicationManifest>
+ <UseWinUI>true</UseWinUI>
+ <EnableMsixTooling>true</EnableMsixTooling>
+ <DefineConstants>$(DefineConstants);__WINDOWS__</DefineConstants>
+ <Platforms>x86;x64;arm64</Platforms>
+ <RuntimeIdentifiers>win10-arm64;win10-x64;win10-x86</RuntimeIdentifiers>
+ <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
+ <WinUISDKReferences>false</WinUISDKReferences>
+ <WindowsPackageType>None</WindowsPackageType>
+ <SelfContained>true</SelfContained>
+ <AppxPackage>false</AppxPackage>
+ </PropertyGroup>
+
+ <PropertyGroup Condition="'$(RuntimeIdentifierOverride)' != ''">
+ <RuntimeIdentifier>$(RuntimeIdentifierOverride)</RuntimeIdentifier>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Content Include="Assets\SplashScreen.scale-200.png" />
+ <Content Include="Assets\LockScreenLogo.scale-200.png" />
+ <Content Include="Assets\Square150x150Logo.scale-200.png" />
+ <Content Include="Assets\Square44x44Logo.scale-200.png" />
+ <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
+ <Content Include="Assets\StoreLogo.png" />
+ <Content Include="Assets\Wide310x150Logo.scale-200.png" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.Extensions.Logging" />
+ <PackageReference Include="Microsoft.Extensions.Logging.Console" />
+ <PackageReference Include="Microsoft.Extensions.Logging.Debug" />
+ <PackageReference Include="Microsoft.WindowsAppSDK" />
+ <PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
+ <Manifest Include="$(ApplicationManifest)" />
+ </ItemGroup>
+
+ <!--
+ Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
+ Tools extension to be activated for this project even if the Windows App SDK Nuget
+ package has not yet been restored.
+ -->
+ <ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
+ <ProjectCapability Include="Msix" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\..\..\..\DevToys.Api\DevToys.Api.csproj" />
+ <ProjectReference Include="..\..\..\..\DevToys.Core\DevToys.Core.csproj" />
+ <ProjectReference Include="..\..\..\..\DevToys.MonacoEditor\DevToys.MonacoEditor.csproj" />
+ <ProjectReference Include="..\..\..\..\DevToys.UI.Framework\DevToys.UI.Framework.csproj" />
+ <ProjectReference Include="..\..\..\..\DevToys.UI\DevToys.UI.csproj" />
+ </ItemGroup>
+
+ <!--
+ Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
+ Explorer "Package and Publish" context menu entry to be enabled for this project even if
+ the Windows App SDK Nuget package has not yet been restored.
+ -->
+ <PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
+ <HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
+ </PropertyGroup>
+
+ <Import Project="..\..\..\..\DevToys.UI.EntryPoint\DevToys.UI.EntryPoint.projitems" Label="Shared" />
+</Project>
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Package.appxmanifest b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Package.appxmanifest
new file mode 100644
index 000000000..290552df9
--- /dev/null
+++ b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Package.appxmanifest
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<Package
+ xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
+ xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
+ xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
+ IgnorableNamespaces="uap rescap">
+
+ <!-- Please DO NOT commit changes on the version number below unless you're about to release a new version of the app on the Store. -->
+ <Identity Name="DevToysWasdk"
+ Publisher="CN=ebaud"
+ Version="0.0.0.0" />
+
+ <Properties>
+ <DisplayName>DevToys - Preview</DisplayName>
+ <PublisherDisplayName>etiennebaudoux</PublisherDisplayName>
+ <Logo>Assets\StoreLogo.png</Logo>
+ </Properties>
+
+ <Dependencies>
+ <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
+ <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
+ </Dependencies>
+
+ <Resources>
+ <Resource Language="x-generate"/>
+ </Resources>
+
+ <Applications>
+ <Application Id="App"
+ Executable="$targetnametoken$.exe"
+ EntryPoint="$targetentrypoint$">
+ <uap:VisualElements
+ DisplayName="DevToys"
+ Description="DevToys"
+ BackgroundColor="transparent"
+ Square150x150Logo="Assets\Square150x150Logo.png"
+ Square44x44Logo="Assets\Square44x44Logo.png">
+ <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
+ <uap:SplashScreen Image="Assets\SplashScreen.png" />
+ </uap:VisualElements>
+ </Application>
+ </Applications>
+
+ <Capabilities>
+ <rescap:Capability Name="runFullTrust" />
+ </Capabilities>
+</Package>
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Properties/launchSettings.json b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Properties/launchSettings.json
new file mode 100644
index 000000000..846e935fd
--- /dev/null
+++ b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/Properties/launchSettings.json
@@ -0,0 +1,10 @@
+{
+ "profiles": {
+ //"DevToys.Wasdk (Package)": {
+ // "commandName": "MsixPackage"
+ //},
+ "DevToys.Wasdk (Unpackaged)": {
+ "commandName": "Project"
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/app.manifest b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/app.manifest
new file mode 100644
index 000000000..4b3e6d5f2
--- /dev/null
+++ b/src/app/dev/platforms/desktop/windows/DevToys.Wasdk/app.manifest
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
+ <assemblyIdentity version="1.0.0.0" name="DevToys.Wasdk.app"/>
+
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <!--The ID below informs the system that this application is compatible with OS features first introduced in Windows 8.
+ For more info see https://docs.microsoft.com/windows/win32/sysinfo/targeting-your-application-at-windows-8-1
+
+ It is also necessary to support features in unpackaged applications, for example the custom titlebar implementation.-->
+ <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
+ </application>
+ </compatibility>
+
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings>
+ <!-- The combination of below two tags have the following effect:
+ 1) Per-Monitor for >= Windows 10 Anniversary Update
+ 2) System < Windows 10 Anniversary Update
+ -->
+ <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
+ <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
+ </windowsSettings>
+ </application>
+</assembly>
\ No newline at end of file
diff --git a/src/app/dev/platforms/web/DevToys.Wasm/Properties/launchSettings.json b/src/app/dev/platforms/web/DevToys.Wasm/Properties/launchSettings.json
new file mode 100644
index 000000000..7abaaba5c
--- /dev/null
+++ b/src/app/dev/platforms/web/DevToys.Wasm/Properties/launchSettings.json
@@ -0,0 +1,30 @@
+{
+ "profiles": {
+ "DevToys.Wasm": {
+ "commandName": "Project",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "dotnetRunMessages": true,
+ "applicationUrl": "http://localhost:5000",
+ "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
+ },
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ },
+ "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
+ }
+ },
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:8080",
+ "sslPort": 0
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/build/AppVersion/AppxManifestUpdater.cs b/src/build/AppVersion/AppxManifestUpdater.cs
index dd83d77ee..96a09d5b9 100644
--- a/src/build/AppVersion/AppxManifestUpdater.cs
+++ b/src/build/AppVersion/AppxManifestUpdater.cs
@@ -21,10 +21,10 @@ internal sealed class AppxManifestUpdater
public string UpdateTextWithRule(string text)
{
- Tuple<string, int, int> g = GetVersionString(text);
+ Tuple<string, int, int>? g = GetVersionString(text);
if (g != null)
{
- if (VersionString.TryParse(g.Item1, out VersionString v) && v is not null)
+ if (VersionString.TryParse(g.Item1, out VersionString? v) && v is not null)
{
string newVersion = new VersionUpdateRule(_versionRule).Update(v);
return string.Concat(text.AsSpan(0, g.Item2), newVersion, text.AsSpan(g.Item2 + g.Item3));
@@ -34,7 +34,7 @@ internal sealed class AppxManifestUpdater
return text;
}
- public static Tuple<string, int, int> GetVersionString(string input)
+ public static Tuple<string, int, int>? GetVersionString(string input)
{
string identityTagStart = "<Identity";
string identityTagEnd = ">";
diff --git a/src/build/AppVersion/CSharpUpdater.cs b/src/build/AppVersion/CSharpUpdater.cs
index 874224027..557a8dd76 100644
--- a/src/build/AppVersion/CSharpUpdater.cs
+++ b/src/build/AppVersion/CSharpUpdater.cs
@@ -45,10 +45,10 @@ internal sealed class CSharpUpdater
private static bool UpdateLineWithRule(ref string line, CSharpVersionUpdateRule rule)
{
bool updated = false;
- Group g = GetVersionString(line, rule.AttributeName);
+ Group? g = GetVersionString(line, rule.AttributeName);
if (g != null)
{
- if (VersionString.TryParse(g.Value, out VersionString v) && v is not null)
+ if (VersionString.TryParse(g.Value, out VersionString? v) && v is not null)
{
string newVersion = rule.Update(v);
line = string.Concat(line.AsSpan(0, g.Index), newVersion, line.AsSpan(g.Index + g.Length));
@@ -59,7 +59,7 @@ internal sealed class CSharpUpdater
return updated;
}
- private static Group GetVersionString(string input, string attributeName)
+ private static Group? GetVersionString(string input, string attributeName)
{
int commentIndex = input.IndexOf("//");
if (commentIndex != -1)
diff --git a/src/build/AppVersion/VersionString.cs b/src/build/AppVersion/VersionString.cs
index 35fe9a8ff..c7a7d03da 100644
--- a/src/build/AppVersion/VersionString.cs
+++ b/src/build/AppVersion/VersionString.cs
@@ -34,7 +34,7 @@ internal sealed class VersionString
return match.Success;
}
- public static bool TryParse(string input, out VersionString version)
+ public static bool TryParse(string input, out VersionString? version)
{
var temp = new VersionString();
version = null;
@@ -45,10 +45,13 @@ internal sealed class VersionString
return version != null;
}
- public string Major { get; set; }
- public string Minor { get; set; }
- public string Build { get; set; }
- public string Revision { get; set; }
+ public string Major { get; set; } = string.Empty;
+
+ public string Minor { get; set; } = string.Empty;
+
+ public string Build { get; set; } = string.Empty;
+
+ public string Revision { get; set; } = string.Empty;
public override string ToString()
{
diff --git a/src/build/Build.cs b/src/build/Build.cs
index 73e3a113f..45c9b521d 100644
--- a/src/build/Build.cs
+++ b/src/build/Build.cs
@@ -35,16 +35,16 @@ class Build : NukeBuild
readonly Configuration Configuration = Configuration.Release;
[Parameter("The target platform")]
- readonly PlatformTarget[] PlatformTargets;
+ readonly PlatformTarget[]? PlatformTargets;
[Parameter("Runs unit tests")]
readonly bool RunTests;
[Solution]
- readonly Solution WindowsSolution;
+ readonly Solution? WindowsSolution;
[Solution]
- readonly Solution MacSolution;
+ readonly Solution? MacSolution;
Target PreliminaryCheck => _ => _
.Before(Clean)
@@ -53,16 +53,19 @@ class Build : NukeBuild
if (PlatformTargets == null || PlatformTargets.Length == 0)
{
Assert.Fail("Parameter `--platform-targets` is missing. Please check `build.sh --help`.");
+ return;
}
if (PlatformTargets.Contains(PlatformTarget.Windows) && !OperatingSystem.IsWindowsVersionAtLeast(10, 0, 0, 0))
{
Assert.Fail("To build Windows UWP app, you need to run on Windows 10 or later.");
+ return;
}
if (PlatformTargets.Contains(PlatformTarget.MacOS) && !OperatingSystem.IsMacOS())
{
Assert.Fail("To build macOS app, you need to run on macOS Ventura 13.1 or later.");
+ return;
}
Log.Information("Preliminary checks are successful.");
@@ -120,82 +123,83 @@ class Build : NukeBuild
.DependsOn(Restore)
.Executes(() =>
{
- if (PlatformTargets.Contains(PlatformTarget.Windows))
+ if (PlatformTargets!.Contains(PlatformTarget.Windows))
{
- //RootDirectory
- // .GlobFiles("**/*.wapproj")
- // .ForEach(f =>
- // {
- // Log.Information($"Building {f}...");
- // MSBuild(s => s
- // .SetTargetPath(f)
- // .SetConfiguration(Configuration)
- // .SetTargets("Build")
- // .AddProperty("AppxBundlePlatforms", "x86|x64|arm64")
- // .AddProperty("AppxPackageDir", RootDirectory / "publish" / "MSIX")
- // .AddProperty("AppxPackageSigningEnabled", false)
- // .AddProperty("AppxSymbolPackageEnabled", true)
- // .AddProperty("AppxBundle", "Always")
- // .AddProperty("UapAppxPackageBuildMode", "StoreUpload")
- // .SetProcessArgumentConfigurator(_ => _.Add($"/bl:\"{RootDirectory / "bin" / "msbuild.binlog"}\""))
- // .SetVerbosity(MSBuildVerbosity.Quiet)
- // .SetMaxCpuCount(1)
- // .EnableRestore()
- // // This is dummy but necessary otherwise MSBuild tries to use Any CPU, which doesn't work for UWP.
- // .SetTargetPlatform(MSBuildTargetPlatform.x86));
- // });
-
- Project[] projects = {
- MacSolution.GetProject("DevToys.MauiBlazor")
- };
+ // DevToys UWP
+ RootDirectory
+ .GlobFiles("**/*.wapproj")
+ .ForEach(f =>
+ {
+ Log.Information($"Building {f}...");
+ MSBuild(s => s
+ .SetTargetPath(f)
+ .SetConfiguration(Configuration)
+ .SetTargets("Build")
+ .AddProperty("AppxBundlePlatforms", "x86|x64|arm64")
+ .AddProperty("AppxPackageDir", RootDirectory / "publish" / "MSIX")
+ .AddProperty("AppxPackageSigningEnabled", false)
+ .AddProperty("AppxSymbolPackageEnabled", true)
+ .AddProperty("AppxBundle", "Always")
+ .AddProperty("UapAppxPackageBuildMode", "StoreUpload")
+ .SetProcessArgumentConfigurator(_ => _.Add($"/bl:\"{RootDirectory / "bin" / "msbuild.binlog"}\""))
+ .SetVerbosity(MSBuildVerbosity.Quiet)
+ .SetMaxCpuCount(1)
+ .EnableRestore()
+ // This is dummy but necessary otherwise MSBuild tries to use Any CPU, which doesn't work for UWP.
+ .SetTargetPlatform(MSBuildTargetPlatform.x86));
+ });
- foreach (Project project in projects)
+ // DevToys MAUI Blazor
+ foreach (DotnetParameters dotnetParameters in GetDotnetParametersForMauiBlazorApp())
{
- var configs = new List<DotnetParameters>();
- foreach (string targetFramework in project.GetTargetFrameworks())
- {
- configs.Add(new DotnetParameters(project.Path, "win10-arm64", targetFramework, portable: true));
- configs.Add(new DotnetParameters(project.Path, "win10-x64", targetFramework, portable: true));
- configs.Add(new DotnetParameters(project.Path, "win10-x86", targetFramework, portable: true));
- }
+ Log.Information($"Publishing {dotnetParameters.ProjectOrSolutionPath + "-" + dotnetParameters.TargetFramework + "-" + dotnetParameters.RuntimeIdentifier}...");
+ DotNetPublish(s => s
+ .SetProject(dotnetParameters.ProjectOrSolutionPath)
+ .SetConfiguration(Configuration)
+ .SetFramework(dotnetParameters.TargetFramework)
+ .SetRuntime(dotnetParameters.RuntimeIdentifier)
+ .SetSelfContained(true)
+ .SetPublishSingleFile(false)
+ .SetPublishReadyToRun(false)
+ .SetPublishTrimmed(false) // TODO?
+ .SetVerbosity(DotNetVerbosity.Quiet)
+ .SetProcessArgumentConfigurator(_ => _
+ .Add("/p:RuntimeIdentifierOverride=" + dotnetParameters.RuntimeIdentifier))
+ .SetOutput(RootDirectory / "publish" / dotnetParameters.OutputPath));
+ }
- foreach (DotnetParameters dotnetParameters in configs)
- {
- Log.Information($"Publishing {dotnetParameters.ProjectOrSolutionPath + "-" + dotnetParameters.TargetFramework + "-" + dotnetParameters.RuntimeIdentifier}...");
- DotNetPublish(s => s
- .SetProject(dotnetParameters.ProjectOrSolutionPath)
- .SetConfiguration(Configuration)
- .SetFramework(dotnetParameters.TargetFramework)
- .SetRuntime(dotnetParameters.RuntimeIdentifier)
- .SetSelfContained(true)
- .SetPublishSingleFile(false)
- .SetPublishReadyToRun(false)
- .SetPublishTrimmed(false)
- .SetVerbosity(DotNetVerbosity.Quiet)
- .SetProcessArgumentConfigurator(_ => _
- .Add("/p:RuntimeIdentifierOverride=" + dotnetParameters.RuntimeIdentifier))
- .SetOutput(RootDirectory / "publish" / dotnetParameters.OutputPath));
- }
+ // DevToys WASDK
+ foreach (DotnetParameters dotnetParameters in GetDotnetParametersForWasdkApp())
+ {
+ Log.Information($"Publishing {dotnetParameters.ProjectOrSolutionPath + "-" + dotnetParameters.TargetFramework + "-" + dotnetParameters.RuntimeIdentifier}...");
+ DotNetPublish(s => s
+ .SetProject(dotnetParameters.ProjectOrSolutionPath)
+ .SetConfiguration(Configuration)
+ .SetFramework(dotnetParameters.TargetFramework)
+ .SetRuntime(dotnetParameters.RuntimeIdentifier)
+ .SetPlatform(dotnetParameters.Platform)
+ .SetSelfContained(true)
+ .SetPublishSingleFile(false)
+ .SetPublishReadyToRun(false)
+ .SetPublishTrimmed(false) // TODO?
+ .SetVerbosity(DotNetVerbosity.Quiet)
+ .SetProcessArgumentConfigurator(_ => _
+ .Add("/p:RuntimeIdentifierOverride=" + dotnetParameters.RuntimeIdentifier))
+ .SetOutput(RootDirectory / "publish" / dotnetParameters.OutputPath));
}
}
- if (PlatformTargets.Contains(PlatformTarget.MacOS))
+ if (PlatformTargets!.Contains(PlatformTarget.MacOS))
{
+ // DevToys Uno Mac Catalyst and MAUI Blazor
Project[] projects = {
- MacSolution.GetProject("DevToys.MacOS"),
+ MacSolution!.GetProject("DevToys.MacOS"),
MacSolution.GetProject("DevToys.MauiBlazor")
};
foreach (Project project in projects)
{
- var configs = new List<DotnetParameters>();
- foreach (string targetFramework in project.GetTargetFrameworks())
- {
- configs.Add(new DotnetParameters(project.Path, "maccatalyst-arm64", targetFramework, portable: true));
- configs.Add(new DotnetParameters(project.Path, "maccatalyst-x64", targetFramework, portable: true));
- }
-
- foreach (DotnetParameters dotnetParameters in configs)
+ foreach (DotnetParameters dotnetParameters in GetDotnetParametersForMauiBlazorApp())
{
Log.Information($"Publishing {dotnetParameters.ProjectOrSolutionPath + "-" + dotnetParameters.TargetFramework + "-" + dotnetParameters.RuntimeIdentifier}...");
DotNetBuild(s => s
@@ -214,8 +218,9 @@ class Build : NukeBuild
}
}
- if (PlatformTargets.Contains(PlatformTarget.CLI))
+ if (PlatformTargets!.Contains(PlatformTarget.CLI))
{
+ // DevToys CLI
foreach (DotnetParameters dotnetParameters in GetDotnetParametersForCliApp())
{
Log.Information($"Publishing {dotnetParameters.ProjectOrSolutionPath + "-" + dotnetParameters.TargetFramework + "-" + dotnetParameters.RuntimeIdentifier}...");
@@ -241,7 +246,7 @@ class Build : NukeBuild
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
- project = MacSolution.GetProject(publishProject);
+ project = MacSolution!.GetProject(publishProject);
foreach (string targetFramework in project.GetTargetFrameworks())
{
yield return new DotnetParameters(project.Path, "osx-x64", targetFramework, portable: false);
@@ -253,7 +258,7 @@ class Build : NukeBuild
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
- project = WindowsSolution.GetProject(publishProject);
+ project = WindowsSolution!.GetProject(publishProject);
foreach (string targetFramework in project.GetTargetFrameworks())
{
yield return new DotnetParameters(project.Path, "win10-x64", targetFramework, portable: false);
@@ -271,5 +276,56 @@ class Build : NukeBuild
// TODO
}
}
+
+ IEnumerable<DotnetParameters> GetDotnetParametersForWasdkApp()
+ {
+ string publishProject = "DevToys.Wasdk";
+ Project project;
+
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
+ project = WindowsSolution!.GetProject(publishProject);
+ foreach (string targetFramework in project.GetTargetFrameworks())
+ {
+ yield return new DotnetParameters(project.Path, "win10-arm64", targetFramework, portable: true, platform: "arm64");
+ yield return new DotnetParameters(project.Path, "win10-x64", targetFramework, portable: true, platform: "x64");
+ yield return new DotnetParameters(project.Path, "win10-x86", targetFramework, portable: true, platform: "x86");
+ }
+ }
+ else
+ {
+ throw new NotSupportedException();
+ }
+ }
+
+ IEnumerable<DotnetParameters> GetDotnetParametersForMauiBlazorApp()
+ {
+ string publishProject = "DevToys.MauiBlazor";
+ Project project;
+
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ {
+ project = MacSolution!.GetProject(publishProject);
+ foreach (string targetFramework in project.GetTargetFrameworks())
+ {
+ yield return new DotnetParameters(project.Path, "maccatalyst-arm64", targetFramework, portable: true);
+ yield return new DotnetParameters(project.Path, "maccatalyst-x64", targetFramework, portable: true);
+ }
+ }
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ {
+ project = WindowsSolution!.GetProject(publishProject);
+ foreach (string targetFramework in project.GetTargetFrameworks())
+ {
+ yield return new DotnetParameters(project.Path, "win10-arm64", targetFramework, portable: true);
+ yield return new DotnetParameters(project.Path, "win10-x64", targetFramework, portable: true);
+ yield return new DotnetParameters(project.Path, "win10-x86", targetFramework, portable: true);
+ }
+ }
+ else
+ {
+ throw new NotSupportedException();
+ }
+ }
#pragma warning restore IDE1006 // Naming Styles
}
diff --git a/src/build/DotnetParameters.cs b/src/build/DotnetParameters.cs
index fce4e8c53..e0a453385 100644
--- a/src/build/DotnetParameters.cs
+++ b/src/build/DotnetParameters.cs
@@ -10,14 +10,17 @@ internal sealed record DotnetParameters
internal readonly bool Portable;
+ internal readonly string? Platform;
+
internal readonly string OutputPath;
- public DotnetParameters(AbsolutePath projectOrSolutionPath, string runtimeIdentifier, string targetFramework, bool portable)
+ public DotnetParameters(AbsolutePath projectOrSolutionPath, string runtimeIdentifier, string targetFramework, bool portable, string? platform = null)
{
ProjectOrSolutionPath = projectOrSolutionPath;
RuntimeIdentifier = runtimeIdentifier;
TargetFramework = targetFramework;
Portable = portable;
+ Platform = platform;
OutputPath = $"{ProjectOrSolutionPath.Name}-{TargetFramework}-{RuntimeIdentifier}{(portable ? "-portable" : string.Empty)}";
}
}
diff --git a/src/build/Properties/launchSettings.json b/src/build/Properties/launchSettings.json
new file mode 100644
index 000000000..e19b2505d
--- /dev/null
+++ b/src/build/Properties/launchSettings.json
@@ -0,0 +1,7 @@
+{
+ "profiles": {
+ "_build": {
+ "commandName": "Project"
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/build/_build.csproj b/src/build/_build.csproj
index fe0050e25..ef862c72b 100644
--- a/src/build/_build.csproj
+++ b/src/build/_build.csproj
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
+ <Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<TargetFramework>$(NetCore)</TargetFramework>
<RootNamespace></RootNamespace>