1
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?

.NET 10で、Windows.Services.Storeを使う。

1
Posted at

課題

  • .NET 10
  • WPF

で、

using Windows.Services.Store;

を使う。

エラーになる方法

Microsoft.Windows.SDK.Contracts

は、nugetで参照しない。エラーになる。
Windows.SDK.Contractsを使う方法では、いろいろと試したが解決しなかった。

解決方法

ターゲットOSバージョンを変更するだけでOK。

image.png

<TargetFramework>net10.0-windows10.0.17763.0</TargetFramework>

のバージョン以上にする。
しかし、
10.0.17763.1
のように、最後に1がついているマイナーな違いのバージョンだとエラーになる。

備考

  • StackOverFlowでも、AIでも解決しなかったため、半日ほど調査しました。
  • Windows.Services.Storeが必要な理由は、Microsoft Storeにアプリを公開するからです。
1
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
1
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?