Found some old code, circa VS 2003. Now I have just VS 2008 (SP1) installed. When I try opening the *.sln file, it tries converting the projects. The report notifies me it was done successfully, but the solution is empty, marked with "project file was unloaded".
VS 2008 doesn't even include opening a *.vcproj file.
Does anyone have any idea how I can convert my solution?
PS: I found several conversion tools that convert from VS 2005 to 2008 and vice versa - no one looks back to 2003 :(
As always, thanks for your assistance and time!
I suggest manually converting the project by creating a new proj. If you are having trouble now then there will be no way that you can be certain later by trying some other import method.
On a side note- I am on vs2005 and I often get 2008 projects handed to me. I go into the sln and proj files and rename the version numbers and it works perfectly. Hope that works for you!
Maybe you could first convert your solution from VS2003 to VS2005 and then do one more conversion from VS2005 to VS2008 ???
Seconding Klathzazts "manually changing the version numbers." this is often the best solution for dealing with VSC++ when something goes wrong in the upgrade process.
Related
I recently installed Visual Studio 2013 Ultimate version on my machine. I'm just trying to create a sample windows form project and trying to open the designer / form by double clicking on Form1.cs and I'm getting this weird error message:
"the service microsoft.visualstudio.shell.interop.iselectioncontainer already exists in the service container"
My system is already having Visual Studio 2010 which is working smoothly from a long time. I then installed Visual Studio 2012 which was giving the same problem as above. So I went ahead with installing VS 2013 hoping that I might be able to get rid of this issue, but no use.
Once I click OK on the error windows, I can see the following "message" in the bottom Error List window:
"The file 'C:\Users\ABCD\Documents\Visual Studio 2013\Projects\WebSite1\WindowsFormsApplication1\Form1.cs' does not support code parsing or generation because it is not contained within a project that supports code."
I have spent 2-3 days searching various blogs like these, all of which talk about previous version of Visual Studio like VS 2005 / VS 2008:
https://connect.microsoft.com/VisualStudio/feedback/details/311949/the-service-microsoft-visualstudio-shell-interop-iselectioncontainer-already-exists-in-the-service-container
Form inheritance in Visual Studio 2008 doesn't work
I have even tried uninstalling and reinstalling VS 2013, again no use.
It would be really great if someone can help me out in fixing this.
I've just had the exact same error message.
After compiling the solution(F6 or Build->Build Solution) it worked fine for me.
To deal with your issue, please first make sure that you installed latest updates on your Windows 8 machine, and then repair VS2013.
During your repairing process, please temporally turn off your anti-virus/antispyware software and repair VS2013 with the Administrator privilege.
follow this link
The problem got resolved finally, after so many days and various frustrating tries to resolve the issue. I should thank Tim Atkins from Microsoft for helping me with resolving this issue.
Fix: When we tried 'gacutil /l system.design', we found that there were 3 variants of system.design; One from .Net 2.0 targetting MSIL, second from .Net 4.0 targetting x86 and last one also from .Net 4.0, but targetting MSIL.
On a working machine, there were only 2 entries, the .Net 4.0 one targetting x86 wasn't there. Hence we uninstalled this version using gacutil which did the magic. I was so relieved seeing the win forms popping up without any errors anymore :)
I changed the target framework from 4.5 to 4.6.1 and it fixed it for me. My assumption is sometimes when you change target framework back and forth and the process does not go through all the way (cancelling in the middle of changing it) - something happens that leads to this error. Hope that helps
I solved this be closing VS, deleting contents of the .vs folder where my solution is, restarting VS and recompiling.
Seems like one of those file/settings/caching problems that pop up now and then, might be after switching source branch.
VS2019, .net fw 4.6.2.
If your C drive (Where you are installing Visual Studio) does not have enough space, try moving some files from the C drive to another drives.
Can i use VS2012 to open older VS Version projecs without changing anything?
I am just start with VS2012 and on college i always use VS2010, i have just start working with a new company and they use 2005 for most of the projects.
I want to know if there's a way that i can use VS2012 or VS2010 without changing anything so my (coworkers don't need to change anything)
NOTE: so far they dont use a TFS, but if they install one it must be 2010 cus is the one the other teams uses
Yes, of course: you just tell at the fist visual studio dialog box that you don't want to convert your VS 2010 project, and that's OK!
My teacher is complaining that he can't read the VS2012 format on his VS2010 environment. I looked around in settings and so on but couldn't find anything. How can I give the project in an VS2010 readable format to my teacher?
Modifying sln manually
Backup your project folder (copy/paste to another location, like a folder called "backups")
Open sln file on wordpad
Change the "header" of opened sln to below (the first lines that matches mentioned lines below, except by version number/name):
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
I'll see if there is a way to do it in project options...
If the VS2010 installation has SP1 installed, then it should be able to read the VS2012 solution file.
Assuming this is not a terribly complex project (I'm making that assumption since there is a teacher involved), the easiest approach may be just to re-create the project in Visual Studio 2010.
Fire up VS2010, add your files, make any necessary changes to settings, and save.
You will need VS2010 no matter what approach you take. Even if you convert the project file by other means, it would be very wise to test it before handing it in again. The Express edition is free.
Another easy way to do it is to right click on the source code, open it with a program such as notepad, then save that on to a USB stick. When you go to class, copy and paste this into Visual Studio 2010 and viola.
[Edited]
intellisense is not working just for just one XAML file in a particular solution (the solution compiles and runs fine) it works on every other project and other files.. can someone point me to instructions on how to fix it ?
I am using Visual studio 2010 express edition for windows phone.
I doubt this is the problem since you say it works in other projects, but Statement Completion for XAML might not be turned on in the options.
Either than that... I've had some weird problems with intellisense randomly not working at times. Most of the time deleting the intellisense database (.ncb file) so VS can rebuild it seems to work.
How do I run Visual Studio 2008 projects in Visual Studio 2005?
Take a look at this article by Jon Skeet about moving solutions and projects between VS2005 and VS2008.
Jon's conclusions:
It's possible to share project files but not solution files between VS2005 and VS2008.
If you upgrade a solution file by mistake, it's very easy to fix it by hand.
If you decide to maintain different solution files, if there are big changes in one it may be easiest to just make them in one solution, then upgrade again.
Creating a project in VS2005 and then importing it into VS2008 is seamless; the other way round has slight issues which are fixable by hand.
I don't know of a way of forcing VS2008 to only use C# 2 while at the same time maintaining VS2005 compatibility.
First off, you picked 2009. A terrible year. 2007 we might have guessed 2008, but 2009 is smack dab in the middle.
I'm not sure what the answer will be, but I'd guess that your best approach is to just add each code file and each reference until the project works.
I don't know what the file formats look like, but there usually isn't going to be support in an older version for a newer version's format.
I'm not sure that VS2005 has forward compatibility... haven't heard of that many apps that do.