From ba2915c712b14a33f9f5eed93a889de54f635f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Tue, 24 Jan 2023 12:06:40 +0100 Subject: [PATCH] - Correctly set SupportedPlatform on wasm projects. - Apply SupportedOSPlatformAttribute in templates. --- src/mono/wasm/build/WasmApp.targets | 3 +++ .../templates/templates/browser/Properties/AssemblyInfo.cs | 4 ++++ .../templates/templates/console/Properties/AssemblyInfo.cs | 4 ++++ 3 files changed, 11 insertions(+) create mode 100644 src/mono/wasm/templates/templates/browser/Properties/AssemblyInfo.cs create mode 100644 src/mono/wasm/templates/templates/console/Properties/AssemblyInfo.cs diff --git a/src/mono/wasm/build/WasmApp.targets b/src/mono/wasm/build/WasmApp.targets index fbd16363dd9ea3..856b017d10cb82 100644 --- a/src/mono/wasm/build/WasmApp.targets +++ b/src/mono/wasm/build/WasmApp.targets @@ -118,6 +118,9 @@ + + + diff --git a/src/mono/wasm/templates/templates/browser/Properties/AssemblyInfo.cs b/src/mono/wasm/templates/templates/browser/Properties/AssemblyInfo.cs new file mode 100644 index 00000000000000..9ad9b578f20649 --- /dev/null +++ b/src/mono/wasm/templates/templates/browser/Properties/AssemblyInfo.cs @@ -0,0 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +[assembly:System.Runtime.Versioning.SupportedOSPlatform("browser")] diff --git a/src/mono/wasm/templates/templates/console/Properties/AssemblyInfo.cs b/src/mono/wasm/templates/templates/console/Properties/AssemblyInfo.cs new file mode 100644 index 00000000000000..9ad9b578f20649 --- /dev/null +++ b/src/mono/wasm/templates/templates/console/Properties/AssemblyInfo.cs @@ -0,0 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +[assembly:System.Runtime.Versioning.SupportedOSPlatform("browser")]