}
[Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/85354")]
public void BugRegression_60479_WithRazorClassLib()
{
string id = $"blz_razor_lib_top_{Path.GetRandomFileName()}";
.ExecuteWithCapturedOutput("new razorclasslib")
.EnsureSuccessful();
- AddItemsPropertiesToProject(wasmProjectFile, extraItems: UseWebcil ? @"
- <ProjectReference Include=""..\RazorClassLibrary\RazorClassLibrary.csproj"" />
- <BlazorWebAssemblyLazyLoad Include=""RazorClassLibrary.webcil"" />
- " : @"
- <ProjectReference Include=""..\RazorClassLibrary\RazorClassLibrary.csproj"" />
- <BlazorWebAssemblyLazyLoad Include=""RazorClassLibrary.dll"" />
+ string razorClassLibraryFileName = UseWebcil ? "RazorClassLibrary.webcil" : "RazorClassLibrary.dll";
+ AddItemsPropertiesToProject(wasmProjectFile, extraItems: @$"
+ <ProjectReference Include=""..\\RazorClassLibrary\\RazorClassLibrary.csproj"" />
+ <BlazorWebAssemblyLazyLoad Include=""{ razorClassLibraryFileName }"" />
");
_projectDir = wasmProjectDir;
throw new XunitException($"Could not find resources.lazyAssembly object in {bootJson}");
}
- Assert.Contains("RazorClassLibrary.webcil", lazyVal.EnumerateObject().Select(jp => jp.Name));
+ Assert.Contains(razorClassLibraryFileName, lazyVal.EnumerateObject().Select(jp => jp.Name));
}
[ConditionalTheory(typeof(BuildTestBase), nameof(IsUsingWorkloads))]