Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eng/tools/GenerateFiles/Directory.Build.props.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<PropertyGroup>
<DefaultNetCoreTargetFramework>${DefaultNetCoreTargetFramework}</DefaultNetCoreTargetFramework>
<UseMonoRuntime>false</UseMonoRuntime>
<ArtifactsShippingPackagesDir>${ArtifactsShippingPackagesDir}</ArtifactsShippingPackagesDir>
<TreatWarningsAsErrors Condition="'$(BuildingInsideVisualStudio)' != 'true'">true</TreatWarningsAsErrors>
<LibNetHostAppPackVersion Condition=" '$(LibNetHostAppPackVersion)' == '' ">${LibNetHostAppPackVersion}</LibNetHostAppPackVersion>
Expand Down
4 changes: 3 additions & 1 deletion src/ProjectTemplates/Shared/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ private static IDictionary<string, string> AddBootstrapSdkEnvironmentVariables(I
environmentVariables ??= new Dictionary<string, string>();

// The Helix payload places Directory.Build.props outside the generated projects' parent
// directory hierarchy, so pass the bootstrap SDK pruning workarounds to child processes.
// directory hierarchy, so pass runtime selection and bootstrap SDK pruning workarounds to child processes.
environmentVariables["UseMonoRuntime"] = "false";
environmentVariables["LoadPrunePackageDataFromNearestFramework"] = "true";
environmentVariables["AllowMissingPrunePackageData"] = "true";

Expand Down Expand Up @@ -598,6 +599,7 @@ internal async Task RunDotNetNewRawAsync(string arguments)
arguments +
$" --debug:disable-sdk-templates --debug:custom-hive \"{TemplatePackageInstaller.CustomHivePath}\"" +
$" -o {TemplateOutputDir}",
envVars: AddBootstrapSdkEnvironmentVariables(null),
envVarToRemove: _msBuildSdksPathEnvironmentVariable);
await result.Exited;
Assert.True(result.ExitCode == 0, result.GetFormattedOutput());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<SharedFrameworkLayoutRoot>${SharedFrameworkLayoutRoot}</SharedFrameworkLayoutRoot>

<!--
Because some template projects require Microsoft.NETCore.App.Runtime.Mono.browser-wasm, we need to allow
Because some template projects require Microsoft.NETCore.App.Runtime.browser-wasm, we need to allow
the download of additional targeting and runtime packs.
-->
<TestRequiresTargetingPackDownload>true</TestRequiresTargetingPackDownload>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected override async Task InitializeCoreAsync(TestContext context)
}
}

[Theory]
[Theory(Skip = "CoreCLR getAssemblyExports throws for assemblies without JS exports. Re-enable when the runtime issue is fixed.")]
Comment thread
akoeplinger marked this conversation as resolved.
Resolved
[InlineData(BrowserKind.Chromium)]
public async Task WebWorkerTemplate_CanInvokeMethods(BrowserKind browserKind)
{
Expand All @@ -55,7 +55,7 @@ public async Task WebWorkerTemplate_CanInvokeMethods(BrowserKind browserKind)
await TestWebWorkerInteraction(browserKind, aspNetProcess.ListeningUri.AbsoluteUri + "webworker-test");
}

[Theory]
[Theory(Skip = "CoreCLR getAssemblyExports throws for assemblies without JS exports. Re-enable when the runtime issue is fixed.")]
[InlineData(BrowserKind.Chromium)]
public async Task WebWorkerTemplate_HandlesErrors(BrowserKind browserKind)
{
Expand All @@ -70,7 +70,7 @@ public async Task WebWorkerTemplate_HandlesErrors(BrowserKind browserKind)
await TestWebWorkerErrorHandling(browserKind, aspNetProcess.ListeningUri.AbsoluteUri + "webworker-test");
}

[Theory]
[Theory(Skip = "CoreCLR getAssemblyExports throws for assemblies without JS exports. Re-enable when the runtime issue is fixed.")]
[InlineData(BrowserKind.Chromium)]
public async Task WebWorkerTemplate_CanDisposeWorker(BrowserKind browserKind)
{
Expand All @@ -85,7 +85,7 @@ public async Task WebWorkerTemplate_CanDisposeWorker(BrowserKind browserKind)
await TestWebWorkerDisposal(browserKind, aspNetProcess.ListeningUri.AbsoluteUri + "webworker-test");
}

[Theory]
[Theory(Skip = "CoreCLR getAssemblyExports throws for assemblies without JS exports. Re-enable when the runtime issue is fixed.")]
[InlineData(BrowserKind.Chromium)]
public async Task WebWorkerTemplate_CanInvokeMethodsAfterPublish(BrowserKind browserKind)
{
Expand Down
Loading