0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VS2026でプレビュー版.NET SDK(.NET 11 RC1)を利用する方法

0
Posted at

VS2026でプレビュー版の.NET SDKを有効化する

前提条件

11.0 RC1をインストール済

> dotnet --list-sdks
6.0.407 [C:\Program Files\dotnet\sdk]
10.0.401 [C:\Program Files\dotnet\sdk]
11.0.100-rc.1.26425.128 [C:\Program Files\dotnet\sdk]

TargetFrameworkはnet11.0

*.csproj
<Project Sdk="Microsoft.NET.Sdk">

	<PropertyGroup>
		<OutputType>Exe</OutputType>
		<TargetFramework>net11.0</TargetFramework>
		<ImplicitUsings>enable</ImplicitUsings>
		<Nullable>enable</Nullable>
	</PropertyGroup>

</Project>

設定変更

VS2026を起動して、[ツール]-[オプション]-[プレビュー機能]-[プレビューの.NET SDKを使用]を有効にして再起動する
image.png

リビルド

リビルド出来ました。

※WinUI 3 / Windows App SDK系のプロジェクトの補足

リビルド前に依存関係をリストアする必要があった

*.csproj
<TargetFramework>net11.0-windows10.0.19041.0</TargetFramework>
dotnet restore -r any
0
0
0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?