You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The Task used by MSBuild to weave the assemblies.
22
23
/// </summary>
23
-
publicsealedclassWeaveAssembliesTask:Task
24
+
publicsealedclassWeaveAssemblyTask:Task
24
25
{
25
26
/// <summary>
26
27
/// The directory of the output.
@@ -29,13 +30,11 @@ public sealed class WeaveAssembliesTask : Task
29
30
publicstringTargetDir{get;set;}
30
31
31
32
/// <summary>
32
-
/// The path of the target assemblies.
33
+
/// The path of the target assembly.
33
34
/// </summary>
34
35
[Required]
35
36
publicstringTargetAssembly{get;set;}
36
37
37
-
privatereadonlyList<string>_warningMessages=[$"Benchmark methods were found in 1 or more assemblies that require NoInlining, and assembly weaving failed."];
38
-
39
38
/// <summary>
40
39
/// Runs the weave assemblies task.
41
40
/// </summary>
@@ -49,44 +48,20 @@ public override bool Execute()
49
48
}
50
49
51
50
varresolver=newCustomAssemblyResolver();
52
-
resolver.AddSearchDirectory(TargetDir);
51
+
resolver.AddSearchDirectory(TargetDir);
53
52
54
53
// ReaderParameters { ReadWrite = true } is necessary to later write the file.
// Assembly resolution can fail for library projects that contain references if the project does not have <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>.
74
-
// Because the library project could be built as a dependency of the executable, we only log the warning if the target assembly is executable.
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> <!-- workaround for 'Found multiple publish output files with the same relative path.' error -->
0 commit comments