zoukankan
html css js c++ java
使用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
查看全文
相关阅读:
poj 1789 Truck History(最小生成树)
POJ 3096 Surprising Strings(STL map string set vector)
hdu 1412 (STL list)
POJ 1552 Doubles (C++ STL set使用)
poj 水题系列
洛谷P4859 已经没有什么好害怕的了
CF1228E Another Filling the Grid
二项式反演
AT [ABC177F] I hate Shortest Path Problem
[NOI2020]制作菜品
原文地址:https://www.cnblogs.com/wmz/p/1061209.html
最新文章
hust 1218 Acman and his GirlFriend
hust 1036 Cell Phone Network
hust 1400 Longest common prefix
Trie 树
hust 1038 Running
poj 1094 Sorting It All Out(拓扑排序)
poj 3026 Borg Maze (最小生成树+bfs)
poj 2240 Arbitrage (最短路 bellman_ford)
poj 1125 Stockbroker Grapevine(最短路 简单 floyd)
hdu 4642 Fliping game(博弈)
热门文章
poj 2253 Frogger(最短路 floyd)
poj 1062 昂贵的聘礼(最短路 dijk+枚举)
poj 1860 Currency Exchange (最短路bellman_ford思想找正权环 最长路)
poj 3259 Wormholes(最短路 Bellman)
poj 2049 Finding Nemo(优先队列+bfs)
poj 3083 Children of the Candy Corn(DFS+BFS)
poj 2993 Emag eht htiw Em Pleh(模拟)
poj 2996 Help Me with the Game(模拟)
poj 1259 Agri-Net(最小生成树)
poj 2485 Highways (最小生成树)
Copyright © 2011-2022 走看看