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

Commit7cf8740

Browse files
jasonmalinowskiKevinRansom
authored andcommitted
Correctly fetch the IVsBuildMacroInfo to use for the build events page (#3388)
This code is blindly copied and pasted fromhttps://github.com/dotnet/project-system/blob/88606ba869a29aa24979e0d14a199b2430f31f43/src/Microsoft.VisualStudio.Editors/PropPages/BuildEventsPropPage.vb#L162-L176I will fully admit I have no idea how this is supposed to work.
1 parent2c8a0e6 commit7cf8740

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎vsintegration/src/FSharp.ProjectSystem.PropertyPages/PropertyPages/BuildEventsPropPage.vb‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,16 @@ Namespace Microsoft.VisualStudio.Editors.PropertyPages
335335
PrivateFunctionGetTokenValue(ByValMacroNameAsString)AsString
336336
DimMacroEvalAsIVsBuildMacroInfo
337337
DimMacroValueAsString=Nothing
338-
339-
MacroEval=CType(m_Objects(0),IVsBuildMacroInfo)
338+
DimHierAsIVsHierarchy=Nothing
339+
DimItemIdAsUInteger
340+
DimThisObjAsObject=m_Objects(0)
341+
342+
IfTypeOfThisObjIsIVsBrowseObjectThen
343+
VSErrorHandler.ThrowOnFailure(CType(ThisObj,IVsBrowseObject).GetProjectItem(Hier,ItemId))
344+
ElseIfTypeOfThisObjIsIVsCfgBrowseObjectThen
345+
VSErrorHandler.ThrowOnFailure(CType(ThisObj,IVsCfgBrowseObject).GetProjectItem(Hier,ItemId))
346+
EndIf
347+
MacroEval=CType(Hier,IVsBuildMacroInfo)
340348
VSErrorHandler.ThrowOnFailure(MacroEval.GetBuildMacroValue(MacroName,MacroValue))
341349

342350
ReturnMacroValue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp