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?

More than 3 years have passed since last update.

WindowsMachineでMAUIアプリが起動しない

0
Posted at

経緯

C#で記述できて、クロスプラットフォームで動くアプリを作るために.NET MAUIを選択しました。
とりあえずチュートリアルをやってみようと思ったのですが、アプリケーションの実行をしてもエラーで終了してしまう。。
そんなことがあったので、解決策の備忘のために記事を書きました。

開発環境

  • OS
    • Windows10(22H2)
  • Visual Studio 2022
    • Version 17.4.4
  • デバッグ対象
    • フレームワーク(net7.0-windows10.0.19041.0)

解決策

  1. Visual Studioでアプリをビルドする
    1. 完了後に、Windowsメニューに作成したアプリが追加される
  2. Windowsメニューに表示されたアプリを管理者で実行
  3. 開いたアプリを閉じる
  4. 以降、Visual Studioからデバッグ実行が可能となる

感想

他のところではAndroidのエミュレーターでやっていたので
解決策にたどり着くまでに時間がかかってしまった。。

参考サイト

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?