Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to generate ClickOnce manifests with MSBuild off a folder with prebuilt WinFroms app
 

How to generate ClickOnce manifests with MSBuild off a folder with prebuilt WinFroms app

I am trying to automate my ClickOnce builds with MSBuild. My application is already prebuilt. All I need to do is to create deployment and application manifests with MSBuild to get ready for deployment.

I am using GenerateApplicationManifest and GenerateDeploymentManifest tasks in MSBuild, but my GenerateApplicationManifest has wrong relative file paths to application files.

Could anyone help me out with this? A link to an article, an example of a script would be really appreciated!

Thanks!
Murzilka  Thursday, May 07, 2009 8:09 AM
Hi Murzilka,

Please read the following MSDN documents for examplesof usingthe GenerateApplicationMaifest and GenerateDeploymentManifest tasks of MSBuild:

"GenerateApplicationManifest Task"
http://msdn.microsoft.com/en-us/library/6wc2ccdc.aspx

"GenerateDeploymentManifest Task"
http://msdn.microsoft.com/en-us/library/3k2t34e7(VS.80).aspx

Hope this helps.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Friday, May 08, 2009 8:06 AM

Here is a blog entry that may be of service: How To: Publish Files Which are not in the Project. You will probably need to do a little experimentation to get it just right for your scenario. I think you have to set the TargetPath metadata property on your items for the manifest generation tasks. The AssignTargetPath task (which is not officially supported) will be useful. You can probably figure out the interface for it by looking at the class definition.


-- Mike
Mike Wade - MSFT  Thursday, May 07, 2009 10:28 PM
Hi Murzilka,

Please read the following MSDN documents for examplesof usingthe GenerateApplicationMaifest and GenerateDeploymentManifest tasks of MSBuild:

"GenerateApplicationManifest Task"
http://msdn.microsoft.com/en-us/library/6wc2ccdc.aspx

"GenerateDeploymentManifest Task"
http://msdn.microsoft.com/en-us/library/3k2t34e7(VS.80).aspx

Hope this helps.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Friday, May 08, 2009 8:06 AM
I read the provided documentation on GenerateApplicationManifest. When I provide a list of satellite assemblies to be included with the application, the task tries to put them all into root folder as opposed to putting them into something like 'de-DE'. So, it seems like there is an issue with specifying relative paths on certain items.
Cammius  Friday, May 08, 2009 8:42 PM

You can use google to search for other answers

Custom Search

More Threads

• Well, I install it, so where is it
• How to build MSI that can rollback the application to previous version?
• Connection string problem
• signing test cat files on xp64
• RemovePreviousVersions: Installs before it uninstalls??
• MSI execution throgh command line
• Installing the new application version using ClickOnce without prompting the user to accept
• Windows Installer setup for Windows 2000 installation prerequisite error
• How to add custom pre-requisites to ClickOnce ?
• New SP1 .Net Framework Client Profile loads every time via the bootstrapper.