© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
Calen

Nuget SourceRoot | Microsoft.Build.Framework.ITaskItem | MSB4094 Error

I am in the middle of my Intro to C# course and the only error I have is this error that is actually two errors that target both projects in my solution.
cs Severity    Code    Description    Project    File    Line    Suppression State
Error    MSB4094    "C:\Users\Calen\.nuget\packages\;C:\Users\calen\.nuget\packages\" is an invalid value for the "SourceRoot" parameter of the "Microsoft.SourceLink.GitHub.GetSourceLinkUrl" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".    Course    C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.SourceLink.GitHub\build\Microsoft.SourceLink.GitHub.targets    36    
cs Severity    Code    Description    Project    File    Line    Suppression State
Error    MSB4094    "C:\Users\Calen\.nuget\packages\;C:\Users\calen\.nuget\packages\" is an invalid value for the "SourceRoot" parameter of the "Microsoft.SourceLink.GitHub.GetSourceLinkUrl" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".    Course    C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.SourceLink.GitHub\build\Microsoft.SourceLink.GitHub.targets    36    

I'm not too sure where to start with this issue. I've cleaned my solution, rebuilt the project, updated what I could and I haven't found anything on google to help me much either.
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Nuget incompatible with framework
C#CC# / help
3y ago
❔ .NET Framework reference vs NuGet?
C#CC# / help
4y ago
Nuget error when i build .sln [Answered]
C#CC# / help
4y ago