--- lang: ja-jp breaks: true --- # MSBuild csproj C# 言語バージョンの指定 `LangVersion` 2021-10-01 ## `<LangVersion>latest</LangVersion>` を設定する ```xml= <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFrameworks>net6.0-windows;net48</TargetFrameworks> <Nullable>enable</Nullable> <UseWindowsForms>true</UseWindowsForms> <LangVersion>latest</LangVersion> </PropertyGroup> </Project> ``` ## C# 言語バージョン リファレンス https://docs.microsoft.com/ja-jp/dotnet/csharp/language-reference/configure-language-version ```xml= <LangVersion>latest</LangVersion> ``` ```xml= <LangVersion>preview</LangVersion> ``` ```xml= <LangVersion>latestMajor</LangVersion> ``` ###### tags: `MSBuild` `C#` `LangVersion` `csproj`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up