@@ -23,6 +23,10 @@ public class CreateFrameworkListFile : Task
23
23
[ Required ]
24
24
public string TargetFile { get ; set ; }
25
25
26
+ public string ManagedRoot { get ; set ; } = "" ;
27
+
28
+ public string NativeRoot { get ; set ; } = "" ;
29
+
26
30
/// <summary>
27
31
/// Extra attributes to place on the root node.
28
32
///
@@ -46,7 +50,6 @@ public override bool Execute()
46
50
{
47
51
Item = item ,
48
52
Filename = Path . GetFileName ( item . ItemSpec ) ,
49
- TargetPath = item . GetMetadata ( "TargetPath" ) ,
50
53
AssemblyName = FileUtilities . GetAssemblyName ( item . ItemSpec ) ,
51
54
FileVersion = FileUtilities . GetFileVersion ( item . ItemSpec ) ,
52
55
IsNative = item . GetMetadata ( "IsNativeImage" ) == "true" ,
@@ -55,15 +58,14 @@ public override bool Execute()
55
58
. Where ( f =>
56
59
! f . IsSymbolFile &&
57
60
( f . Filename . EndsWith ( ".dll" , StringComparison . OrdinalIgnoreCase ) || f . IsNative ) )
58
- . OrderBy ( f => f . TargetPath , StringComparer . Ordinal )
59
- . ThenBy ( f => f . Filename , StringComparer . Ordinal ) )
61
+ . OrderBy ( f => f . Filename , StringComparer . Ordinal ) )
60
62
{
61
63
var element = new XElement (
62
64
"File" ,
63
65
new XAttribute ( "Type" , f . IsNative ? "Native" : "Managed" ) ,
64
66
new XAttribute (
65
67
"Path" ,
66
- Path . Combine ( f . TargetPath , f . Filename ) . Replace ( '\\ ' , '/' ) ) ) ;
68
+ Path . Combine ( f . IsNative ? NativeRoot : ManagedRoot , f . Filename ) . Replace ( '\\ ' , '/' ) ) ) ;
67
69
68
70
if ( f . AssemblyName != null )
69
71
{
0 commit comments