Skip to content

Commit c9fa5f3

Browse files
authored
Remove duplicate .sln from Blazor Web Template WebAssembly and Auto (#51494)
# Remove duplicate .sln from Blazor Web Template WebAssembly and Auto ## Description When creating a Blazor web template (interactivity WebAssembly or Auto selected) not with cli but in VisualStudio there is duplicate .sln file. This PR fixes that by removing the duplicate .sln Fixes https://github.com/dotnet/AspNetCore-ManualTests/issues/2435 ## Customer Impact Customers, who will create Blazor Web project template with WebAssembly or Auto interactivity option selected, will get a duplicate SLN file created. ## Regression? - [ ] Yes - [x] No ## Risk - [ ] High - [ ] Medium - [x] Low The fix is scoped to the logic specific to inclusion of .sln files in the template, and has been manually verified both with VS and CLI. ## Verification - [x] Manual (required) - [ ] Automated ## Packaging changes reviewed? - [ ] Yes - [ ] No - [x] N/A ---- ## When servicing release/2.1 - [ ] Make necessary changes in eng/PatchConfig.props
1 parent 2750ee7 commit c9fa5f3

File tree

2 files changed

+7
-1
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp

2 files changed

+7
-1
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/.template.config/template.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@
110110
"BlazorWeb-CSharp.Client/wwwroot/**"
111111
]
112112
},
113+
{
114+
"condition": "(UseWebAssembly && HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
115+
"exclude": [
116+
"*.sln"
117+
]
118+
},
113119
{
114120
"condition": "(!IndividualLocalAuth)",
115121
"exclude": [

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Weather.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@page "/weather"
22
@*#if (!InteractiveAtRoot) -->
3-
@attribute [StreamRendering(true)]
3+
@attribute [StreamRendering]
44
##endif*@
55

66
<PageTitle>Weather</PageTitle>

0 commit comments

Comments
 (0)