Skip to content

Commit b8d337b

Browse files
author
Omar Tawfik
committed
Fix tests
1 parent 97b333c commit b8d337b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vsintegration/tests/Salsa/salsa.fs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ module internal Salsa =
221221

222222
try
223223
try
224-
GetFlagsAndSources(project,host)
224+
let flagsAndSources = GetFlagsAndSources(project,host)
225+
(project, flagsAndSources)
225226
with e ->
226227
System.Diagnostics.Debug.Assert(false, sprintf "Bug seen in MSBuild CrackProject: %s %s %s\n" (e.GetType().Name) e.Message (e.StackTrace))
227228
reraise()
@@ -257,7 +258,8 @@ module internal Salsa =
257258
timestamp <- newtimestamp
258259
prevConfig <- curConfig
259260
prevPlatform <- curPlatform
260-
flags <- Some(MSBuild.CrackProject(projectfile, prevConfig, prevPlatform))
261+
let projectObj, projectObjFlags = MSBuild.CrackProject(projectfile, prevConfig, prevPlatform)
262+
flags <- Some(projectObjFlags)
261263
match flags with
262264
| Some flags -> flags
263265
| _ -> raise Error.Bug
@@ -291,6 +293,9 @@ module internal Salsa =
291293
member this.IsIncompleteTypeCheckEnvironment = false
292294
member this.TargetFrameworkMoniker = ""
293295
member this.LoadTime = System.DateTime(2000,1,1)
296+
member this.ProjectGuid =
297+
let projectObj, projectObjFlags = MSBuild.CrackProject(projectfile, configurationFunc(), platformFunc())
298+
projectObj.GetProperty(ProjectFileConstants.ProjectGuid).EvaluatedValue
294299

295300
// Attempt to treat as MSBuild project.
296301
let internal NewMSBuildProjectSite(configurationFunc, platformFunc, msBuildProjectName) =

0 commit comments

Comments
 (0)