Skip to content

Could not be loaded. The root element is missing. (Microsoft.NET.Sdk.SourceLink.targets) #1257

Open
@jlabraibarraSH

Description

I'm trying to compile an app on iOS. With dotnet 8.0.303. But it gives me the following error.

Severity Code Description Project File Line Status Deleted
Error (active) MSB4024 The imported project file "C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.SourceLink.GitHub\build\Microsoft.SourceLink.GitHub.targets" could not be loaded. The root element is missing.	AppTh C:\Program Files\dotnet\sdk\8.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.SourceLink.targets 29

It is worth mentioning that I already installed the NuGet package 'sourcelink' but the error just keeps appearing.

Does anyone know how to solve it?

1_Error_Console
1_NuGet

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