Can I create a file that sits next to a .Designer.cs file in Visual Studio?

后端 未结 3 1409
既然无缘
既然无缘 2020-12-19 07:01

In Visual Studio, two files are created when you create a new Windows Form in your solution (e.g. if you create MyForm.cs, MyForm.Designer.cs and MyForm.resx are also create

3条回答
  •  悲哀的现实
    2020-12-19 07:14

    Open .csproj in edit mode, look for the file you want to be under another one, and add the DependentUpon element, like this:

    
      AlertDialog.xaml
    
    

提交回复
热议问题