会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
电子商务,网络营销研究
----专注电子商务、网络营销的研究
博客园
首页
新随笔
联系
订阅
管理
使用VS自动化模型代码片段 Get DTE and UIService
使用VS自动化模型代码片段
Private Properties
#region
Private Properties
private
DTE VS
{
get
{
return
(EnvDTE.DTE)GetService(
typeof
(EnvDTE.DTE));
}
}
private
string
SolutionDirectory
{
get
{
EnvDTE.DTE dte
=
(EnvDTE.DTE)GetService(
typeof
(EnvDTE.DTE));
string
solutionDirectory
=
Path.GetDirectoryName((
string
)dte.Solution.Properties.Item(
"
Path
"
).Value);
return
solutionDirectory;
}
}
/**/
///
<summary>
///
The directory of webservice proxies project
///
</summary>
private
string
Destination
{
get
{
EnvDTE.DTE dte
=
(EnvDTE.DTE)GetService(
typeof
(EnvDTE.DTE));
string
solutionDirectory
=
Path.GetDirectoryName((
string
)dte.Solution.Properties.Item(
"
Path
"
).Value);
string
destination
=
Path.Combine(solutionDirectory, webserviceProxiesProjectName);
return
destination;
}
}
private
IUIService UIService
{
get
{
return
GetService
<
IUIService
>
(
true
);
}
}
#endregion
posted @
2008-02-01 13:22
公元前
阅读(
328
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告