Visual Studio adds a remote resource string to usercontrol

I have a problem with my vs2010. I have a large project with a lot of localized user controls.

My problem is that if I deleted a line from my resource file (I have a resource file that contains a lot of lines and images), sometimes when I switch languages โ€‹โ€‹in my user control, visual studio will add it โ€œall overโ€ to my user control constructor file.

It seems pretty random when he adds it. It can be added to the ToolTip or ToolTip header in my gridviews devexpress view, it can be added with a tag on a shortcut or any number of string properties that I did not set. I have to go in and manually delete each line with a line to make my solution compiled again.

I know this is a kind of vague and fuzzy question. I just hope someone can point me in the right direction.

+4
source share
1 answer

In the pre-build event, you can put this

if exist "$ (TargetPath). blocked" del "$ (TargetPath). blocked" if "$ (TargetPath)" if not exist $ (TargetPath). blocked "move" $ (TargetPath) "" $ (TargetPath) "blocked"

It helps me.

+1
source

Source: https://habr.com/ru/post/1489437/


All Articles