Areas/**/Views glob is not working in publishOptions/include in project.json
See original GitHub issueSteps to reproduce
Project structure:
Project root
|_ Areas
|_ Area1
| |_ Views
| |_ Index.cshtml
|_ Area2
|_ Views
|_ Index.cshtml
|_ wwwroot
|
...
project.json snippet:
"publishOptions": {
"include": [
"wwwroot",
"Views",
"Areas/**/Views",
"web.config"
]
}
Publish to IIS with Visual Studio 2015 with ASP.net Core RC2 and Web Deploy 3.6 (with server rc2 components installed).
Expected behavior
Areas/Area1/Views/Index.cshtml and Areas/Area2/Views/Index.cshtml should be published.
Actual behavior
No “Areas” folder is published.
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
I tested the glob pattern in python’s glob module and it produces the expected result:
[ 'Areas\Area1\Views', 'Areas\Area2\Views' ]
(with the working directory set to the xproj directory).
Am I missing something or is this a bug ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Areas/**/Views glob is not working in publishOptions ...
Publish to IIS with Visual Studio 2015 with ASP.net Core RC2 and Web Deploy 3.6 (with server rc2 components installed).
Read more >Project Configuration
json files are located in each project's folder. Nx merges the two files to get each project's configuration. The full machine readable schema...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Temporary fix as stated here is to add
Sure,
I just created a new blank ASP.Net project, added an area (see last commit), and then tried to build+publish. The area is missing in the outputs.
Then added the patch described above (
Areas/**/*.cshtml
) and the area views appeared in the publish outputs.Created a blank repository with it: artiomchi/WebApplicationAreaPublishTest