未验证 提交 cf6f7e22 编写于 作者: D dotnet-automerge-bot 提交者: GitHub

Merge pull request #5704 from Microsoft/merges/dev15.9-to-dev16.0

Merge dev15.9 to dev16.0
......@@ -225,7 +225,7 @@ type internal ProjectSitesAndFiles() =
let getReferencesForSolutionService (solutionService:IVsSolution) =
[|
match referencedProjects projectSite, extraProjectInfo with
| None, Some (:? VisualStudioWorkspaceImpl as workspace) when not (isNull workspace.CurrentSolution)->
| _, Some (:? VisualStudioWorkspaceImpl as workspace) when not (isNull workspace.CurrentSolution)->
let path = projectSite.ProjectFileName
if not (String.IsNullOrWhiteSpace(path)) then
match projectIdOpt with
......@@ -241,13 +241,15 @@ type internal ProjectSitesAndFiles() =
yield Some project.Id, project.FilePath, outputPath, siteProvider
| _ -> ()
| (Some references), _ ->
| (Some references), Some (:? VisualStudioWorkspaceImpl as workspace) ->
for p in references do
match solutionService.GetProjectOfUniqueName(p.UniqueName) with
| VSConstants.S_OK, (:? IProvideProjectSite as ps) ->
yield None, p.FileName, (fullOutputAssemblyPath p) |> Option.defaultValue "", ps
let path = ps.GetProjectSite().ProjectFileName
let projectId = workspace.ProjectTracker.GetOrCreateProjectIdForPath(path, projectDisplayNameOf path)
yield Some projectId, p.FileName, (fullOutputAssemblyPath p) |> Option.defaultValue "", ps
| _ -> ()
| None, _ -> ()
| _ -> ()
|]
let solutionService = try Some (serviceProvider.GetService(typeof<SVsSolution>) :?> IVsSolution) with _ -> None
seq { match solutionService with
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册