问题
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.
来源:https://stackoverflow.com/questions/30129519/dataset-designer-cs-generate-designer1-cs-after-taking-update-from-svn-in-vs2013