4

使用 Visual Studio 2010,我需要让 C# 项目运行构建后事件并引用其他依赖项目构建的几个程序集的输出。在 WiX 项目中,我可以使用解决方案中其他引用项目的宏来获取类似的信息

$(var.OtherProject.TargetPath)

但是,当我尝试在 C# 项目的构建前或构建后任务中使用上述行时,构建时出现以下错误:

The expression """.OtherProject" cannot be evaluated. Method 'System.String.OtherProject' not found.

如何在我的解决方案中引用其他依赖项目的输出?

4

0 回答 0