【发布时间】:2011-12-08 09:48:59
【问题描述】:
我正在从使用 MSOffice 2003 在 VS2003 上运行的项目迁移到 VS2010 项目。 我的项目使用程序集“Microsoft.Office.Interop.Excel.dll” 但我收到以下错误。
2>ResolveAssemblyReferences:
2> No way to resolve conflict between "Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "Office, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null". Choosing "Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
2>InitializeBuildStatus:
2> Touching "Debug\ACCT.unsuccessfulbuild".
2>CustomBuild:
2> All outputs are up-to-date.
2>cl : Command line warning D9035: option 'clr:oldsyntax' has been deprecated and will be removed in a future release
2> stdafx.cpp
2>stdafx.cpp : fatal error C1107: could not find assembly 'Microsoft.Office.Interop.Excel.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable
2>
2>Build FAILED.
我确保已引用程序集“Microsoft.Office.Interop.Excel.dll”。
【问题讨论】:
标签: visual-studio-2010 ms-office visual-studio-2003 excel-interop