参考Nmake项目 [英] ProjectReference to Nmake project
问题描述
我们当前正在从VS2008升级到VS2010.我们所有的解决方案都有一个NMake项目,该项目复制了我们的外部组件.我们在构建顺序方面遇到了问题.
We are currently upgrading from VS2008 to VS2010. All our solutions have an NMake project that copies our externals. We have run into problems with build order.
在这里描述:
http://blogs.msdn.com/b/msbuild/archive/2010/12/21/incorrect-solution-build-ordering-when-using-msbuild-exe.aspx
http://blogs.msdn.com/b/msbuild/archive/2010/12/21/incorrect-solution-build-ordering-when-using-msbuild-exe.aspx
,这里有些相关(C ++)
and somewhat related here (C++)
http://blogs.msdn.com/b/vcblog/archive/2010/03/02/visual-studio-2010-c-project-upgrade-guide.aspx
1) 解决方案对项目的依赖关系到项目参考
http://blogs.msdn.com/b/vcblog/archive/2010/03/02/visual-studio-2010-c-project-upgrade-guide.aspx
1) Solution Dependencies into Project to project reference
当我尝试将C#项目中的项目引用添加到MakeFile项目中时,出现错误消息无法添加对'ProjA'的引用.
When I try to add a project referece in a C# project to our MakeFile project I get an error message "A reference to 'ProjA' could not be added.
如果我按照第一篇文章中的说明添加它,则解决了MSBuild的构建顺序问题,但是我在项目参考上得到了黄色的感叹号图标,并发出了构建警告.
If I add it as described in first article build order problem for MSBuild is solved but I get yellow exclamation mark icon on my project reference and build warning.
"警告 1 无法引用项目"ProjA".程序集必须具有'dll'或'exe'扩展名才能被引用."
"Warning 1 The project 'ProjA' cannot be referenced. An assembly must have a 'dll' or 'exe' extension in order to be referenced."
有没有办法解决这个问题?
Is there a way around this?
BR Ulf
推荐答案
将dll复制到bin文件夹.那就是我们所做的.
Copy the dll to the bin folder. That was what we did.
chanmm
这篇关于参考Nmake项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!