c# - 在 .csproj 文件中,<None Include ="..."> 的作用是什么?

标签 c# csproj

怎么样

<None Include="C:\foo.bar" />

不同于

<Content Include="C:\foo.bar" />

?

最佳答案

关于 build action 的 MSDN 文章属性解释了差异。

None - The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.

Content - The file is not compiled, but is included in the Content output group. For example, this setting is the default value for an .htm or other kind of Web file.

关于c# - 在 .csproj 文件中,<None Include ="..."> 的作用是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1060870/

相关文章:

visual-studio-2019 - 当出现错误时,EnforceCodeStyleInBuild true 不会使构建失败

c# - FtpWebRequest 返回 "The remote server returned an error: (530) Not logged in"

c# - SQL Server 表中的并行插入/更新

c# - Nhibernate 标准 : Use of Expression. in()

c# - 如何为所有目标框架发布

visual-studio-2010 - Visual Studio 2010 教授 : Solution Explorer not showing files from Import . 目标

c# - PowerShell 脚本表达式或语句中出现错误 "Unexpected token ' h'。字符串缺少终止符 :"

c# - 播放任何声音文件(或至少播放普通音频文件)

visual-studio-2012 - 为什么在项目文件中缺少 <SccProjectName> 导致 "The project file is not bound to source control"

regex - 如何使用正则表达式分解 .csproj 文件中嵌入的 xcopy 语句?