Skip to content
代码片段 群组 项目
未验证 提交 3f2ea7d9 编辑于 作者: Cera Samson's avatar Cera Samson 提交者: GitHub
浏览文件

Update `dotnet new blazorwasm --exclude-launch-settings` to exclude launchSettings.json (#42379)

* Fix file path for launchSettings.json

* Add --hosted --exclude-launch-settings baseline test
上级 ff873a58
No related branches found
No related tags found
无相关合并请求
...@@ -293,6 +293,13 @@ ...@@ -293,6 +293,13 @@
"Client/Shared/NavMenu.NoGraphOrApi.razor", "Client/Shared/NavMenu.NoGraphOrApi.razor",
"Client/Shared/NavMenu.CallsMicrosoftGraph.razor" "Client/Shared/NavMenu.CallsMicrosoftGraph.razor"
] ]
},
{
"condition": "(ExcludeLaunchSettings)",
"exclude": [
"Client/Properties/launchSettings.json",
"Server/Properties/launchSettings.json"
]
} }
] ]
} }
......
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
{ {
"condition": "(ExcludeLaunchSettings)", "condition": "(ExcludeLaunchSettings)",
"exclude": [ "exclude": [
"Properties/launchSettings.json" "Client/Properties/launchSettings.json",
"Server/Properties/launchSettings.json"
] ]
}, },
{ {
......
...@@ -1821,6 +1821,23 @@ ...@@ -1821,6 +1821,23 @@
"MainLayout.razor", "MainLayout.razor",
"Program.cs" "Program.cs"
] ]
},
"ExcludeLaunchSettingsHosted": {
"Template": "blazorwasm-empty",
"Arguments": "new blazorwasm-empty --hosted --exclude-launch-settings",
"Files": [
"Client/_Imports.razor",
"Client/App.razor",
"Client/MainLayout.razor",
"Client/Program.cs",
"Client/Pages/Index.razor",
"Client/wwwroot/index.html",
"Client/wwwroot/css/app.css",
"Server/appsettings.Development.json",
"Server/appsettings.json",
"Server/Program.cs",
"Shared/SharedClass.cs"
]
} }
} }
} }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册