From b5b547ad5e422a7037afd4f0d734d5ca64dfde29 Mon Sep 17 00:00:00 2001 From: eriklimakc Date: Thu, 26 Sep 2024 16:14:10 +0100 Subject: [PATCH] chore: Add launchSettings to samples --- samples/MauiEmbedding/MauiEmbedding.sln | 1 + .../PublishProfiles/win-arm64.pubxml | 22 ++++++++ .../Properties/PublishProfiles/win-x64.pubxml | 22 ++++++++ .../Properties/PublishProfiles/win-x86.pubxml | 22 ++++++++ .../Properties/launchSettings.json | 21 ++++++++ samples/Playground/Playground.sln | 1 + .../PublishProfiles/win-arm64.pubxml | 22 ++++++++ .../Properties/PublishProfiles/win-x64.pubxml | 22 ++++++++ .../Properties/PublishProfiles/win-x86.pubxml | 22 ++++++++ .../Playground/Properties/launchSettings.json | 50 +++++++++++++++++++ 10 files changed, 205 insertions(+) create mode 100644 samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-arm64.pubxml create mode 100644 samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x64.pubxml create mode 100644 samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x86.pubxml create mode 100644 samples/MauiEmbedding/MauiEmbedding/Properties/launchSettings.json create mode 100644 samples/Playground/Playground/Properties/PublishProfiles/win-arm64.pubxml create mode 100644 samples/Playground/Playground/Properties/PublishProfiles/win-x64.pubxml create mode 100644 samples/Playground/Playground/Properties/PublishProfiles/win-x86.pubxml create mode 100644 samples/Playground/Playground/Properties/launchSettings.json diff --git a/samples/MauiEmbedding/MauiEmbedding.sln b/samples/MauiEmbedding/MauiEmbedding.sln index 02347088da..588e9ec3c3 100644 --- a/samples/MauiEmbedding/MauiEmbedding.sln +++ b/samples/MauiEmbedding/MauiEmbedding.sln @@ -82,6 +82,7 @@ Global GlobalSection(ProjectConfigurationPlatforms) = postSolution {9A77D6D1-608D-4409-A0D9-FDD8AEF3BCC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9A77D6D1-608D-4409-A0D9-FDD8AEF3BCC5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9A77D6D1-608D-4409-A0D9-FDD8AEF3BCC5}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {9A77D6D1-608D-4409-A0D9-FDD8AEF3BCC5}.Debug|ARM.ActiveCfg = Debug|Any CPU {9A77D6D1-608D-4409-A0D9-FDD8AEF3BCC5}.Debug|ARM.Build.0 = Debug|Any CPU {9A77D6D1-608D-4409-A0D9-FDD8AEF3BCC5}.Debug|ARM64.ActiveCfg = Debug|Any CPU diff --git a/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-arm64.pubxml b/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-arm64.pubxml new file mode 100644 index 0000000000..d5147f1039 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-arm64.pubxml @@ -0,0 +1,22 @@ + + + + + FileSystem + arm64 + win-arm64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + False + True + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x64.pubxml b/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x64.pubxml new file mode 100644 index 0000000000..4fea954ee1 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x64.pubxml @@ -0,0 +1,22 @@ + + + + + FileSystem + x64 + win-x64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + False + True + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x86.pubxml b/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x86.pubxml new file mode 100644 index 0000000000..928cb25ebd --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding/Properties/PublishProfiles/win-x86.pubxml @@ -0,0 +1,22 @@ + + + + + FileSystem + x86 + win-x86 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + False + True + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding/Properties/launchSettings.json b/samples/MauiEmbedding/MauiEmbedding/Properties/launchSettings.json new file mode 100644 index 0000000000..e5de0d42d2 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding/Properties/launchSettings.json @@ -0,0 +1,21 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:8080", + "sslPort": 0 + } + }, + "profiles": { + // Note: In order to select this profile, you'll need to comment the `Packaged` profile below until this is fixed: https://aka.platform.uno/wasdk-maui-debug-profile-issue + "MauiEmbedding (WinAppSDK Unpackaged)": { + "commandName": "Project", + "compatibleTargetFramework": "windows" + }, + "MauiEmbedding (WinAppSDK Packaged)": { + "commandName": "MsixPackage", + "compatibleTargetFramework": "windows" + }, + } +} diff --git a/samples/Playground/Playground.sln b/samples/Playground/Playground.sln index e8a55f6d16..f923cc0623 100644 --- a/samples/Playground/Playground.sln +++ b/samples/Playground/Playground.sln @@ -1674,6 +1674,7 @@ Global {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.AppStore|x86.Build.0 = Debug|Any CPU {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.Debug|Any CPU.Build.0 = Debug|Any CPU + {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.Debug|ARM.ActiveCfg = Debug|Any CPU {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.Debug|ARM.Build.0 = Debug|Any CPU {13C1A52F-E012-4052-AC85-FEAC1E76EB13}.Debug|ARM64.ActiveCfg = Debug|Any CPU diff --git a/samples/Playground/Playground/Properties/PublishProfiles/win-arm64.pubxml b/samples/Playground/Playground/Properties/PublishProfiles/win-arm64.pubxml new file mode 100644 index 0000000000..d5147f1039 --- /dev/null +++ b/samples/Playground/Playground/Properties/PublishProfiles/win-arm64.pubxml @@ -0,0 +1,22 @@ + + + + + FileSystem + arm64 + win-arm64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + False + True + + + + diff --git a/samples/Playground/Playground/Properties/PublishProfiles/win-x64.pubxml b/samples/Playground/Playground/Properties/PublishProfiles/win-x64.pubxml new file mode 100644 index 0000000000..4fea954ee1 --- /dev/null +++ b/samples/Playground/Playground/Properties/PublishProfiles/win-x64.pubxml @@ -0,0 +1,22 @@ + + + + + FileSystem + x64 + win-x64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + False + True + + + + diff --git a/samples/Playground/Playground/Properties/PublishProfiles/win-x86.pubxml b/samples/Playground/Playground/Properties/PublishProfiles/win-x86.pubxml new file mode 100644 index 0000000000..928cb25ebd --- /dev/null +++ b/samples/Playground/Playground/Properties/PublishProfiles/win-x86.pubxml @@ -0,0 +1,22 @@ + + + + + FileSystem + x86 + win-x86 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + False + True + + + + diff --git a/samples/Playground/Playground/Properties/launchSettings.json b/samples/Playground/Playground/Properties/launchSettings.json new file mode 100644 index 0000000000..f32d92b76b --- /dev/null +++ b/samples/Playground/Playground/Properties/launchSettings.json @@ -0,0 +1,50 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:8080", + "sslPort": 0 + } + }, + "profiles": { + // This profile is first in order for dotnet run to pick it up by default + "Playground (WebAssembly)": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5000", + "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Playground (WebAssembly IIS Express)": { + "commandName": "IISExpress", + "launchBrowser": true, + "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + // Note: In order to select this profile, you'll need to comment the `Packaged` profile below until this is fixed: https://aka.platform.uno/wasdk-maui-debug-profile-issue + "Playground (WinAppSDK Unpackaged)": { + "commandName": "Project", + "compatibleTargetFramework": "windows" + }, + "Playground (WinAppSDK Packaged)": { + "commandName": "MsixPackage", + "compatibleTargetFramework": "windows" + }, + "Playground (Desktop)": { + "commandName": "Project", + "compatibleTargetFramework": "desktop" + }, + "Playground (Desktop WSL2)": { + "commandName": "WSL2", + "commandLineArgs": "{ProjectDir}/bin/Debug/net8.0-desktop/Playground.dll", + "distributionName": "", + "compatibleTargetFramework": "desktop" + } + } +}