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

Commitf77583a

Browse files
TIHanKevinRansom
authored andcommitted
Cherry picking cross project reference fix into master (dotnet#5818)
* Fixed referencing cross projects (dotnet#5698)* Fixed referencing cross projects* Fixed legacy project referencing CPS style project* Fixed tooling issues when changing solutions (dotnet#5721)
1 parentdc8373a commitf77583a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎vsintegration/src/FSharp.Editor/LanguageService/ProjectSitesAndFiles.fs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,15 @@ type internal ProjectSitesAndFiles() =
241241
yield Some project.Id, project.FilePath, outputPath, siteProvider
242242
|_->()
243243

244-
|(Some references),_->
244+
|(Some references),Some(:? VisualStudioWorkspaceImplas workspace)->
245245
for pin referencesdo
246246
match solutionService.GetProjectOfUniqueName(p.UniqueName)with
247247
| VSConstants.S_OK,(:? IProvideProjectSiteas ps)->
248-
yield None, p.FileName,(fullOutputAssemblyPath p)|> Option.defaultValue"", ps
248+
letpath= ps.GetProjectSite().ProjectFileName
249+
letprojectId= workspace.ProjectTracker.GetOrCreateProjectIdForPath(path, projectDisplayNameOf path)
250+
yield Some projectId, p.FileName,(fullOutputAssemblyPath p)|> Option.defaultValue"", ps
249251
|_->()
250-
|None,_->()
252+
|_->()
251253
|]
252254
letsolutionService=try Some(serviceProvider.GetService(typeof<SVsSolution>):?> IVsSolution)with_-> None
253255
seq{match solutionServicewith

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp