2012-01-07 76 views
1

我有一个Visual Studio 2007的项目,我成功地与2010年。它说,它成功地建立VS升级,但在项目的默认构建设置导致“打造成功”的消息,有2个警告,状态:如何在Visual Studio 2010中使用项目的默认构建设置?

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): 
warning MSB8012: TargetPath(C:\MaxSDK-5.1.7\examples\plussz\.\..\..\sdk-build\plussz.dll) 
does not match the Linker's OutputFile property value (C:\MaxSDK-5.1.7\sdk-build\plussz.mxe). This  may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(991,5): warning MSB8012: TargetExt(.dll) does not match the Linker's OutputFile property value (.mxe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 

并且文件从不出现。此外,它试图构建的文件具有扩展名.DLL,但它应该具有.mxo。

凡是允许我建立这个东西是一个很大的帮助,但我真正想要做的是输出到项目文件夹(其中源),而不是我的用户文件夹中。我假设这个项目有一些预先建立的设置。有没有什么方法可以使用这些,而不是全局变量visual studio使用?

回答

2

我听起来像项目转换并不是那么成功。 VS2007?真?

您应该可以通过更改项目属性来解决此问题。

在Visual Studio中,右键单击Solution Explorer中的项目并选择Properties
您可能想在配置下拉列表中选择All Configurations
单击配置属性部分中的General
集 “输出目录” 来:$(SolutionDir)$(配置)\
集 “中间目录” 来:$(配置)\
集 “目标扩展” 到:.mxo
在“接头 - > General“部分:
将”输出文件“设置为:$(OutDir)$(TargetName)$(TargetExt)

希望这会有所帮助。

+0

它实际工作正常,我只是没有看到它。感谢寿。 – jamesson 2012-01-08 02:14:01

相关问题