diff --git a/src/libraries/sendtohelix-wasm.targets b/src/libraries/sendtohelix-wasm.targets index fcdcdad18e301cc165396e533b14dc93fc8c6095..12edd38bd0575900109e346bbd8281f4bc8f2c3e 100644 --- a/src/libraries/sendtohelix-wasm.targets +++ b/src/libraries/sendtohelix-wasm.targets @@ -38,14 +38,12 @@ $(BuildHelixWorkItemsDependsOn);StageEmSdkForHelix;PrepareForBuildHelixWorkItems_Wasm - $(BuildHelixWorkItemsDependsOn);DownloadFirefoxToSendToHelix false false $(RepoRoot)src\mono\wasm\emsdk\ $([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src', 'mono', 'wasm', 'emsdk')) - $(TestArchiveRoot)firefox.zip chrome true @@ -159,17 +157,18 @@ - - + - - + @@ -291,11 +290,4 @@ DestinationFiles="@(_EmSdkFiles -> '$(EmSdkDirForHelixPayload)\%(RecursiveDir)%(FileName)%(Extension)')" SkipUnchangedFiles="true" /> - - - - - - - diff --git a/src/libraries/sendtohelix.proj b/src/libraries/sendtohelix.proj index 60de339e34023a56c81899af429989a6c17daff7..6aca13e92bc10b1d88a192a53e31f43ad570d73d 100644 --- a/src/libraries/sendtohelix.proj +++ b/src/libraries/sendtohelix.proj @@ -48,6 +48,7 @@ HelixTargetQueues=$(HelixTargetQueues); BuildTargetFramework=$(BuildTargetFramework) + <_DebuggerHosts Condition="'$(_DebuggerHosts)' == ''">$(DebuggerHost) <_DebuggerHosts Condition="'$(_DebuggerHosts)' == ''">chrome diff --git a/src/mono/sample/wasm/CommonAssemblyInfo.cs b/src/mono/sample/wasm/CommonAssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..9ad9b578f206494703a32adab2e27c7f88a2b28e --- /dev/null +++ b/src/mono/sample/wasm/CommonAssemblyInfo.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/sample/wasm/Directory.Build.props b/src/mono/sample/wasm/Directory.Build.props index 7382a6e5ce8f07050090880aeeac7ebeff85d61f..d03dbcf021398df12c28ab06817d406ed60919d7 100644 --- a/src/mono/sample/wasm/Directory.Build.props +++ b/src/mono/sample/wasm/Directory.Build.props @@ -32,6 +32,8 @@ + + diff --git a/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs b/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs index 5e87669e4cf68a5a5a276380313e8d69f6fd7ae5..e1c5207659835eeb5084789d41e2fcb28a048ea6 100644 --- a/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs +++ b/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs @@ -463,7 +463,7 @@ private static string GetNuGetConfigWithLocalPackagesPath(string templatePath, s return contents.Replace(s_nugetInsertionTag, $@""); } - public string CreateWasmTemplateProject(string id, string template = "wasmbrowser", string extraArgs = "") + public string CreateWasmTemplateProject(string id, string template = "wasmbrowser", string extraArgs = "", bool runAnalyzers = true) { InitPaths(id); InitProjectDir(_projectDir, addNuGetSourceForLocalPackages: true); @@ -483,7 +483,10 @@ public string CreateWasmTemplateProject(string id, string template = "wasmbrowse .ExecuteWithCapturedOutput($"new {template} {extraArgs}") .EnsureSuccessful(); - return Path.Combine(_projectDir!, $"{id}.csproj"); + string projectfile = Path.Combine(_projectDir!, $"{id}.csproj"); + if (runAnalyzers) + AddItemsPropertiesToProject("true"); + return projectfile; } public string CreateBlazorWasmTemplateProject(string id) diff --git a/src/mono/wasm/build/WasmApp.targets b/src/mono/wasm/build/WasmApp.targets index 5cb9d26781b47fb6e24c66c7d81a2da8b53d6079..a2031cab5457f29da899f1b059ce49d23dd25a33 100644 --- a/src/mono/wasm/build/WasmApp.targets +++ b/src/mono/wasm/build/WasmApp.targets @@ -120,6 +120,9 @@ + + + diff --git a/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj b/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj index 68dd92779b0ead1bbe84b6313659ff851580524f..d74faaeb66e2cbffe7aaed11064f0c6da0527971 100644 --- a/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj +++ b/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj @@ -7,8 +7,9 @@ chrome $(DefineConstants);RUN_IN_CHROME windows - true - true + <_ProvisionBrowser Condition="'$(ContinuousIntegrationBuild)' == 'true' or Exists('/.dockerenv')">true + true + true $(OutputPath).runsettings diff --git a/src/mono/wasm/debugger/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj b/src/mono/wasm/debugger/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj index 2dd8ac14f2bfcb0fa60e72e9c7949e685eb89069..66490809749c87d1b5dc8d4e2043a02293a8fe59 100644 --- a/src/mono/wasm/debugger/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj +++ b/src/mono/wasm/debugger/Wasm.Debugger.Tests/Wasm.Debugger.Tests.csproj @@ -37,6 +37,7 @@ ArchiveDirForHelix=$(TargetDir); TestArchiveTestsDir=$(TestArchiveTestsDir); ExtractTestClassNamesForHelix=$(ExtractTestClassNamesForHelix); + DebuggerHost=$(DebuggerHost); DotNetForTests=$([MSBuild]::NormalizePath($(DotNetRoot), $(DotNetTool)))" /> 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 0000000000000000000000000000000000000000..9ad9b578f206494703a32adab2e27c7f88a2b28e --- /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 0000000000000000000000000000000000000000..9ad9b578f206494703a32adab2e27c7f88a2b28e --- /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")]