简体   繁体   English

打开Visual Studio 2008 sln文件创建一个Visual Studio文件夹

[英]Opening a Visual Studio 2008 sln file creates a Visual Studio folder

this sounds simple but drives me nuts. 这听起来很简单,但让我发疯。

I am on Windows 7 and have VS TS 2008 SP1. 我在Windows 7上,具有VS TS 2008 SP1。 When I open a solution file it always creates a 'Visual Studio 2008' folder in the same directory. 当我打开解决方案文件时,它将始终在同一目录中创建“ Visual Studio 2008”文件夹。 Then SVN etc wants to add etc. How do I stop this from happening. 然后SVN等想要添加等。如何阻止这种情况发生。 I tried the registry setting the VisualStudioLocation to %userprofile\\docs etc but no joy. 我尝试将VisualStudioLocation设置为%userprofile \\ docs等的注册表,但没有任何乐趣。

Thanks Mick 谢谢米克

OK I got this sorted from another bit of digging on the internet... 好吧,我从互联网上的另一次挖掘中得到了排序...

Open the registry... Run -> Regedit 打开注册表... 运行-> Regedit

Browse the *Hkey_Current_USER -> Software -> Microsoft -> Visual Studio -> 9.0* 浏览* Hkey_Current_USER->软件-> Microsoft-> Visual Studio-> 9.0 *

Look at the following keys and set them to 查看以下键并将它们设置为

VisualStudioLocation = %USERPROFILE%\\Documents\\Visual Studio 2008 VisualStudioProjectsLocation = %USERPROFILE%\\Documents\\Visual Studio 2008\\Projects VisualStudioLocation = %USERPROFILE%\\ Documents \\ Visual Studio 2008 VisualStudioProjectsLocation = %USERPROFILE%\\ Documents \\ Visual Studio 2008 \\ Projects

This will cause any Visual Studio folders etc to get created there and not in your local solution folder.. 这将导致在此处而不是在本地解决方案文件夹中创建任何Visual Studio文件夹等。

Regards Mick 问候米克

May be it is because of your soruce control (SVN). 可能是由于您的吸附控制(SVN)。 Try changing Tools-->Options-->Source Control 尝试更改工具->选项->源代码管理

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM