Skip to content

Cargo SDK not compatible with .NET 10 SDK #654

@dfederm

Description

@dfederm

Error:

C:\Program Files\dotnet\sdk\10.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.PackProjectTool.props(16,13): error MSB4022: The result "" of evaluating the value "$(MicrosoftNETBuildTasksAssembly)" of the "AssemblyFile" attribute in element is not valid.

Specifically this is the CargoInstall.proj project inside the SDK
Image

This is because this PR: dotnet/sdk#49479. It adds:

  <UsingTask TaskName="Microsoft.NET.Build.Tasks.GetNuGetShortFolderName"
            AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />

MicrosoftNETBuildTasksAssembly is defined in Microsoft.NET.Sdk.Common.targets, which the CargoInstall.proj does not import. It does import Microsoft.NET.Sdk's props, but not the targets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions