15

Anyone can help us here - we have been having this error for several months and had many a stab to remove it, but we still havnt figured out why its there or how to remove it. How is this warning resolved or removed?

Warning 351 A custom tool 'GlobalResourceProxyGenerator' is associated with file 'App_GlobalResources\GridLocalization.bg-BG.resx', but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool.

4

4 に答える 4

18

csproj ファイルをチェックアウトしてグループで議論した後、次の答えにたどり着きました。

リソースがプロジェクトに追加されたとき、それらはウィザードを使用して追加されました。このウィザードはデザイナー ファイルも追加したので、リソース ファイルごとに .designer ファイルもありました。

これは、言語固有のリソースには不要なものと見なされ、デザイナー ファイルが削除されました。

ただし、csproj ファイルはカスタム ツール リファレンスを維持していました。

これらのリソース ファイルごとにこの参照 (「GlobalResourceProxyGenerator」への参照) を削除すると、問題が解決されました。

問題は、デザイナー ファイルが手動で削除されたときに Visual Studio 2010 がこのツール参照を自動的に削除せず、この警告が発生することです。

于 2012-08-24T12:46:15.783 に答える
1

Visual Studio 2017 では、次のエラーで同じ問題が発生しました

Warning A custom tool 'ResXFileCodeGenerator' is associated with file <snip name>, but the output of the custom tool was not found in the project. 

<Generator>ResXFileCodeGenerator</Generator>リソース ファイル宣言内の参照を削除して 、問題を修正しました。

于 2018-06-14T11:17:10.607 に答える
0

VS 2019 では、エラーも修正しました。

警告 カスタム ツール 'ResXFileCodeGenerator' はファイル に関連付けられていますが、カスタム ツールの出力がプロジェクト内に見つかりませんでした。

プロジェクトの「.csproj」ファイル内にある ResXFileCodeGenerator への参照を削除することにより!

于 2020-04-12T23:55:18.207 に答える