LoginSignup
0
0

More than 3 years have passed since last update.

Visual Studio 2019で .net 6 Preview 3を試す

Last updated at Posted at 2021-04-09

Visual Studio で.net 6 Preview3を試してみた。
プレビュー機能を有効にしないと、使えないので注意。

環境

Windows 10
Visual Studio 2019 Version 16.9.3

手順

SDK 6.0.100-preview.3をインストール

Visual Studioのプレビュー機能を有効にする

クリップボード02.png

プレビュー機能でチェックつけないと、
・ターゲットフレームワークに表示されず
・以下のように.csprojを直接書き替えても、SDKがないと怒られる。

.csproj
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0-windows</TargetFramework>
    <UseWPF>true</UseWPF>
  </PropertyGroup>
</Project>

ターゲットフレームワークを.NET 6にする

新規にプロジェクトを作成する場合

クリップボード01.png

既存のプロジェクトを変更する場合

クリップボード03.png

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0