!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

118 Members
23 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
10 Feb 2025
@gggkiller:matrix.orgGGG *

dotnet new console (using .NET 9 + .NET 8 combined SDK)

then add this to Program.cs:

static partial class Regexes
{
    [GeneratedRegex(@"[\x00-\x1f\\/:\""*?<>\|]|\.+$")]
    public static partial Regex NotAllowedInFolderChars { get; }
}
18:41:49
@gggkiller:matrix.orgGGG *

dotnet new console (using .NET 9 + .NET 8 combined SDK, resulting in a net9.0 project)

then add this to Program.cs:

static partial class Regexes
{
    [GeneratedRegex(@"[\x00-\x1f\\/:\""*?<>\|]|\.+$")]
    public static partial Regex NotAllowedInFolderChars { get; }
}
18:42:00
@corngood:corngood.comCorngoodIs it not reproducible if you use only the net9 sdk?20:49:34
@gggkiller:matrix.orgGGGThe extension won't find the runtime for .NET 8 you don't add it20:49:59
@gggkiller:matrix.orgGGGSo the language server won't even start20:50:04
@corngood:corngood.comCorngoodMaybe I misunderstood the repro. It's not just a build failure? You have to start Roslyn-ls?21:00:17
@gggkiller:matrix.orgGGGNo, it's not a build failure, it builds correctly21:00:40
@gggkiller:matrix.orgGGGBut roslyn-ls does not execute the source generators, so it has a bunch of errors in the proejct21:00:55
@gggkiller:matrix.orgGGG* But roslyn-ls does not execute the source generators, so it has a bunch of errors in the project21:00:59
@gggkiller:matrix.orgGGGMore specifically, the roslyn-ls that is bundled/embedded/vendored inside the VSCode C# extension21:01:15
@gggkiller:matrix.orgGGGit builds correctly, but the extension generates a bunch of errors because no source is being generated so the program is incomplete according to it21:01:37
12 Feb 2025
@emma:rory.gayEmma [it/its]oh is that why source generators no longer run in Rider either?21:22:11

Show newer messages


Back to Room ListRoom Version: 9