locked
vs 2019 not publishing all my folders RRS feed

  • Question

  • User-1767698477 posted

    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?

    Thursday, July 23, 2020 5:44 AM

Answers

  • User1535942433 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 24, 2020 9:36 AM

All replies

  • User753101303 posted

    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").

    Thursday, July 23, 2020 9:48 AM
  • User1535942433 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 24, 2020 9:36 AM