gpt4 book ai didi

visual-studio - Designer 在加载/卸载时由 Visual Studio 添加然后删除

转载 作者:行者123 更新时间:2023-12-03 04:16:40 27 4
gpt4 key购买 nike

有人见过这个吗?我有一个大型 Visual Studio 项目,它不断将 [Subtype]Designer[/Subtype] 添加到我的 .vcproj 中,然后在下一次打开和关闭项目时将其删除。 StoredImageControl.cs 中只定义了一个类。任何人都知道如何关闭它,因为它真的搞乱了我的版本控制。

这是之前的:

<EmbeddedResource Include="StoredImageControl.resx">
<DependentUpon>StoredImageControl.cs</DependentUpon>
</EmbeddedResource>

这是之后

<EmbeddedResource Include="StoredImageControl.resx">
<DependentUpon>StoredImageControl.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>

最佳答案

这可能与您在已保存解决方案状态下打开的文件有关。我在 VS2010 中遇到了这个问题,发现如果我在编辑器中打开 .xml 文件时关闭解决方案,那么在随后重新打开解决方案时,包含该 .xml 文件的项目将得到此 <SubType>Designer</SubType>已添加行。但是,如果我在没有打开该文件的情况下关闭解决方案,它不会尝试在以下重新打开时添加该行。

关于visual-studio - <Subtype>Designer</Subtype> 在加载/卸载时由 Visual Studio 添加然后删除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1573241/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com