Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 9646db0

Browse files
rynowakSridhar-MS
authored andcommitted
Update cshtml wildcard in publishOptions
Updating the publishOptions wildcard that used to publish everything in the views folder to now publish all .cshtml files. The problem was that the old wildcard only included the Views folder and didn't include anything in the Areas/*/Views folders (used by views inside areas). This change makes things much simpler, all .csthml files are published.
1 parent 5d8aede commit 9646db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet/commands/dotnet-new/CSharp_Web/project.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"publishOptions": {
9595
"include": [
9696
"wwwroot",
97-
"Views",
97+
"**/*.cshtml",
9898
"appsettings.json",
9999
"web.config"
100100
]

0 commit comments

Comments
 (0)