Add File as a Link on Visual Studio - Debug vs Publish

后端 未结 3 1499
伪装坚强ぢ
伪装坚强ぢ 2020-12-15 15:14

Every time I have to link a file into an ASP.NET project as link, there is always something I forget to do, because Visual Studio is way too buggy and annoying with these. T

3条回答
  •  臣服心动
    2020-12-15 15:49

    If the goal is to include content folders (e.g. scripts, images), then you should not manage the individual files. Instead, include these folders in your build and publish files.

    When files need to be added/removed, simply update them in the content folder. This is essentially how we handle Help files since they are not managed by the developers.

    Check out these links:

    Is there a way to automatically include content files into asp.net project file?

    ASP.NET Web Deployment using Visual Studio: Deploying Extra Files

提交回复
热议问题