msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Add fast-paths for property functions used in template projects

Open rainersigwald opened this issue 4 months ago • 0 comments

When building a template classlib in .NET 10.0.100-preview.5, there are two property functions that don't have a fast path, according to the output from enabling the tracing

https://github.com/dotnet/msbuild/blob/aee43cf63f9f9cbab52202fb7aa60dafc1be7f07/src/Build/Evaluation/Expander/WellKnownFunctions.cs#L905

The log is:

ReceiverType=Microsoft.Build.Utilities.ToolLocationHelper; ObjectInstanceType=; MethodName=GetPlatformSDKLocation(String, String)
ReceiverType=Microsoft.Build.Utilities.ToolLocationHelper; ObjectInstanceType=; MethodName=GetPlatformSDKDisplayName(String, String)

Each of these should get a fast path in src/Build/Evaluation/Expander/WellKnownFunctions.cs, following the conventions established in that file.

rainersigwald avatar Jun 16 '25 21:06 rainersigwald