Wuschba

I just installed a Windows Vista and Visual Studio on it. Everyting seems to work fine except of that I'M not able to double-click on a .sln/.cs/.csproj-file to lunch VS: Just nothing is happening.

What is wrong



Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Karthikeya Pavan Kumar .B

check this link...this might be a solution to the problem.




Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Wuschba

Thanks for your reply. But the link doesn't fully solve the problem: There is still no option to use DDE in Vista to load .cs-file for example into a running IDE. Is there a way to do this !




Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Chris Brandsma

That ususally only works with applications that are designed to be single instance. Visual Studio doesn't care if there are four copies running at the same time.

But, you can drag the files onto Visual Studio and Visual Studio will load the file.

Hope that helps.






Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Wuschba

Thanks for your reply. Well, you are right that VS is not designed to be a single instance, but the DDE-stuff worked fine under Windows XP and I liked it very much.

Well, I tried to drag&drop files onto the IDE, but it doens't work (I only see the "forbidden" mouse-pointer). I tried to drag files like .cs or .sln or .csproj to the mdi-background or the solution-explorer, but couldn't find a place where I was allowed to drop the file. Any ideas about that !





Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

TaylorMichaelL

You have reported several problems with your VS2005/Vista installation. Did you receive any errors during installation and/or did you install SP1 and Vista refresh for VS2005 I've run VS2005 on several different Vista installations without any problems. It seems like your installation is corrupted somehow.

Nevertheless VS2005 doesn't actually associate itself with SLN or project files anymore. Instead it associates a version checker program. The version checker program determines what version of VS created the solution/project and opens the appropriate version of VS (if you have multiple copies installed). Hence you no longer have the problem of accidentally upgrading a VS2003 SLN just because VS2005 is installed. The actual command used is: <program files>\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe "%1". The SLN and project files all map to this same command.

Since you're running Vista you can check the associations pretty easily using the Default Programs menu item in the Start Menu. If you scan down to (say) SLN files you should see Microsoft Visual Studio Version Selector as the default program. If not then click Change Program and you should see it as an option in the list to associate with the file extension. An even quicker way (for VS2005) though is available in the IDE itself using Tools\Options -> Environment\General. Click the Restore File Associations button to restore VS2005 file associations.

Michael Taylor - 7/11/07

http://p3net.mvps.org





Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Wuschba

Thank you for your reply! The installation finished without any problems, after that I installed SP1 and all available updates with Windows-Update. The version of my VS now is: Microsoft Visual Studio 2005 Version 8.0.50727.867 (vsvista.050727-8600). Is this okay

After installation, in Default Progamms .sln was assigned to the Version Selector. But doubleclicking a .sln-file just did nothing: The coursor flickers shortly and nothing happens.

I then did a "Restore File Associations" in the options-dialog - with no change.

I then used Deafult Programms to manually assigned C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe to .sln-files. This worked. But why do I have to do it manually

Another problem: It was the same with .cs-files. At last, I manually assigned C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe, but the effect is not the same as with .sln-files: If I double-click MyFile.cs, the UserAccountControl pops up, I click OK, the IDE opens - but empty. At the same time the explorer opens a MsgBox telling me "MyFile.cs couldn't be found, please make sure that the name is correct and repeat the action.". Strange.


Where am I able to see the command like <program files>\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe "%1" In Default Programs, you can only assign an .exe via a FileDialog, but without any parameters like %1. It seems that I'm not able to set DDE-orders like Open("%1") like you could do in XP to repair such a behavior.

Any ideas










Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

TaylorMichaelL

Did you apply the Vista refresh for VS http://www.microsoft.com/downloads/details.aspx FamilyID=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&displaylang=en

OK so VS hooked up properly if SLN files are associated with Version Selector. Now to determine why the SLN won't open. Was the SLN created with an older version of VS If you look at the SLN icon you should see the version # in the icon. It sort of sounds like maybe the SLN entries for VS2005 weren't created properly. Do you have entries in HKCR for VisualStudio.Solution and VisualStudio.Solution.v.8.0 If not then repair the VS installation.

DDE was a backward compatibility fix for apps that were originally designed for Win3X and ProgMan. The explorer shell uses verbs instead. These verbs reside in the registry and are associated with a command. Some also define the DDE topic/item information but it is not required. Forget about DDE as it is legacy only. You can find the command used by Explorer under HKCR. It is a two step process. The file extension is listed by itself (.sln) along with some basic extension information. It's default value is the name of another key (the file type) in HKCR that contains the bulk of extension information (VisualStudio.Launcher.sln). If you go to the file type key you'll see even more shell information. Included in that list is the Shell key and under there is an entry for each of the standard verbs (and any custom verbs) supported by a file type. The open verb will be listed. Under that is the command key where the actual command resides. If DDE were supported you'd also have a DDEExec key but VS doesn't generate those keys anymore. Here is what mine looks like:

HKCR

.sln -> (default) = VisualStudio.Launcher.sln

VisualStudio.Launcher.sln

Shell

Open

Command -> (default) = "C:\Program Files\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe" "%1"

All the standard project files map to this same code layout but with different filetype names. Source files are different. Since a source file doesn't track the version that created it the latest version of VS is used. It has the same layout as given earlier but with different file types and commands. In this particular case though the command is actually mapped directly to the IDE through DDE (go figure) rather than using a simple command line parameter. Therefore you'll see a DDEExec entry for the file type as well. For reference here is a .cs file


HKCR

.cs -> (default) = VisualStudio.cs.8.0

VisualStudio.cs.8.0

Shell

Open

Command -> (default) = "C:\VS2005\Common7\IDE\devenv.exe" /dde

DDEExec -> (default) = Open("%1")

Application -> VisualStudio.8.0

Topic -> system

Michael Taylor - 7/11/07

http://p3net.mvps.org





Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Wuschba

Thanks again for your reply. I just (re-)installed the "Vista refresh" (didn't know if it had installed it in the first place). But without any success: Still the same behavior.

My registry looks the same as yours - strange. I think I will try a repair of VS, if this won't help I will try a re-install.




Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

BT Mike

I am having the exact same problem as you. I have been running VS2003 for some time but I am now in the process of using VS2005 on my Vista system. Here is what I did, rather basic:

  1. Make sure Vista has all the latest updates
  2. Install VS2005 plus latest updates (including the Vista updates)
  3. Install Windows SDK for Vista
  4. Double-click on a .SLN file doesn't work
  5. Right click on a .SLN and I see "Microsoft Visual Studio .NET 2003" and "Microsoft Visual Studio Version Selector." Select the "Selector" and nothing happens. Select .NET 2003 and it works.

I just installed all of this so it's a rather clean unmucked configuration. I think the UAC is causing a problem. Version Selector likely needs to run with Admin rights but how could Microsoft ship a product like this, at this point, that isn't fully Vista compatible.

Everything is registered correctly per the above comments.

Mike





Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

TaylorMichaelL

Version selector does not require admin rights. I run Vista with UAC without any problems (once the Vista update is installed). If you wanted to do ASP.NET development then there is a hotfix for VS2005 and Vista but otherwise it should work.

What icon does the SLN file show If it says 8 then it should open with VS2005 otherwise it should open with VS2003. I have heard of problems using VS2003 after VS2005 is installed but since VS2003 wasn't supported on Vista I don't think it should be an issue anyway. If you installed VS2003 after VS2005 then that could introduce a problem. VS2003 doesn't support UAC.

Here's an interesting test. Try running the Version Selector directly. It should start up VS2005 with an error saying it can't find any file. I gave the path in the previous post. I will be leaving for vacation shortly so I will not be able to assist you any further until week after next. Perhaps someone else can assist you in the interm or you will be able to find the solution.

Michael Taylor - 7/13/07

http://p3net.mvps.org





Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Uriah65

I am having exactly the same problem on Vista and VS 2005. For a long time everything worked fine, then a few weeks ago *.sln association stopped working.

I can¡¯t even drag *.sln into VS IDE, the only way to open is to go File\Open\Project-Solution

It¡¯s very annoying.

Sln icon shows version 8, but when double click, the wait cursor pops for a second and nothing happens.

I wish somebody from Microsoft will help.





Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

fooplex

Same problem here. If you attempt to run vslauncher.exe directly, it does not start in Vista. Nothing happens at all.



Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

Wuschba

Strange thing:

Starting vsluncher.exe does pop up wait cursor for a short time, but nothing else.

Starting vsluncher.exe as administrator, it works and gives the expected error-message.

Could you confirm this Any idea about that







Re: Visual C# IDE Vista doesn't start .sln and .csproj-files

BT Mike

Same here. If I double-click on vslauncher.exe, nothing happens. Right click and say "Run as Administrator" and it works.