I am developing a click once aplication. I need to开发者_运维知识库 pass some values in the url to the application.
I referred this article Retrieve Query String from Click Once to pass and retrieve the query string values.
How can I pass and debug these query string values in Visual Studio 2008?
Any help much appreciated!
Thanks.
For passing parameters, Go to Project Properties|Publish|Options. Enable "Allow URL parameters to be passed...." there. For including parameters, use Mage to change the deployment provider URL once you publish the manifests.
Once the above is done, publish the files on a Test URL using "Debug" build configuration. Once you install the application from there, start it and attach .NET debugger to that process. That way you can debug your deployment
-- Devvrat
This article: http://robindotnet.wordpress.com/2010/03/21/how-to-pass-arguments-to-an-offline-clickonce-application/ shows how to create a query string of arguments and pass it to a ClickOnce app, and how to parse those arguments in your application. This actually shows how to pass them to an online/offline app, but it's the same principle for both.
精彩评论