的Visual Studio 2012的Web发布不复制文件 [英] Visual Studio 2012 Web Publish doesn't copy files

查看:130
本文介绍了的Visual Studio 2012的Web发布不复制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2012 Web应用程序项目,当我使用Web发布工具,它成功地建立,但(在这种情况下,文件系统)不会复制到发布目标的任何文件。

I have a Web Application project in VS 2012 and when I use the web publishing tool it builds successfully but doesn't copy any files to the publish target (File System in this case).

如果我看着生成输出,我可以看到一切都被复制到正确的OBJ \\发布\\包\\ PackageTmp \\但后来我都在生成输出中看到是这样的:

If I look at the build output I can see everything gets copied over to obj\Release\Package\PackageTmp\ correctly but then all I see in the build output is this:

4>完成建设项目(项目)的.csproj。结果
  4>删除现有的文件...结果
  4>发布文件夹/ ...结果
  4> ==========生成:3分得手,0失败,1高达最新,0已跳过==========结果
  ==========发布:1成功,0失败,0已跳过==========

4>Done building project "{Project}.csproj".
4>Deleting existing files...
4>Publishing folder /...
4> ========== Build: 3 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

虽然它说,发布成功有没有在目标目录中的文件的发布。

Even though it says the publish succeeded there are not files in the target directory for the publish.

我已经在多个项目中看到了这一点,有时好像解决方案/平台配置导致这个问题,但我一直无法查明确切的原因这一点。

I have seen this in multiple projects and sometimes it seems like the Solution/Platform configurations cause this problem but I haven't been able to pinpoint an exact cause for this.

有其他人看到这种情况发生,或对如何了解这正常工作?

Has anyone else seen this happening or have an idea on how to get this working correctly?

更新:

我可能已经找到了一种解决方法。我只是有这事情再发生,我与发布设置乱搞。有一次,我改变了设置选项卡上选择的配置远到另一个配置,然后回一个我想用我的所有文件又开始发布。希望这部作品在未来其他项目。

I may have found a workaround for this. I just had this happen again and I was messing around with the publish settings. Once I changed the selected Configuration on the Settings tab away to another configuration and then back to the one I wanted to use all my files started publishing again. Hopefully this works on other projects in the future.

更新2:

我张贴在微软连接错误并听取对VS Web开发团队的开发人员回来。他说,他们有固定的这个问题,在其内部建立并发布一个更新发布工具很快会解决这个问题。

I posted a bug on Microsoft Connect and heard back from a developer on the VS Web Developer team. He said they have fixed this issue in their internal builds and will releasing an update to the publish tool soon that will fix this problem.

更新3:

这最近已固定的Visual Studio 2012更新2

This has been recently fixed with Visual Studio 2012 Update 2

推荐答案

这可能的解决方案/那个用vs2012的RC创建的项目引起的。这发生在我身上个月前通过确保我的解决方案构建配置符合我的项目配置固定的问题...

This may be caused by solutions/projects that were created with the RC of vs2012. This happened to me months ago and fixed the problem by making sure my solution build configurations matched my project configurations...

我刚刚开放最初在vs2012RC创造了VS2012防爆preSS的Web相同的解决方案,当最近经历了同样的问题。我确实做到了原来的海报建议什么,它解决了我的问题。

I just recently experienced the same problem when opening the same solution originally created in vs2012RC with VS2012 Express for Web. I did exactly what the original poster suggested and it fixed my problem.

下面是导致我的回答螺纹:

Here is the thread that lead me to the answer:

<一个href=\"http://connect.microsoft.com/VisualStudio/feedback/details/746321/publish-web-application-fails\">connect.microsoft.com/VisualStudio/feedback/details/746321/publish-web-application-fails

从上面对话中的相关回应帮助我是:

The pertinent response from the conversation above that helped me was:

发布Microsoft在2012/6/13下午12:00嗨安德鲁,

Posted by Microsoft on 6/13/2012 at 12:00 PM Hi Andrew,

这是我们如何处理解决方案配置主场迎战错误
  项目配置。我们错误地假设,他们将成为
  相同(例如解决方案的发布| 86将每个项目设置为
  发布| 86为好),这引起了我们使用了错误的构建
  发布文件的属性。

This was a bug in how we handle the solution configuration vs. the project configuration. We incorrectly assumed that they would be the same (e.g. Solution's Release|x86 would have each project set to Release|x86 as well), which caused us to use the wrong build properties for publishing files.

解决方法是使解决方案配置和构建
  配置相匹配。这个问题将固定在下一版本的
  的Visual Studio 2012。

The workaround is to make the solution configuration and build configuration match. This issue will be fixed in the next release of Visual Studio 2012.

谢谢,
  吉米 - 刘易斯SDET,Visual Web开发人员团队

Thanks, - Jimmy Lewis SDET, Visual Web Developer team

这篇关于的Visual Studio 2012的Web发布不复制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆