Why doesn't vs2019 publish all the folders and their contents? I see if I right click on one of the unpublished folder I can publish the folder. My question, why isn't the folder published automatically with the rest of the site when I go to publish the
site to a folder on my computer? Why do I have to manually right click and do this?
As far as I think,you could click F4 and to check the properties and set it:
1.Build Action : this should be Content
2.Copy to Output Directory: this should be like the other file are configured
Best regards,
Yijing Sun
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
247 Points
1310 Posts
vs 2019 not publishing all my folders
Jul 23, 2020 05:44 AM|sking|LINK
Why doesn't vs2019 publish all the folders and their contents? I see if I right click on one of the unpublished folder I can publish the folder. My question, why isn't the folder published automatically with the rest of the site when I go to publish the site to a folder on my computer? Why do I have to manually right click and do this?
California Mortgage | California refinance
All-Star
48570 Points
18081 Posts
Re: vs 2019 not publishing all my folders
Jul 23, 2020 09:48 AM|PatriceSc|LINK
Hi,
Some more context could help.
My first guess would be that https://docs.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2019 is not set properly for files found in those folders (for example being "None" rather than "Content").
Contributor
3730 Points
1431 Posts
Re: vs 2019 not publishing all my folders
Jul 24, 2020 09:36 AM|yij sun|LINK
Hi sking,
As far as I think,you could click F4 and to check the properties and set it:
1.Build Action : this should be Content
2.Copy to Output Directory: this should be like the other file are configured
Best regards,
Yijing Sun