gpt4 book ai didi

visual-studio - 为什么 Visual Studio 解决方案需要随 Visual Studio 的每个版本升级?

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

这很容易成为 Visual Studio 历史上最烦人的“功能”之一,我不明白它为什么存在 -- 曾经 .

为什么 CodePlex 项目需要关心我使用的是什么版本的 Visual Studio?

在我的脑海中,我唯一能想到的是某些版本的 Visual Studio 可能会内省(introspection)搜索属性的程序集,以确定在“Visual Designers”和“Property Editors”中显示的内容。但是为什么这会导致 Visual Studio 无法打开项目并允许我浏览其内容并进行编译呢?

在我看来,.NET 中的开源在某种程度上受到 Visual Studio 所展示的愚蠢依赖管理的限制。换句话说,如果我使用的是 Visual Studio 2008 而您使用的是 Visual Studio 2010,那么我们有不同的解决方案文件。

最佳答案

http://blogs.msdn.com/b/visualstudio/archive/2010/03/15/why-does-visual-studio-2010-convert-my-projects.aspx

以下是该站点中关于 Visual Studio 为何将您的项目转换为 2010 格式的示例。

For instance, Visual Studio runs custom tools such as single file generators for designers in order to output code representing the changes made to the designer. Many of these custom tools are upgraded or completely replaced in the newer IDE. During conversion, the IDE knows which custom tools to replace or upgrade. In order to make round-tripping work, VS would need old and new custom tools to understand each other so as to ensure that old and new designers can work side by side. Other than designers, the following files would also be affected: resource editors, wizards, code snippets, item and project templates, diagramming and modeling tools, and many more.tools, and many more.



由于 2010 知道 2008 具有哪些工具,因此它可以向前转换以与 2010 使用的自定义工具兼容。 2008不知道2010在用什么,怎么可能?因此,不可能向后转换,因为它不知道需要转换什么,也不知道如何转换。

关于visual-studio - 为什么 Visual Studio 解决方案需要随 Visual Studio 的每个版本升级?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3782077/

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