dotnet / dotnet/sourcelink

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

Open
#1,257 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

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](https://github.com/user-attachments/assets/887f64db-ea50-42f9-882a-387c927e6726)
![1_NuGet](https://github.com/user-attachments/assets/744f5f25-f3b4-4f6e-a25a-e5c8663bc3f4)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.