✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
Hi guys! I'm trying to publish my C# project using
I have no idea how to fix this, to be honest - I've looked this up on Google but to no avail. I'm using shared projects, so maybe that's causing some issues...?
dotnet publish -c Debug --nologo -r win-x64, but I'm getting a cryptic error message, which I've attached to this post. (<MSBuild> refers to C:\Program Files\dotnet\sdk\<version>\Roslyn\Microsoft.CSharp.Core.targets)I have no idea how to fix this, to be honest - I've looked this up on Google but to no avail. I'm using shared projects, so maybe that's causing some issues...?

