File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
tests/Baselines/MultiTargetTypeReuse/TypeReuseClient/ServiceReference Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -627,7 +627,12 @@ private async Task ProcessReferencesOptionAsync(CancellationToken cancellationTo
627627 {
628628 for ( int idx = this . References . Count - 1 ; idx >= 0 ; idx -- )
629629 {
630- if ( ! references . Contains ( this . References [ idx ] ) )
630+ var selected = references . Where ( x => this . References [ idx ] . Name == x . Name ) . FirstOrDefault ( ) ;
631+ if ( selected != null )
632+ {
633+ this . References [ idx ] = selected ;
634+ }
635+ else
631636 {
632637 this . References . RemoveAt ( idx ) ;
633638 }
Original file line number Diff line number Diff line change @@ -97,6 +97,16 @@ public void MakePathsRelativeTo(DirectoryInfo optionsFileDirectory)
9797 this . Inputs [ idx ] = new Uri ( relPath , UriKind . Relative ) ;
9898 }
9999 }
100+
101+ //update referenced assembly path
102+ for ( int idx = 0 ; idx < this . References . Count ; idx ++ )
103+ {
104+ var reference = this . References [ idx ] ;
105+ if ( reference . DependencyType . Equals ( ProjectDependencyType . Binary ) )
106+ {
107+ this . References [ idx ] = ProjectDependency . FromAssembly ( reference . AssemblyName ) ;
108+ }
109+ }
100110 }
101111
102112 public void ResolveFullPathsFrom ( DirectoryInfo optionsFileDirectory )
Original file line number Diff line number Diff line change 1010 ],
1111 "outputFile" : " Reference.cs" ,
1212 "references" : [
13- " $TEMP$MultiTargetTypeReuse//TypeReuseClient//bin//Debug//net6.0// BinLib.dll "
13+ " BinLib"
1414 ],
1515 "targetFramework" : " N.N" ,
1616 "typeReuseMode" : " All"
You can’t perform that action at this time.
0 commit comments