Automatically Include all Files in folder in Visual Studio
2023-09-11 14:14:17 时间
Automatically Include all Files in folder in Visual Studio
I’ve written before about how you have to make sure to include asset files into the project file if you want Azure to deploy them during a git deployment.
Thats pretty annoying, especially if you’re using external build tools to copy assets into the css
, images
or assets
folders – You have to remember to right click and Include in Project.
Wouldn’t it be nice if Visual Studio and (therefore) msbuild just recursively included and deployed a folder of files?
You have to hand edit the .csproj
file, but all you need to do is use a wildcard in the Include statement:
MyProject.Web.csproj <!-- double wildcards include all files and folders --> <Content Include="assets\**" /> <Content Include="images\**" /> <!-- You can also filter like you would at the command line --> <Content Include="css\*.min.css" />
相关文章
- 如何在Visual Studio 2017中使用C# 7+语法
- Visual Studio 调试 Dll 项目
- 在Visual Studio 中使用git——给Visual Studio安装 git插件(二)
- 安装 Visual Studio Web Tools 的奇怪问题
- How to run python interactive in current file's directory in Visual Studio Code? Python路径问题
- Do Visual Studio Database Project *.refactorlog Files Belong in Source Control?
- Using Spy++ in Visual Studio 2019
- SpecFlow used in visual studio
- Cannot open Visual Studio - throw error 'cannot run when setup is in progress'
- how to create an asp.net web api project in visual studio 2017
- How to: Specify the Web Server for Web Projects in Visual Studio
- 如何在Visual Studio 2017中使用C# 7+语法 构建NetCore应用框架之实战篇(二):BitAdminCore框架定位及架构 构建NetCore应用框架之实战篇系列 构建NetCore应用框架之实战篇(一):什么是框架,如何设计一个框架 NetCore入门篇:(十二)在IIS中部署Net Core程序
- Visual Studio App Center 中的 Bug 跟踪服务
- 关于Visual Studio "当前不会命中断点.还没有为该文档加载任何符号"的解决方法
- Visual Studio断点调试, 无法监视变量, 提示无法计算表达式
- 解析Visual C# 7.2中的private protected访问修饰符
- Visual Studio 2013中因SignalR的Browser Link引起的Javascript错误一则
- Visual Studio 2017创建XAML文件
- Xamarin 中Visual Studio创建项目提示错误
- 《数字图像处理与机器视觉——Visual C++与Matlab实现(第2版)》——2.5 图像的显示
- 《C++ AMP:用Visual C++加速大规模并行计算》——3.6 parallel_for_each
- Visual Studio Code插件推荐(React开发)
- g2o windows visual studio 2013/2017 编译安装(含Cholmod)
- Qtcreator for visual studio版本调试问题
- Visual Studio® 2010 Web Deployment Projects站点编译生成bin同时发表插件
- Project Perfect让Swift在server端跑起来-Perfect in Visual Studio Code (四)
- 如何将visual studio 2010编辑模式改为插入???
- Recommended add-ons/plugins for Microsoft Visual Studio [closed]
- Visual Studio中 sln 和 suo 文件
- 在win7上安装visual c++ 2008 redistributable 发生错误error 1935