Skip to content

The .NET Framework build task deployed to .NET SDK needs a different identity #78565

@jaredpar

Description

@jaredpar

There is a build task targeting net472 deployed to the .NET SDK 10 (and later). When msbuild (.NET Framework) is used to build a .NET SDK project this task is loaded and invokes the .NET Core based compiler.

Today this build task has the same identity as the task deployed in msbuild inside Visual Studio. These tasks have different behaviors but because they have the same identity a <UsingTask> for one could return the other when there is node reuse in play. This means that running msbuild on a .NET SDK project then a .NET Framework one could cause the build to have incorrect behavior because both builds end up with the .NET SDK copy of the task.

To fix this we will need to make sure the task deployed to the .NET SDK has a different identity. Likely will just call this Microsoft.Build.Tasks.CodeAnalysis.Bridge.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions