C#
-
[C#] gRPC ExceptionC#/기초 2025. 1. 14. 14:50
Status(StatusCode="Unknown", Detail="Exception was thrown by handler.") https://learn.microsoft.com/ko-kr/aspnet/core/grpc/error-handling?view=aspnetcore-9.0 .NET에서 gRPC를 사용한 오류 처리.NET에서 gRPC를 사용하여 오류 처리를 수행하는 방법을 알아봅니다.learn.microsoft.com Status(StatusCode="ResourceExhausted", Detail="Received message exceeds the maximum configured message size.") Server public void ConfigureServices..
-
-
[WPF] publish .pdb 파일 제외C#/WPF 2024. 12. 26. 09:35
False None https://stackoverflow.com/questions/71476329/dotnet-publish-cli-exclude-pdb dotnet publish CLI exclude .pdbIn .NET 7, I do: dotnet publish --self-contained --configuration Release --runtime win7-x64 --output myapp How do I prevent .pdb files in the result? Ideally, just using the CLI? Are there anystackoverflow.com
-
[WPF] Debugger.Launch()C#/WPF 2024. 12. 26. 09:34
`Systehttp://m.Diagnostics.Debugger.Launch()`는 .NET 응용 프로그램에서 디버거를 호출하는 메서드입니다. 이 메서드는 코드 실행 중에 디버거를 강제로 시작하여 현재 실행 중인 프로세스를 디버깅할 수 있도록 합니다. 이 메서드는 일반적으로 개발 중에 코드의 특정 부분을 디버깅하기 위해 사용됩니다. 기능 설명: 1. **디버거 호출**: `Systehttp://m.Diagnostics.Debugger.Launch()`는 현재 실행 중인 프로세스에 디버거를 연결하려고 시도합니다. 2. **사용 사례**: 주로 개발 중에 코드의 특정 부분이 예상대로 작동하는지 확인하거나 오류를 분석하기 위해 사용됩니다. 3. **동작 방식**: 실행 중인 디버거가 없다면 새로운 디버거 인스..
-
[WPF] PublishSingleFile .exe 하나로C#/WPF 2024. 12. 19. 13:45
Profile settings 에서 설정하는게 작동이 잘 됨. OR true net8.0-windows enable true App.WindowsService exe true win-x64 x64 Publish 하면 .exe 파일 하나로 떨굼 https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service Create Windows Service using BackgroundService - .NETLearn how to create a Windows Service using the BackgroundService in .NET.learn.microso..
-
-
[C#] List 중복 제거C#/기초 2024. 12. 18. 15:19
https://code-piggy.tistory.com/entry/C-%EC%A4%91%EB%B3%B5%EB%90%9C-%EA%B0%92-%EC%97%86%EC%95%A0%EA%B8%B0 C# - 중복된 값 제거하기1. Contains을 사용하기 foreach(int i in list) { if (answer.Contains(i)) continue; answer.Add(i); } 2. Distinct 메서드 사용하기 Distnict 메서드는 System.Linq 네임스페이스에 있으므로 using문에 System.Linq를 추가한다. using Scode-piggy.tistory.com