How does visual studio link files to their corresponding designer.cs files? I have a strange situation that's occurred with both the DataSet designer and also the L2S DBML designer where it's ignoring the DataSet.Designer.cs and has created and used a DataSet.Designer1.cs instead. How can I switch it back?
相关问题
- the application was unable to start correctly 0xc0
- Project Build gets Skipped in VS2008 after convers
- Index was out of range. Must be non-negative and l
- How to decide what is the .Net target
- Windows Forms Designer destroys form layout
相关文章
- How to add external file to application files ( cl
- Equivalent to designer guidelines in code
- using Visual Studio to copy files?
- The project file '' has been renamed or is
- Moving focus to next tab group in Visual Studio 20
- Can you turn off (specific) compiler warnings for
- How do I start a second console application in Vis
- Change font size and style in Visual Studio 2008
Information about related files is written in project files (*.csproj). This may fix problem:
Alternative would be to try to change information in *.csproj file and then to rename Designer1 to Designer in all places it occurs. I did not try this, but it may work.
Thanks to Zendar's suggestion, this is what I did:
DataContext1.designer.cs
file toDataContext.designer.cs
, so the rename is picked up by source control.MyProject.csproj
in Textpad.DataContext1.designer
withDataContext.designer
(found 2 instances).Re-opening and building the solution in Visual Studio confirmed this worked. Thanks Zendar!