Answered No System.Deployment.Application available

全部回复

  • 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