5/8/2021 0 Comments Vb 6.0 Express Edition
Currently, Visual Studio 2005, 2008, and 2010 are supported, including Visual C Express and Visual Basic Express editions.After doing some research, I found this very nice article, but unfortunately, the application didnt support Visual Studio 2010 solutions when I started working on this project.
![]() Vb 6.0 Express Edition Code Is WrittenI recommend going over it before continuing with the article to easily understand why the code is written the way it is. Detecting the version of Visual Studio it was intended for, and extracting the list of projects the solution contains. Working with the XML file, and converting the project files into the target version. The enum values use a custom attribute called StringValueAttribute, which allows an enum value to have a sort of ToString method, GetStringValue(). GetStringValue() is a generic extension method which extracts the string value from the first StringValueAttribute occurrence on the specific enum value. By simply checking which of these strings the solution file contains, we can determine the Visual Studio version. We use a Regex expression and a LINQ query to retrieve the path and filename of every project in the solution. Since the solution file is a formatted text file, all we have to do is read it, replace the relevant values, and save it. Project files in Visual Studio are XML files that contain all the relevant information and settings for the project. There are four elements and attributes that we are going to need access to (as per this ). What we do is remove or add the relevant attributes or elements to the XML file, saving it afterwards. Since we are working directly with an XML object, we will receive a valid XML file after this procedure, ready to be used in a different Visual Studio version. Can u please provide the solution to open a 201312 version project in vs2010 and i have tried the tip that modification in the.sln file where we can change the version 12 to 11 but still its not working for me. If you have the time and patience to write the parser for VS2003, which is different from VS2005 and newer you should be able to integrate it into the source code. I run it,then convert my VS2010.sln file to VS2008. My friend receives the result then run in VS2008 with many errors. I open and build the solution, and get The type initializer for threw an exception. You have to handle code differences and reference changes on your own. You would have to recreate the whole XML document rather than just editing a few values. But that was mainly in C solutionsprojects so I do know a good deal about that.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |