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?

Visual Studioの保存ボタンで「オブジェクト参照がオブジェクトインスタンスに設定されていません」のエラー対応

Posted at

現象

Visual Studio 2022でプロジェクトを開いてソースコードを編集して保存しようとすると「オブジェクト参照がオブジェクトインスタンスに設定されていません」のエラーになり保存ができない。
保存させるには編集したファイルのタブを閉じることで保存させている。

対応

Visual Studio 2022の対応方法を例にします。

  1. Visual Studio 2022を閉じる
  2. C:\Users{ユーザー名}\AppData\Local\Microsoft\VisualStudio\ フォルダを開きます
  3. 17.0_9cac6ada フォルダ(Versionによって変わる)の名前を変更する
  4. Visual Studio 2022を起動します

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?