Compiling under VS2002: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(3rd person edit)
m (Further cleanup)
Line 1: Line 1:
[[Category:Tutorials]] [[Category:Programming]]After testing out compiling under Visual Studio 2002 Pro, it works! Here is what you need to do...
The Visual Studio project files provided in the Source SDK are VS2003 project files. This page details the changes to these files necessary to allow them to be opened and compiled in Visual Studio 2002.


The project files are saved as VS2003 project files so you will need to edit the following files in notepad.
Open the following files in a text editor and make these three changes:


For the solution file <code>src/Game_sdk.sln</code> change the first line from ...
*For the solution file <code>src/Game_sdk.sln</code> change the first line from:
<pre>
:<pre>Microsoft Visual Studio Solution File, Format Version 8.00
Microsoft Visual Studio Solution File, Format Version 8.00
</pre>
</pre>
... to ...
:to:
<pre>
:<pre>Microsoft Visual Studio Solution File, Format Version 7.00
Microsoft Visual Studio Solution File, Format Version 7.00
</pre>
</pre>


For the C++ project file <code>src/cl_dll/client_sdk.vcproj</code> change the version on line 4 from ...
*For the C++ project file <code>src/cl_dll/client_sdk.vcproj</code> change the version on line 4 from:
<pre>
:<pre>Version="7.10"
Version="7.10"
</pre>
</pre>
... to ...
:to:
<pre>
:<pre>Version="7.00"
Version="7.00"
</pre>
</pre>


And finnaly for the C++ project file <code>src/dlls/hl_sdk.vcproj</code> change the version on line 4 from ...
*For the C++ project file <code>src/dlls/hl_sdk.vcproj</code> change the version on line 4 from:
<pre>
:<pre>Version="7.10"
Version="7.10"
</pre>
</pre>
... to ...
:to:
<pre>
:<pre>Version="7.00"
Version="7.00"
</pre>
</pre>


Then open the <code>src/Game_sdk.sln</code> file in VS2002 and compile the solution. This process works. --[[User:Createdbyx|Created by: X]] 17:57, 1 Sep 2005 (PDT)
To verify that you have successfully made these changes, open the <code>src/Game_sdk.sln</code> file in VS2002 and compile the solution.


===Alternative===


A program on Code Source entitled "Visual Studio Converter 2.0"[http://www.codeproject.com/macro/vsconvert.asp] will also do the trick to convert from 2003 to 2002 VS file format.
A program on Code Source entitled [http://www.codeproject.com/macro/vsconvert.asp "Visual Studio Converter 2.0"] will also do the trick to convert from 2003 to 2002 VS file format.


== Related Articles ==
== See Also ==
*[[Microsoft Visual Studio 6.0 Usage]]
*[[Microsoft Visual Studio 6.0 Usage]]
*[[Compiling under VS2005]]
*[[Compiling under VS2005]]
[[Category:Tutorials]] [[Category:Programming]]

Revision as of 04:53, 18 April 2006

The Visual Studio project files provided in the Source SDK are VS2003 project files. This page details the changes to these files necessary to allow them to be opened and compiled in Visual Studio 2002.

Open the following files in a text editor and make these three changes:

  • For the solution file src/Game_sdk.sln change the first line from:
Microsoft Visual Studio Solution File, Format Version 8.00
to:
Microsoft Visual Studio Solution File, Format Version 7.00
  • For the C++ project file src/cl_dll/client_sdk.vcproj change the version on line 4 from:
Version="7.10"
to:
Version="7.00"
  • For the C++ project file src/dlls/hl_sdk.vcproj change the version on line 4 from:
Version="7.10"
to:
Version="7.00"

To verify that you have successfully made these changes, open the src/Game_sdk.sln file in VS2002 and compile the solution.

Alternative

A program on Code Source entitled "Visual Studio Converter 2.0" will also do the trick to convert from 2003 to 2002 VS file format.

See Also