Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can this Visual studio Resource warning be resolved or removed?

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.

like image 854
Casper Leon Nielsen Avatar asked Aug 24 '12 10:08

Casper Leon Nielsen


People also ask

How do I add a resource to Visual Studio?

In Visual Studio, open a SharePoint solution. In Solution Explorer, choose a SharePoint project node, and then, on the menu bar, choose Project > Add New Item. In the Add New Item dialog box, choose the Global Resources File template, and then choose the Add button.

How do I suppress warnings in Visual Studio Code?

In the Suppress warnings box, specify the error codes of the warnings that you want to suppress, separated by semicolons. Rebuild the solution. Use the Configuration Properties property page to suppress specific warnings for C++ projects. In Solution Explorer, choose the project or source file in which you want to suppress warnings.

How do I suppress a specific error in Visual Basic?

In the Disable Specific Warnings box, specify the error codes of the warnings that you want to suppress, separated by a semicolon. In the Disable Specific Warnings box, choose Edit to display more options. Choose the OK button, and then rebuild the solution. Suppress warnings for Visual Basic

How do I suppress warnings in a NET Core project?

To suppress warnings in a .NET Core project, add the build configuration section to the file manually. For example: Save the changes to the .vbproj file. On the menu bar, choose Project > Reload Project.

How do I get rid of nowarn warnings in Visual Basic?

On the menu bar, choose Project > Reload Project. On the menu bar, choose Build > Rebuild Solution. The Output window no longer shows the warnings that you specified. For more information, see the /nowarn compiler option for the Visual Basic command-line compiler.


1 Answers

After checking out the csproj file and discussing it in the group, we came up with the following answer:

When the resources were added to the project they were added using the wizard. This wizard added the designer files also, so for each reasource file there was also a .designer file.

This was seen as something that was not needed for the language specific resources and the designer files were deleted.

However the csproj files maintained the custom tool reference.

Deleting this reference (to "GlobalResourceProxyGenerator") for each of these resource files removed the issue.

The issue is that Visual Studio 2010 does not automatically remove this tool reference when the designer files are removed manually, creating this warning.

like image 145
Casper Leon Nielsen Avatar answered Oct 22 '22 09:10

Casper Leon Nielsen