Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita25bfd1

Browse files
saulKevinRansom
authored andcommitted
Do not throw an exception when trying to get the SimpleName of unloaded project references (dotnet#2332)
Fixesdotnet#2275
1 parent3667caa commita25bfd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectReferenceNode.cs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,11 @@ private void InitReferencedProject(IVsSolution solution)
167167
varhr=solution.GetProjectOfGuid(refreferencedProjectGuid,outhier);
168168
if(!ErrorHandler.Succeeded(hr))
169169
return;// check if project is missing or non-loaded!
170-
170+
171171
objectobj;
172172
hr=hier.GetProperty(VSConstants.VSITEMID_ROOT,(int)__VSHPROPID.VSHPROPID_ExtObject,outobj);
173-
ErrorHandler.ThrowOnFailure(hr);
173+
if(!ErrorHandler.Succeeded(hr))
174+
return;
174175

175176
EnvDTE.Projectprj=objasEnvDTE.Project;
176177
if(prj==null)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp