Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
889bfaad
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
889bfaad
编写于
4月 13, 2015
作者:
T
Tom Meschter
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1792 from tmeschter/Fix1579
Set correct path to linked rule set file.
上级
4eab77f7
1f0f7138
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
3 deletion
+17
-3
src/VisualStudio/Core/Def/Implementation/ProjectSystem/Extensions/IVsHierarchyExtensions.cs
...tation/ProjectSystem/Extensions/IVsHierarchyExtensions.cs
+5
-0
src/VisualStudio/Core/SolutionExplorerShim/AnalyzersCommandHandler.cs
...udio/Core/SolutionExplorerShim/AnalyzersCommandHandler.cs
+7
-3
src/VisualStudio/Core/SolutionExplorerShim/SolutionExplorerShim.csproj
...dio/Core/SolutionExplorerShim/SolutionExplorerShim.csproj
+4
-0
src/Workspaces/Core/Desktop/Workspaces.Desktop.csproj
src/Workspaces/Core/Desktop/Workspaces.Desktop.csproj
+1
-0
未找到文件。
src/VisualStudio/Core/Def/Implementation/ProjectSystem/Extensions/IVsHierarchyExtensions.cs
浏览文件 @
889bfaad
...
...
@@ -63,6 +63,11 @@ public static bool TryGetItemName(this IVsHierarchy hierarchy, uint itemId, out
return
hierarchy
.
TryGetItemProperty
(
itemId
,
__VSHPROPID
.
VSHPROPID_Name
,
out
name
);
}
public
static
bool
TryGetCanonicalName
(
this
IVsHierarchy
hierarchy
,
uint
itemId
,
out
string
name
)
{
return
ErrorHandler
.
Succeeded
(
hierarchy
.
GetCanonicalName
(
itemId
,
out
name
));
}
public
static
bool
TryGetParentHierarchy
(
this
IVsHierarchy
hierarchy
,
out
IVsHierarchy
parentHierarchy
)
{
return
hierarchy
.
TryGetProperty
(
__VSHPROPID
.
VSHPROPID_ParentHierarchy
,
out
parentHierarchy
);
...
...
src/VisualStudio/Core/SolutionExplorerShim/AnalyzersCommandHandler.cs
浏览文件 @
889bfaad
...
...
@@ -21,6 +21,7 @@
using
Microsoft.VisualStudio.LanguageServices.SolutionExplorer
;
using
Microsoft.VisualStudio.Shell
;
using
Microsoft.VisualStudio.Shell.Interop
;
using
Roslyn.Utilities
;
using
VSLangProj140
;
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.SolutionExplorer
...
...
@@ -485,11 +486,14 @@ private void OpenDiagnosticHelpLinkHandler(object sender, EventArgs e)
private
void
SetActiveRuleSetHandler
(
object
sender
,
EventArgs
e
)
{
EnvDTE
.
Project
project
;
string
fileName
;
string
ruleSetFileFullPath
;
if
(
_tracker
.
SelectedHierarchy
.
TryGetProject
(
out
project
)
&&
_tracker
.
SelectedHierarchy
.
TryGet
ItemName
(
_tracker
.
SelectedItemId
,
out
fileName
))
_tracker
.
SelectedHierarchy
.
TryGet
CanonicalName
(
_tracker
.
SelectedItemId
,
out
ruleSetFileFullPath
))
{
UpdateProjectConfigurationsToUseRuleSetFile
(
project
,
fileName
);
string
projectDirectoryFullPath
=
Path
.
GetDirectoryName
(
project
.
FullName
);
string
ruleSetFileRelativePath
=
FilePathUtilities
.
GetRelativePath
(
projectDirectoryFullPath
,
ruleSetFileFullPath
);
UpdateProjectConfigurationsToUseRuleSetFile
(
project
,
ruleSetFileRelativePath
);
}
}
...
...
src/VisualStudio/Core/SolutionExplorerShim/SolutionExplorerShim.csproj
浏览文件 @
889bfaad
...
...
@@ -34,6 +34,10 @@
<Project>
{1EE8CAD3-55F9-4D91-96B2-084641DA9A6C}
</Project>
<Name>
CodeAnalysis
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\..\..\Workspaces\Core\Desktop\Workspaces.Desktop.csproj"
>
<Project>
{2e87fa96-50bb-4607-8676-46521599f998}
</Project>
<Name>
Workspaces.Desktop
</Name>
</ProjectReference>
<ProjectReference
Include=
"..\..\..\Workspaces\Core\Portable\Workspaces.csproj"
>
<Project>
{5F8D2414-064A-4B3A-9B42-8E2A04246BE5}
</Project>
<Name>
Workspaces
</Name>
...
...
src/Workspaces/Core/Desktop/Workspaces.Desktop.csproj
浏览文件 @
889bfaad
...
...
@@ -136,6 +136,7 @@
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.LanguageServices"
/>
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.LanguageServices.CSharp"
/>
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.LanguageServices.Implementation"
/>
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.LanguageServices.SolutionExplorer"
/>
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.LanguageServices.Telemetry"
/>
<InternalsVisibleTo
Include=
"Microsoft.VisualStudio.LanguageServices.VisualBasic"
/>
<InternalsVisibleTo
Include=
"Roslyn.InteractiveFeatures"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录