我有一个 VS 2008 WinForms 项目,我最近添加了一个在不同的 VS 2008 项目中开发的现有表单。所有原始表单和控件都正确嵌套,但是,对于新表单,它将表单、设计器和 resx 文件显示为 3 个单独的项目。
有没有办法强制 VS 正确嵌套这些文件?我浏览了设置、用谷歌搜索、访问了 MSDN,但似乎找不到这方面的信息。
最佳答案
假设新表单名为“Form1” 应该看起来像这样:
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
关于visual-studio-2008 - Visual Studio 2008 无法在解决方案资源管理器中正确嵌套文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3017052/