Skip to content

Should EnableFrameworkPathOverride be set for net50 TFM #11598

@JunTaoLuo

Description

@JunTaoLuo

Hey folks, while I'm ingesting the new SDK and updating our TFM to net5.0, I ran into the following error:

.dotnet/sdk/5.0.100-preview.5.20258.4/Microsoft.Common.CurrentVersion.targets(84,5): error MSB4184: (NETCORE_ENGINEERING_TELEMETRY=Restore) The expression "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries(_, v.0, '', '', '', '')" cannot be evaluated. Input string was not in a correct format.

Tracking this part down a little it seems like the property EnableFrameworkPathOverride used to be set to false for apps targeting netcoreapp5.0 but now due to the change in tfm, the logic there is skipped and therefore the the line in Microsoft.Common.CurrentVersion.targets fails:

<FrameworkPathOverride Condition="'$(EnableFrameworkPathOverride)' != 'false' And '$(FrameworkPathOverride)' == ''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries($(TargetFrameworkIdentifier), $(TargetFrameworkVersion), $(TargetFrameworkProfile), $(PlatformTarget), $(TargetFrameworkRootPath), $(TargetFrameworkFallbackSearchPaths)))</FrameworkPathOverride>

What is the expected behaviour and what should we be doing to resolve this? Who would be the best person to answer this question? @dsplaisted @wli3 @peterhuene

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions