Skip to content

Commit

Permalink
Fix for: 3596 --- [.NET Framework Projects] IDE is confused about the…
Browse files Browse the repository at this point in the history
… last file to compile (#3603)
  • Loading branch information
KevinRansom authored Sep 19, 2017
1 parent f52362a commit 194fa62
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,13 @@ type internal FSharpProjectOptionsManager
}

member this.UpdateProjectInfoWithProjectId(projectId:ProjectId, userOpName) =
let project = workspace.CurrentSolution.GetProject(projectId)
let siteProvider = this.ProvideProjectSiteProvider(project)
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, siteProvider.GetProjectSite(), userOpName)
let hier = workspace.GetHierarchy(projectId)
match hier with
| h when (h.IsCapabilityMatch("CPS")) ->
let project = workspace.CurrentSolution.GetProject(projectId)
let siteProvider = this.ProvideProjectSiteProvider(project)
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, siteProvider.GetProjectSite(), userOpName)
| _ -> ()

member this.UpdateProjectInfoWithPath(path, userOpName) =
let projectId = workspace.ProjectTracker.GetOrCreateProjectIdForPath(path, projectDisplayNameOf path)
Expand Down

0 comments on commit 194fa62

Please sign in to comment.