부모글 보이기/감추기 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 비밀번호 댓글 작성자 ... 46 47 48 [49] 50 51 52 53 54 55 56 57 58 59 60 ... NoWriterDateCnt.TitleFile(s) 12746정성태7/31/202124049개발 환경 구성: 588. 네트워크 장비 환경을 시뮬레이션하는 Packet Tracer 프로그램 소개12745정성태7/31/202116462개발 환경 구성: 587. Azure Active Directory - tenant의 관리자 계정 로그인 방법12744정성태7/30/202116540개발 환경 구성: 586. Azure Active Directory에 연결된 App 목록을 확인하는 방법?12743정성태7/30/202118098.NET Framework: 1083. Azure Active Directory - 외부 Token Cache 저장소를 사용하는 방법112742정성태7/30/202115773개발 환경 구성: 585. Azure AD 인증을 위한 사용자 인증 유형12741정성태7/29/202117477.NET Framework: 1082. Azure Active Directory - Microsoft Graph API 호출 방법112740정성태7/29/202116063오류 유형: 747. SharePoint - InvalidOperationException 0x8013150912739정성태7/28/202116362오류 유형: 746. Azure Active Directory - IDW10106: The 'ClientId' option must be provided.12738정성태7/28/202117571오류 유형: 745. Azure Active Directory - Client credential flows must have a scope value with /.default suffixed to the resource identifier (application ID URI).12737정성태7/28/202116622오류 유형: 744. Azure Active Directory - The resource principal named api://...[client_id]... was not found in the tenant12736정성태7/28/202116932오류 유형: 743. Active Azure Directory에서 "API permissions"의 권한 설정이 "Not granted for ..."로 나오는 문제12735정성태7/27/202115910.NET Framework: 1081. C# - Azure AD 인증을 지원하는 데스크톱 애플리케이션 예제(Windows Forms) [2]112734정성태7/26/202132782스크립트: 20. 특정 단어로 시작하거나/끝나는 문자열을 포함/제외하는 정규 표현식 - Look-around12733정성태7/23/202121918.NET Framework: 1081. Self-Contained/SingleFile 유형의 .NET Core/5+ 실행 파일을 임베딩한다면? [1]212732정성태7/23/202114421오류 유형: 742. SharePoint - The super user account utilized by the cache is not configured.12731정성태7/23/202116455개발 환경 구성: 584. Add Internal URLs 화면에서 "Save" 버튼이 비활성화 된 경우12730정성태7/23/202118302개발 환경 구성: 583. Visual Studio Code - Go 코드에서 입력을 받는 경우12729정성태7/22/202116325.NET Framework: 1080. xUnit 단위 테스트에 메서드/클래스 수준의 문맥 제공 - Fixture12728정성태7/22/202116928.NET Framework: 1079. MSTestv2 단위 테스트에 메서드/클래스/어셈블리 수준의 문맥 제공12727정성태7/21/202118044.NET Framework: 1078. C# 단위 테스트 - MSTestv2/NUnit의 Assert.Inconclusive 사용법(?) [1]12726정성태7/21/202117524VS.NET IDE: 169. 비주얼 스튜디오 - 단위 테스트 선택 시 MSTestv2 외의 xUnit, NUnit 사용법 [1]12725정성태7/21/202116160오류 유형: 741. Failed to find the "go" binary in either GOROOT() or PATH12724정성태7/21/202119145개발 환경 구성: 582. 윈도우 환경에서 Visual Studio Code + Go (Zip) 개발 환경 [1]12723정성태7/21/202115229오류 유형: 740. SharePoint - Alternate access mappings have not been configured 경고12722정성태7/20/202115338오류 유형: 739. MSVCR110.dll이 없어 exe 실행이 안 되는 경우12721정성태7/20/202121061오류 유형: 738. The trust relationship between this workstation and the primary domain failed. - 세 번째 이야기 ... 46 47 48 [49] 50 51 52 53 54 55 56 57 58 59 60 ...