sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Microsoft.NET.Build.Extensions.Tasks.dll should not be loaded in devenv projecc during reference resolution for native vc projects

Open olgaark opened this issue 7 years ago • 2 comments

The problem is found while investigating VS Bug 973252: Perf: CPlusPlus_DDRIT.0900.Close Solution regressed VM_AdjustedImagesInMemory_Total_devenv by 2.000 Count (0.5%). Baseline 29226.70

Microsoft.NET.Build.Extensions.Tasks.dll is loaded by _HandlePackageFileConflicts target during

Target Name=ResolveAssemblyReferences Project=ConsoleApplication1.vcxproj  note that there is no assembly references in the native vc project … Target Name=_HandlePackageFileConflicts Project=ConsoleApplication1.vcxproj

The target is implemented here:

f:\Visual Studio 16 Master\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets

-->

Is this target doing something applicable to vc projects? If not, please either disable it for vcxproj or add a condition so cpp targets can disable it. At least, please add a condition there for empty @(Reference) so the task dll is not loaded in this case.

olgaark avatar Aug 28 '19 22:08 olgaark

@dsplaisted can you take a look?

livarcocc avatar Aug 29 '19 17:08 livarcocc

@olgaark Can you provide a sample VC project where this is occurring? Thanks.

dsplaisted avatar Aug 30 '19 16:08 dsplaisted