المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Can't publish a project even though no build errors



C# Programming
05-07-2011, 08:20 AM
I have been using C# and Visual Studio for about 6 months now and it has worked fine. Recently, I don't know what I did, but when I try to publish a program now it doesn't work properly. I have no build errors, but when I click on publish under the menu (or in the project window), it says "Could not publish because a project failed to build."

I searched for this online and found it can sometimes be caused by DevExpress. So, I uninstalled DevExpress, and I still get the problem.

I thought I might have done something clumsy in code, so I started a completely new solution, a windows form, and clicked publish. I still get the problem.

One thing I noticed is when I click publish, a "(name of project)TemporaryKey.pfx" appears in the project window, at about the same time the error happens. Could that maybe have something to do with my problem? (I know very little about keys.) Any ideas? Thanks for any help.