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?

More than 1 year has passed since last update.

Windows11で、なぜかvisual studioのhelloworldがビルドできなかった解決策

Last updated at Posted at 2024-03-09

購入したばかりのWindowsにおいて、なぜかvisualstudioのhelloworldがビルドできなかった。
エラー文は、「指定したパスが見つからない」というエラーだった。
結果として、指定されたUserフォルダの中に、「.exe」実行ファイルが見つからないというエラーだった。

アンダーラインのファイルがでデバッグフォルダに生成されないエラー。
wto0pp8n.png

解決策・
原因はおそらく、Windows11から追加された下記システム

「スマート アプリ コントロール」←こいつ

この設定が原因で、対象のフォルダにアクセスできず、exe実行ファイルが作成できなかった。
この設定をoffにしたところビルドできた。

この設定をoffにしていいのかと心配になると思うが、ノートンセキュリティなどに加入しているなら
いらない機能だ。

自分もまだ初心者なので、分からないことが多いが、助けになれば幸いです。

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?