Saturday, October 07, 2006

LINQ Project Types do not appear if VB.NET is not installed

I installed LINQ (Language Integrated Query) earlier this week and had a bit of trouble getting going. I live in a world of C# and don't have VB.NET installed on my aging laptop at home. This caused the LINQ Preview (May 2006) installer to skip a few tasks during install and the project types that should appear in the Visual Studio New Project menu didn't appear. Well it didn't take me long to hunt this one on down MSDN forums but here's what to do if you have this problem. Remove the LINQ Preview if you've already installed it and the project types are missing or simply install using this command line from the same directory as "LINQ Preview (May 2006).msi" :

msiexec.exe /i "LINQ Preview (May 2006).msi" VCSPROJECTTEMPLATESDIR.C7A0C9D96EB648548BD084A2A4C688EB="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\CSharp\LINQ Preview\" VCSPKGDIR.C7A0C9D96EB648548BD084A2A4C688EB="C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\" VCSIDEDIR.C7A0C9D96EB648548BD084A2A4C688EB="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\" DEBUGVISUALIZERDIR.C7A0C9D96EB648548BD084A2A4C688EB="C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\Visualizers\" CSWEBPROJECTTEMPLATESDIR.4AE13B6F621C49B9995EB64016EC2E60="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\Web\CSharp\1033" CSITEMTEMPLATEDIR.92D1EB66EA714CFE9C88A25F2388CD0F="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033" DEVENV="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Devenv.exe" DEVENVPATH="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\"

Please replace relevant Visual Studio paths (underlined) with actual Visual Studio installation path. Couldn't be simpler ;)

No comments: