Can't publish a project even though no build errors
-
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.
-
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.
Just an idea. Maybe the key is automatically generated on the first publish. If that is the case, it may have an expiration date, say, one year after the initial build. If it is expired, perhaps that is what is causing the build to fail. Maybe try generating a new one? Though, the fact that you had the same problem when creating a new project suggests that the problem is something else. I imagine you'd get a new temporary key when building a new project (assuming it is in a new solution).
[
S<T>::f(U) // Out of line.
](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)