Generowanie programu jako pojedynczego pliku w projekt.cs edytujemy w taki sposób: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net7.0-windows</TargetFramework> <Nullable>enable</Nullable> <UseWindowsForms>true</UseWindowsForms> <ImplicitUsings>enable</ImplicitUsings> <!-- Dodane właściwości --> <PublishSingleFile>true</PublishSingleFile> <SelfContained>true</SelfContained> <IncludeAllContentInSingleFile>true</IncludeAllContentInSingleFile> <!-- Opcjonalne --> <EnableCompressionInSingleFile>true</EnableCompressionInSingleFile> <!-- Opcjonalne: kompresja --> </PropertyGroup> </Project> Jeśli masz ochotę to postaw kawę, będzie to motywacja do kolejnej pracy https://buycoffee.to/emilcsharp