Open Daniel15 opened 1 month ago
It turns out this is something to do with PublishSingleFile
. For now I've pulled that out into a PropertyGroup that only applies for release builds:
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishTrimmed>false</PublishTrimmed>
<SelfContained>true</SelfContained>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>
Edit: Turns out this is a long-standing bug in Rider: https://youtrack.jetbrains.com/issue/RIDER-56918/Cannot-start-debugging-net5-project-on-Linux-when-using-PublishSingleFile-in-.proj-file
It might be worth mentioning in the readme, in a comment in the csproj file, or just only using PublishSingleFile for release builds by default? (I'm not sure it has value in debug builds)
I'm using JetBrains Rider on Fedora. I created a new project using this template. It runs fine, but when I try to run with the debugger, the app never starts. Even if I put a breakpoint at the start of the first line of Main, it never gets hit.
The debugger works fine for a basic console app, and for an ASP .NET web app. It's just Gir.Core Gtk projects that I'm encountering this issue with.
Any ideas?