Skip to content

Add fast-paths for property functions used in template projects #12024

@rainersigwald

Description

@rainersigwald
Member

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

LogFunctionCall(receiverType, methodName, "PropertyFunctionsRequiringReflection", objectInstance, args);

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @rainersigwald

    Issue actions

      Add fast-paths for property functions used in template projects · Issue #12024 · dotnet/msbuild