I am facing a weird problem after taking update from SVN data-set Designer.cs file generate another file with different name like test.Designer.cs after update renamed as test1.Designer.cs . I follow suggestion found here. but not working again its generate test1.Designer.cs ,please help me to solve this .
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
- Edit the csproj file.
- Search for
<LastGenOutput>test1.Designer.cs</LastGenOutput>
. - Correct the value so it shows
<LastGenOutput>test.Designer.cs</LastGenOutput>
. - Delete test.Designer.cs and test1.Designer.cs from disk.
- Open the solution again.
- Right-click on the dataset and click Run Custom Tool to regenerate the designer file.
The same problem can also occur with string resource resx files in Visual Studio.