No System.Deployment.Application available
-
2012年4月6日 11:52
I'm trying to get the Publish version like given in:
Apparently I can't access System.Deployment.Application, only System.Deployment.Internal.....
Has anyone an idea how's that possible?
BTW I'm using VB2010 Xpress.
Pete Bux
- 已编辑 Pete Bux 2012年4月6日 11:53
全部回复
-
2012年4月10日 9:20版主
Hi Pete,
Did you add the reference System.Deployment.dll in your project?
Click add Reference, open .NET tab and select System.Deployment.
If you still have any doubt and concern about this issue, please let us know.
Best Regards,Bob Wu [MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 Pete Bux 2012年4月10日 11:37
-
2012年4月10日 11:37
Hi Bob,
Thank you, that was the trick. I wasn't aware that was required.
Best regards,
Pete Bux
-
2012年5月2日 8:12版主
You should also check ApplicationDeployment.IsNetworkDeployed before accessing any of the deployment properties. This ensures that it is running as a ClickOnce app.
RobinDotNet
Click here to visit my ClickOnce blog!
Microsoft MVP, Client App Dev

