在using命名空间的时候没有System.Deployment.Applicaton;
只有System.Deployment.Internal;和System.Deployment;
难道是我的VS程序集和大家的不一样?
已经添加了System.Deployment的引用,
如果没添加会连System.Deployment也using不了的
需要添加System.Deployment引用
方法如下:
1 右键点击Reference,然后点击 Add Reference.

2 在搜索框中输入System.Deployment,然后勾选对应的引用,点击ok。

你有没有首先添加引用呢。