【发布时间】:2010-04-24 16:39:57
【问题描述】:
我们有一个包含两个项目的解决方案,其中一个是嵌入在另一个 ASP.NET MVC 项目中的 Silverlight 3 应用程序。就在最近开始出现一个错误,导致构建失败。这是输出:
`----- 构建开始:项目:DotCoquiMap,配置:调试任何 CPU ------ C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Ria.Client.targets:警告:找不到必要的输入文件 'C:\Users\Michael\Documents\DotCoqui\trunk\DotCoquiMap\Bin\调试\DotCoquiMap.dll'。 完成构建项目“DotCoquiMap.csproj”——失败。 ------ 构建开始:项目:DotCoquiProject,配置:调试任何 CPU ------ C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\Users\Michael\ Documents\DotCoqui\trunk\DotCoquiMap\Bin\Debug\DotCoquiMap.dll /reference:..\ExternalLibraries\itextsharp.dll /reference:..\ExternalLibraries\MvcMembership.dll /reference:..\ExternalLibraries\PagedList.dll /reference :C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference :"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Linq.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framewor k\v2.0.50727\System.EnterpriseServices.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Abstractions.dll" /reference:..\..\. .\..\..\..\Windows\assembly\GAC_MSIL\System.Web.DataVisualization\3.5.0.0__31bf3856ad364e35\System.Web.DataVisualization.dll /reference:C:\Windows\Microsoft.NET\Framework\v2 .0.50727\System.Web.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Extensions.dll" /reference:C:\Windows\Microsoft.NET\Framework \v2.0.50727\System.Web.Mobile.dll /reference:"C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\System.Web.Mvc.dll" /reference:"C:\ Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Routing.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference: C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /调试+ /调试:完整 /optimize- /out:obj\Debug\DotCoquiProject.dll /target:library Controllers\AccountController.cs Controllers\AdministrationController.cs Controllers\ApiController.cs Controllers\CampaignsCategoriesController.cs Controllers\CampaignsController.cs Controllers\CampaignsFormViewModel.cs Controllers\ CampaignStatisticsController.cs Controllers\CampaignStatisticsDetailsViewModel.cs Controllers\ControllerHelpers.cs Controllers\CountriesController.cs Controllers\ErrorController.cs Controllers\HomeController.cs Controllers\MapController.cs Controllers\MediaController.cs Controllers\MediaViewModel.cs Controllers\NewsController.cs Controllers\ OrganizationsController.cs Controllers\OrgCenterController.cs Controllers\UserAdministrationController.cs Default.aspx.cs Global.asax.cs Models\Campaigns.cs Models\CategoriesRuleValidation.cs Models\DotCoquiDBModel.designer.cs Models\DotCoquiRepository.cs Models\DQcodes.cs模型\FileRepository.cs 模型\ISmtpClient.cs 模型\JsonModels.cs 模型\OrgCenter \IndexViewModel.cs 模型\SmtpClientProxy.cs 模型\Statistic.cs 模型\User.cs 模型\UserAdministration\DetailsViewModel.cs 模型\UserAdministration\IndexViewModel.cs 模型\UserAdministration\RoleViewModel.cs 属性\AssemblyInfo.cs 错误 CS0006:找不到元数据文件“C:\Users\Michael\Documents\DotCoqui\trunk\DotCoquiMap\Bin\Debug\DotCoquiMap.dll” 编译完成 -- 1 个错误,0 个警告 ==========构建:0成功或最新,2失败,0跳过==========` 这是错误/警告: 警告 2 找不到必要的输入文件“C:\Users\Michael\Documents\DotCoqui\trunk\DotCoquiMap\Bin\Debug\DotCoquiMap.dll”。点CoquiMap 错误 1 元数据文件 'C:\Users\Michael\Documents\DotCoqui\trunk\DotCoquiMap\Bin\Debug\DotCoquiMap.dll' 找不到 DotCoquiProjectDotCoquiMap 未构建,因此 DotCoquiProject (ASP.NET MVC) 无法找到 .dll。
现在很奇怪的是,在 Windows XP 下,同样的代码可以完美地编译和运行....在 Windows 7 下,它给了我们这些错误。这是完全相同的代码,我们已经在 3 台不同的 Win7 机器上对其进行了测试,但均无济于事。
帮助将非常有帮助。提前致谢。
【问题讨论】:
-
我的眼睛在流血。请问代码格式漂亮吗?
-
我是 stackoverflow 的新手,如何才能“漂亮”?
-
欢迎来到 SO。如果文本是代码,选择它并按 ctrl-k。如果文本是文本,那么用 将其包围
标签: asp.net asp.net-mvc silverlight visual-studio-2008