找不到文件'bin \ DotNetOpenAuth.AspNet.xml'。 - 发布到Elastic Beanstalk时

时间:2013-12-05 12:26:35

标签: c# asp.net amazon-web-services elastic-beanstalk

我无法通过Visual Studio 2012将项目发布到Amazon Elastic Beanstalk。

发布时我得到以下输出:

Commencing deployment for project Test
...building deployment package obj\Debug\Package\Test.zip...
...package build 'CopyPipelineFiles': error in 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets' at (2660,5): Copying file bin\DotNetOpenAuth.AspNet.xml to obj\Debug\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.xml failed. Could not find file 'bin\DotNetOpenAuth.AspNet.xml'.
...build of project archive failed, abandoning deployment
Commencing deployment for project Test
...building deployment package obj\Debug\Package\Archive...
...package build 'CopyPipelineFiles': error in 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets' at (2660,5): Copying file bin\DotNetOpenAuth.AspNet.xml to obj\Debug\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.xml failed. Could not find file 'bin\DotNetOpenAuth.AspNet.xml'.
...build of project archive failed, abandoning deployment

我删除了`DotNetOpenAuth.AspNet.xml',它是来自nuget的主要核心文件,但我想它是从某个地方引用但我不知道在哪里。我在哪里可以找到这个参考并删除它,所以publis工作。感谢。

1 个答案:

答案 0 :(得分:1)

尝试手动清除bin文件夹,然后重建项目。