从 msbuild 输出跟踪工作流编译错误源

发布于 2024-07-24 01:01:54 字数 363 浏览 5 评论 0原文

当在未安装 VS 的计算机上构建解决方案并出现工作流编译错误时,我想追踪错误的来源,但 msbuild 输出不是很有帮助:

C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets(80,3): 错误:找不到类型或命名空间名称“Foo”(您是否缺少使用指令还是程序集引用?)

即使具有详细的诊断级别,也与文件和行无关。 但是 VS 设法找到文件和行号。 我不想在我们正在构建的机器上安装 VS。 有没有办法告诉工作流编译器报告源文件名和行号 编译错误?

谢谢!

When building a solution on a machine without VS installed, and getting workflow compilation errors I would like to track down the source of the errors, but the msbuild output is not very helpful:

C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets(80,3): error : The type or namespace name 'Foo' could not be found (are you missing a using directive or an assembly reference?)

An nothing about the file and line even with diagnostic level of verbosity.
However VS manages to find the file and line number.
I don't want to install VS on the machine we're doing builds on.
Is there a way to tell the workflow compiler to report source file names and line numbers for
compilation errors?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平安喜乐 2024-07-31 01:01:54

您是否可以在使用 Visual Studio 成功构建的计算机上使用 MSBuild 在命令行上构建它,或者也在那里失败?

Sayed Ibrahim Hashimi

我的书:Microsoft 构建引擎内部:使用 MSBuild 和 Team Foundation Build

Can you build it on the command line using MSBuild on a machine in which it builds successfully using Visual Studio, or does it fail there as well?

Sayed Ibrahim Hashimi

My Book: Inside the Microsoft Build Engine : Using MSBuild and Team Foundation Build

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文