ClickOnce的 - 不能公布,因为一个项目未能建立 [英] ClickOnce - Cannot publish because a project failed to build

查看:149
本文介绍了ClickOnce的 - 不能公布,因为一个项目未能建立的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试发布我的(WPF,C#)应用程序,我得到这些错误:

无法发布,因为项目不合格打造

莫非找不到文件obj\x86\Debug\MyAPP.exe


我得到这些错误无论身在何处,从我出版:出版向导,建立菜单或项目上点击右键 - 发布

首先是工作不错,但我做了以下内容:

我改变了日期OM我的计算机到2013年10月10日,我尝试别的东西。
我忘了这一点,我单击生成。然后,我设置的计算机上正确的日期。从那以后,我得到这些错误。

也每次我点击运行Visual Studio时生成的项目是否有项目的变化。

我还注意到,当我设定的日期后2013年10月10日它工作正常。

我猜测我找我的项目的一些设置在那里修建了这座日期设置。

我试图打造,重建,清洁的解决方案。

When I try to publish my (WPF, C#) application, I get these errors:
Cannot publish because a project failed to build.
Could not find file 'obj\x86\Debug\MyAPP.exe'

I get these errors no matter where from I publish: publish wizard, build menu or right click on project - publish.
First it was working ok, but I did the following:
I changed the date om my computer to 10/10/2013, I was trying something else.
I forgot this and I click build. Then I set the proper date on computer. After that I get these errors.
Also every time I click run Visual Studio builds project whether there are changes in project.
I also noticed that when I set the date after 10/10/2013 it works ok.
I am guessing that I am looking for some settings in my project where this date of build is set.
I tried build, rebuild, clean solution.

推荐答案

我解决我的问题。问题是一些文件的修改时间的时间。我用程序的 时间戳 的解决它。

I solved my problem. The problem was the "Modified" time of some files. I used the program Timestamp to fix it.

我在质询时说,这个问题是我生成解决方案和日期是在未来。正因为如此,我每次按<大骨节病> F5 Visual Studio中再次打造整体解决方案和发布的ClickOnce不能正常工作。

As I said in my question, the problem was that I build the solution and the date was in the future. Because of that, every time I pressed F5 Visual Studio was building the whole solution again and Publish ClickOnce wasn't working.

这篇关于ClickOnce的 - 不能公布,因为一个项目未能建立的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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