Reputation: 33
As a company we have recently upgraded all our development machines from Win7 VS 2010 to Win 8 with VS 2012. I've now hit a wall when trying to publish one of our existing c# console applications. When trying to publish it just errors saying
the publish components are not available. You need to reinstall Visual Studio to publish your application.
Reinstalls and Repairs do no fix this issue and it is the same on multiple machines. Has anyone else had this problem or found a solution to it? Really don't want to have to put VS2010 on our machines as well purely to publish one app.
Thanks.
Upvotes: 2
Views: 803
Reputation: 169
I was able to recover the "publish" feature this way:
Using Visual Studio, unload the project and edit the project file. Search for "OfficeVersion". Change OfficeVersion from "16.0" to "15.0". Save and reload the project file.
I found the answer at: https://connect.microsoft.com/VisualStudio/feedback/details/2132333/publish-components-are-not-available
Upvotes: 3
Reputation: 13
I know this is an old thread, but this happened to me today after a failed update to Windows 10 (not sure if that's the cause or bad timing).
It was caused by a corrupt machine.config file :
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
I replaced it by the contents of machine.config.default to fix the issue.
Upvotes: 0
Reputation: 433
Did you install service pack 4 for VS2012 ? If not, try install it. May be it can help service pack 4 for VS2012
Upvotes: 1