1
1

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.

【エラー】dllを参照しているのに「アセンブリ参照が不足しています」が出るときの対処

Last updated at Posted at 2023-05-11

不具合現象

Visual Studioの.NET Frameworkの開発中、
自作したdllファイルを参照しデバッグで起動しました。

デバッグでの起動はうまくいきましたが、
dll内のメソッドを使用する際に標題のエラーが発生しました。

もちろん、dllを参照していることは確認済です。

解決方法

自作したdllのプロジェクトの、

「Properties -> アプリケーション -> 対象のフレームワーク」と

デバッグ中のプロジェクトの対象フレームワークが異なることが原因でした。
上記の設定を同じにすることで問題なく対処できました。

デバッグまで起動できるのが謎ですが、
今回のケースでは、自作dllの内部で使用しているdllを使用する際に、
Frameworkが異なることが原因で、dllが不足する事態になったのだと推測します。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?