Skip to content

Commit 8a26a71

Browse files
committed
Hide empty error messages on hot reload and add workaround for .NET 10.0.101 hot reload bug affecting static content.
1 parent f8063d6 commit 8a26a71

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Spectre.Docs/Program.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,14 @@
111111
)
112112
}
113113
]};
114-
}
114+
},
115+
// .net 10.0.101 has a bug flash grey on all content change and not removing it.
116+
// this hides empty error messages on hot reload
117+
ExtraStyles = """
118+
#dotnet-compile-error:empty {
119+
display: none;
120+
}
121+
"""
115122
});
116123

117124
var app = builder.Build();
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.net 10 as of 10.0.101 has a bug thinking anything out
2+
of the wwwroot folder is a code change. this is a placeholder to keep
3+
this folder alive and allow some tomfoolery from MyLittleContentEngine
4+
to trick it to keep hot reload working for Markdown files and static content
5+
in the Content folder working.

0 commit comments

Comments
 (0)