在构建后任务中使用引用项目的TargetPath

时间:2013-05-20 19:39:02

标签: c# visual-studio-2010 projects-and-solutions post-build-event visual-studio-macros

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

$(var.OtherProject.TargetPath)

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

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

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

0 个答案:

没有答案