简体   繁体   English

Visual Studio Solution秘密的解决方案文件(.sln)中的全局部分?

[英]Global Section inside Solution File (.sln) of Visual Studio Solution secret?

Recently I was trying to load a solution source controlled by TFS but some projects in that solution were not being loaded in solution explorer inside visual studio. 最近我试图加载由TFS控制的解决方案源,但该解决方案中的一些项目没有加载到visual studio内的解决方案资源管理器中。 After spending hours of my time, for temporary reason when I deleted the whole "Global Section" at the end of .sln (solution file) by manually editing it in a notepad and restarted Visual Studio, all projects appeared as expected. 花了几个小时的时间,暂时的原因,当我在.sln(解决方案文件)的末尾删除整个“全局部分”时,通过在记事本中手动编辑并重新启动Visual Studio,所有项目都按预期显示。 I am using VS 2008. It hasn't shown any odd behavior yet, but couldn't understand the reason. 我正在使用VS 2008.它还没有表现出任何奇怪的行为,但无法理解原因。

Does "Global Section" in solution file play and important role? 解决方案文件中的“全局部分”是否起作用和重要作用? Any harm in removing global section? 删除全局部分有什么害处?

Well, you just deleted any source control bindings, plus build configuration and some solution-specific settings. 好吧,您刚刚删除了任何源代码控制绑定,以及构建配置和一些特定于解决方案的设置。

VS should revert to defaults if it doesn't find the section, though I suppose it would have been better if you knew just what was causing the issue. 如果它没有找到该部分,VS应该恢复为默认值,但我想如果你知道导致问题的原因会更好。 If the problem was with TFS then maybe resetting that fixed the problem. 如果问题出在TFS上,那么可能会重置修复问题。

As to harm, again, if VS is able to cope with the removal of the section and can revert to defaults then I see no harm. 至于伤害,再次,如果VS能够应对删除该部分并且可以恢复到默认值,那么我认为没有任何伤害。 Of course you might lose configuration information, which will have to be re-applied. 当然,您可能会丢失必须重新应用的配置信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从Win Form应用程序运行SLN文件(Visual Studio解决方案) - Run SLN file (visual studio solution) from win form application 如何在 Visual Studio 2019 中更新 .sln(解决方案)文件 - How to update .sln (solution) file within Visual Studio 2019 没有sln文件时使用Visual Studio 2015打开解决方案/项目 - Opening Solution / Project with Visual studio 2015 when there is no sln file 如何将Visual Studio的现有makefile转换回解决方案文件(* .sln)? - How do I convert an existing makefile for Visual Studio back into a solution file (*.sln)? 如何在与Web项目相同的目录中创建Visual Studio解决方案文件(.sln)? - How do you create a Visual Studio Solution File (.sln) in the same directory as the web project? 如果ASP.NET 5项目/解决方案没有SLN文件,如何在Visual Studio 2015 Update 1中打开它? - If an ASP.NET 5 project/solution has no SLN file how do I open it in Visual Studio 2015 Update 1? 是否可以在不更新GUID的情况下在Visual Studio解决方案(.sln)文件中编辑项目路径? - Is it OK to edit the project paths in a Visual Studio solution (.sln) file without updating the GUIDs? Visual Studio-网站解决方案文件-在.sln文件所在的目录中创建网站文件夹的副本 - Visual Studio - Website solution files - Creating copies of website folders in the same directory as the .sln file Visual Studio 2008 - 移动解决方案文件(sln,suo) - Visual Studio 2008 - Moving solution files (sln, suo) Visual Studio没有创建解决方案文件? - Visual Studio not creating a solution file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM