Skip to content

Commit 41e15c3

Browse files
Prevent VS warning for empty attribute (#16719)
1 parent 7816ef9 commit 41e15c3

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

src/Components/Blazor/Templates/src/content/BlazorWasm-CSharp/Client/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<div id="blazor-error-ui">
1717
An unhandled error has occurred.
18-
<a href class="reload">Reload</a>
18+
<a href="" class="reload">Reload</a>
1919
<a class="dismiss">🗙</a>
2020
</div>
2121
<script src="_framework/blazor.webassembly.js"></script>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/_Host.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@page "/"
22
@namespace BlazorServerWeb_CSharp.Pages
33
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4-
@{
4+
@{
55
Layout = null;
66
}
77

@@ -27,7 +27,7 @@
2727
<environment include="Development">
2828
An unhandled exception has occurred. See browser dev tools for details.
2929
</environment>
30-
<a href class="reload">Reload</a>
30+
<a href="" class="reload">Reload</a>
3131
<a class="dismiss">🗙</a>
3232
</div>
3333

src/ProjectTemplates/scripts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ tmp/
33
CustomHive/
44
angular/
55
blazorserver/
6+
blazorwasm/
67
mvc/
78
razor/
89
react/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env pwsh
2+
#requires -version 4
3+
4+
# This script packages, installs and creates a template to help with rapid iteration in the templating area.
5+
[CmdletBinding(PositionalBinding = $false)]
6+
param()
7+
8+
Set-StrictMode -Version 2
9+
$ErrorActionPreference = 'Stop'
10+
11+
. $PSScriptRoot\Test-Template.ps1
12+
13+
Test-Template "blazorwasm" "blazorwasm" "Microsoft.AspnetCore.Blazor.Templates.3.1.0-dev.nupkg" $false

0 commit comments

Comments
 (0)