프로젝트를 런타임 설치 없이 실행하고 싶을 때.
정성태님 블로그 : https://www.sysnet.pe.kr/2/0/13159?pageno=0
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>embedded</DebugType>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>
</Project>
'C#' 카테고리의 다른 글
[C#] Worker 프로젝트에서 appsettings.json 불러오기, Serilog 사용하여 로컬 파일 로그 저장. (0) | 2023.10.24 |
---|---|
[C#] Web API NET 7 Background Service 추가 초기 설정. (0) | 2023.02.16 |
[C#] WPF에서 Windows.Graphics.Capture 사용하여 디스플레이, 프로그램 Screen Capture 사용, NET Framework, NET6 모두 사용. (0) | 2022.08.19 |
[C#] HttpClient Download With Progress (0) | 2022.06.29 |
[C#] EF Core 간단 사용. (0) | 2022.05.26 |