Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Accessing the published version
 

Accessing the published version

I have created a MSProject 2007 office add-in that I publish by right-click on the project name in the solution explorer. I am using beta 2 of Visual Studio 2008 (C#). Also, I notice in project properties a field named Publish Version that is incremented each time I re-publish the solution. Is there anyway for me to obtain this value while running the add-in? I realize the Publish Version is not the same as the assembly fileversion which I can obtain through reflection.
M.D.A  Monday, November 26, 2007 11:09 PM

Take a look at System.Deployment.ApplicationDeployment

I know that works with Click-Once deployments, but not sure in your case.

JR

Jim Ross  Tuesday, November 27, 2007 6:01 AM

Take a look at System.Deployment.ApplicationDeployment

I know that works with Click-Once deployments, but not sure in your case.

JR

Jim Ross  Tuesday, November 27, 2007 6:01 AM
I did try that approach and it did not pan out. How do I know if I am using Click-Once deployment and if what I am doing is not Click-Once what do they call it (it seems a very easy deployment to just run the Publish wizard so I guess I assumed that is what is meant by Click-Once).

Thanks for your reply.

Mike
M.D.A  Tuesday, November 27, 2007 4:24 PM
I thought I would come back to this and report that the issue was related to where the Add-In is running from. If running from the development machine the published version is not available but happily on client machines the information provided in the link by Jim Ross is accurate.
M.D.A  Wednesday, February 06, 2008 3:03 PM

You can use google to search for other answers

Custom Search

More Threads

• Unable to install or run the application - System.Web.Abstractions required?
• Registry Keys are removed during uninstall
• Updater Application Block
• Code Signing
• VS2005 Deployment installs files in drive root and not programfiles
• Publisher certificate not recognised when installed
• Exclude directories from a Project Output
• Setup and Deployment Issue
• MSI and ClickOnce together
• How can i do a auto increment for version Number