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.

VisualStudioでライブラリがうまく読み込めなかったらやってみること覚書

Posted at

当時の環境メモ

VisualStudio: バージョン確認できてないけど最新版ではなかった
.Net Framework: .NetCore3.1

現象

Yarp.ReverseProxy:1.0.0(最新の安定版)
👆を使用しているソースコードをクローンしてきたところ、エラーが出た。
image.png
読み込んでいるライブラリをF12で確認してみると、ProxyRequestのメソッド自体はちゃんと存在していた。
また、VSCodeで開くとエラーが表示されなかったので、エラーの原因はVSだと推測。

原因

VisualStudioのバージョンが古かったので、バージョンを上げたら読み込まれるようになった。今は16.11.8。

上記以外でやってみること

  1. NuGetのキャッシュをクリアする
    C:\Users\ユーザー名\.nuget\packagesの中身をクリア
    再度slnファイルを開くと、自動で再構成してくれる。
  2. NuGetでライブラリをアンインストール→インストール
  3. Cloneしなおす
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?