publish command not copying wwwroot files on first run
See original GitHub issueSteps to reproduce
- Clone project from github repo: https://github.com/ckuyehar/dotnet-mvc-bug
dotnet restore
dotnet publish
Expected behavior
The first time I run dotnet publish, I expected the assets folder to be copied to the published wwwroot folder.
Actual behavior
The first time I run dotnet publish, the published wwwroot folder (ie, bin\Debug\netcoreapp1.1\publish\wwwroot) is missing the assets folder .
After running dotnet publish for the first time, if you make changes to the file a.txt contained in the .\assets folder and run dotnet publish again the published wwwroot folder will always contain the latest changes made to the file a.txt.
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.3)
Product Information: Version: 1.0.3 Commit SHA-1 hash: 37224c9917
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\1.0.3
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
I was just informed that this was caused by my incorrect understanding of msbuild.
You may close.
Who still has similar issue try to read my comment