MSBuild 中缺少 index.cshtml 视图 + TeamCity 构建
我有最奇怪的问题。我们的 MVC3 项目中有 Razor 视图。一切都很棒,直到 TeamCity 和 MSBuild 运行来收集工件。除 Index.cshtml 之外的所有 razor 视图都将放置在工件 zip 中。视图文件显然位于 buildAgent 工作目录中,并且已从 github 成功检索,但在收集工件时它只是被忽略,但同一文件夹中的 razor 视图没问题吗?
我们已经从源代码管理中删除了整个文件并进行了读取,但没有修复。
有人遇到类似的问题或提示要检查什么吗?预先感谢您的帮助。
I have the strangest problem. We have Razor views coming into our MVC3 project. Everything is fantastic until TeamCity and MSBuild run to gather an artifact. All razor views except for Index.cshtml will be placed in the artifact zip. The view file is clearly in the buildAgent work directory and was successfully retrieved from github but it simply is ignored when the artifact is gathered but razor views in the same folder are OK?
We have already removed the entire file from source control and readded but no fix.
Anyone encounter a similar problem or have a hint of what to check? Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您检查过视图的构建操作属性吗?确保将其设置为内容。
Have you checked build action property for the view? Make sure it is set to Content.