부모글 보이기/감추기 AD BLOCK 해제 요청 이 글에는 광고가 많이 들어가 있지 않습니다. adblock을 해제하셔도 글을 읽는데 그다지 부담이 없으니 해제를 부탁드립니다. (연관된 글이 1개 있습니다.) C# 9.0을 위한 개발 환경 구성 다음의 문서에 이미 공개되어 있듯이, C# language versioning ; https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version 현재 C# 9.0은 .NET 5 프로젝트인 경우 기본값이지만, 그 외의 프로젝트라면 csproj 파일을 열어 명시적으로 9.0이라고 명시해야 합니다. <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> <LangVersion>9.0</LangVersion> </PropertyGroup> </Project> 적용 여부를 간단하게 테스트하기 위해 신규 문법으로, Target-typed new expressions ; https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/target-typed-new using System; class Program { private readonly static object s_syncObj = new(); static void Main(string[] args) { Console.WriteLine("Hello World!"); } } 코딩을 해보면, 원래는 "new()"에서 오류가 발생하지만 C# 9.0에서는 정상적으로 컴파일이 됩니다. C# 9.0에 관한 문법은 다음의 문서를 참고하거나, What's new in C# 9.0 ; https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9 C# 9.0 Specification Proposals ; https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/records 혹은 github 문서를 통해 현재 시점의 적용 여부까지 확인할 수 있습니다. Language Feature Status - C# 9 ; https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md#c-9 참고로, "Developer Command Prompt for VS2019"를 열고 다음의 명령어를 실행하면 이렇게 9.0이 포함되어 있을 것입니다. (2020-10-11 시점에는) default 버전은 8.0입니다. C:\> csc -langversion:? Supported language versions: default 1 2 3 4 5 6 7.0 7.1 7.2 7.3 8.0 (default) 9.0 latestmajor preview latest [이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.] [다음 글] VS.NET IDE: 151. Visual Studio 2019에 .NET 5 rc/preview 적용하는 방법[이전 글] 오류 유형: 666. The type or namespace name '...' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?) [연관 글] .NET Framework: 947. C# 9.0 - (1) 대상으로 형식화된 new 식(Target-typed new expressions) [최초 등록일: 10/11/2020] [최종 수정일: 3/9/2024] 이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다. by SeongTae Jeong, mailto:techsharer at outlook.com 비밀번호 댓글 작성자 ... [166] 167 168 169 170 171 172 173 174 175 176 177 178 179 180 ... NoWriterDateCnt.TitleFile(s) 1013정성태4/7/201130925Team Foundation Server: 45. SharePoint 2010 + TFS 2010 환경에서 ProcessGuidance.html 파일 다운로드 문제1012정성태4/6/201140443.NET Framework: 208. WCF - 접속된 클라이언트의 IP 주소 알아내는 방법 [1]1011정성태3/31/201142442오류 유형: 114. 인증서 갱신 오류 - The request contains no certificate template information.1010정성태3/30/201133192개발 환경 구성: 113. 응용 프로그램 디자인 스케치 도구 - SketchFlow [4]1009정성태3/29/201145544개발 환경 구성: 112. Visual Studio 2010 - .NET Framework 소스 코드 디버깅 [4]1008정성태3/27/201137532.NET Framework: 207. C# - Right operand가 음수인 Shift 연산 결과 [2]1007정성태3/16/201138388개발 환경 구성: 111. Excel - XML 파일 연동 [5]11006정성태3/15/201132017.NET Framework: 206. XML/XSD - 외래키처럼 참조 제한 거는 방법11005정성태3/11/201142133개발 환경 구성: 110. 엑셀 매크로 함수 관련 오류 [2]1004정성태3/3/201131360개발 환경 구성: 109. SharePoint Health Analyzer 디스크 부족 경고 제어1003정성태3/3/201132438오류 유형: 113. SQL Server - DB Attach 시 Parameter name: nColIndex 오류 발생1002정성태3/2/201130620Team Foundation Server: 44. TFS 설치 후, Team Portal의 Dashboard를 빠르게 확인하는 방법1001정성태3/2/201135143Team Foundation Server: 43. TFS 2010 + SharePoint 2010 설치1000정성태3/1/201140206오류 유형: 112. Remote FX RDP 연결 시 오류 유형 2가지 [5]999정성태2/28/201153258개발 환경 구성: 108. RemoteFX - Windows 7 가상 머신에서 DirectX 9c 환경을 제공 [5]998정성태2/27/201126807Team Foundation Server: 42. TFS Application-Tier만 재설치996정성태2/12/201144319디버깅 기술: 35. windbg - 분석 예: 시작하자마자 비정상 종료하는 프로세스 - NullReferenceException995정성태2/11/201162316.NET Framework: 205. 코드(C#)를 통한 풀 덤프 만드는 방법 [4]994정성태2/10/201142764디버깅 기술: 34. Windbg - ERROR: Unable to load DLL mscordacwks_x86_x86_2.0.50727.4200.dll, Win32 error 0n2 [1]993정성태2/10/201134991개발 환경 구성: 107. 하나의 WPF 프로젝트를 WinExe / Library로 빌드하는 방법992정성태10/15/201135061개발 환경 구성: 106. VSS(Volume Shadow Service)를 이용한 Hyper-V VM 백업/복원 [2]991정성태2/6/201155717개발 환경 구성: 105. 풀 덤프 파일을 남기는 방법 [4]990정성태2/2/201140265개발 환경 구성: 104. Visual C++ Custom Build Tool 사용예 [1]1989정성태2/1/201136926개발 환경 구성: 103. DOS batch - 동기 방식으로 원격 서비스 제어988정성태1/30/201132732개발 환경 구성: 102. MSBuild - DefineConstants에 다중 전처리 값 설정987정성태1/29/201146013디버깅 기술: 33. PDB Symbol 로드 오류 - Cannot find or open the PDB file. [2] ... [166] 167 168 169 170 171 172 173 174 175 176 177 178 179 180 ...