问题是发布应用程序 [英] Problem is publishing the application

查看:96
本文介绍了问题是发布应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个非常奇怪的问题.我正在开发WPF应用程序,而我面临的问题是当我尝试发布该应用程序时,它只是说
由于项目构建失败而无法发布."但我可以编译该项目而不会出错.
另一件事是,如果我从VS2010运行该应用程序,则它运行良好,但如果我转到bin/Debug目录,然后从那里运行它,则会为我提供该软件的旧版本.

我正在使用VS2010和Framework 4.0.你们有谁遇到过这种问题.感谢所有帮助/建议

I am having a really strange problem. I am developing a WPF Application and the problem i am facing is when i try to publish the application it''s just says
"Cannot publish because a project failed to build." but i can compile the project without error.
Another thing is if i run the application from VS2010 then it runs fine but if i go to the bin/Debug dir and run it from there it gives me a old version of the software.

i am using VS2010 and framework 4.0. Have any of you guys had this kind of problem. Any help/suggestion is appreciated

推荐答案

我看到它是网络上的一个非常普遍的问题.他们中的大多数人都可以按照以下说明进行修复:由于项目构建失败而无法发布 [由于项目建立失败而无法发布" [ ^ ]
I see it being a quite common issue on web. Most of them fix it following this: Cannot publish because a project failed to build[^]

It suggests some issue with add-in in VS2010, based on which you need to use the right-click option for publishing, and not the project page option.


Other common solution is around signing of the project. Details here: "Cannot publish because a project failed to build" in MS VS2010[^]


您已从其他计算机上导入了代码以及应用程序dll.浏览到解决方案文件夹,然后从所有类库和应用程序中删除"obj"文件夹,然后再次构建解决方案.它将100%起作用,
You have imported the code from some other machine along with the application dlls . Browse to the solution folder and delete the ''obj'' folders from all the class libraries and applications and build the solution once again. It will work 100%,


这篇关于问题是发布应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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