Visual Studio 项目 - 自动包含外部创建的文件? [英] Visual Studio Project - Automatically include externally created files?
问题描述
是否有一个很好的解决方案能够在 asp.net 应用程序项目中自动刷新/包含外部创建的文件?
Is there a nice solution to be able to automatically refresh/include externally created files in the asp.net application project?
大部分时间我都在 Sublime Text 2 编辑器中编写前端 javascript.在与团队的其他成员集成时,我必须手动确保我在外部创建的任何新文件都包含在 asp.net 项目中.
The majority of the time I'm programming front end javascript in Sublime Text 2 editor. When integrating with the rest of the team I have to manually make sure that any new files i've created externally are included in the asp.net project.
是否有自动选项可以刷新特定文件夹中的文件或其他内容?
Is there an automatic option to refresh the files in a particular folder or something?
谢谢
推荐答案
想通了!
在 proj 文件中,您可以编辑项目组包含的内容,而不仅仅是包含单个文件,您可以使用 glob 模式.比如
in the proj files you can edit the itemgroup includes so rather than just including individual files you can use glob patterns. such as
app\**\*.js
<ItemGroup>
<Content Include="app\**\*.js" />
<Content Include="scripts\jquery.js" />
</ItemGroup>
这篇关于Visual Studio 项目 - 自动包含外部创建的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!