<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alliedmods.net/index.php?action=history&amp;feed=atom&amp;title=Category%3ASourcemod_visualstudio</id>
	<title>Category:Sourcemod visualstudio - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alliedmods.net/index.php?action=history&amp;feed=atom&amp;title=Category%3ASourcemod_visualstudio"/>
	<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;action=history"/>
	<updated>2026-04-18T06:52:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6824&amp;oldid=prev</id>
		<title>Daedilus: Removing all content from page</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6824&amp;oldid=prev"/>
		<updated>2009-01-16T06:39:35Z</updated>

		<summary type="html">&lt;p&gt;Removing all content from page&lt;/p&gt;
&lt;a href=&quot;https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;amp;diff=6824&amp;amp;oldid=6823&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Daedilus</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6823&amp;oldid=prev</id>
		<title>Daedilus: /* Before We Begin */</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6823&amp;oldid=prev"/>
		<updated>2009-01-16T06:26:51Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Before We Begin&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:26, 16 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This tutorial will walk you through the process of creating a Custom Build Rule in Visual Studio for SourcePawn. Once you have completed&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This tutorial will walk you through the process of creating a Custom Build Rule in Visual Studio for SourcePawn. Once you have completed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the following steps, you will be able to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;setup &lt;/del&gt;a Custom Build Rule for any tool that you may wish to integrate into Visual Studio.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the following steps, you will be able to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;create &lt;/ins&gt;a Custom Build Rule for any tool that you may wish to integrate into Visual Studio.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note: .rules files are compatible with both, VS 2005 Pro and VS 2008 Pro (These are the only versions I have to test with.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note: .rules files are compatible with both, VS 2005 Pro and VS 2008 Pro (These are the only versions I have to test with.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Setting the path to the SourcePawn Compiler Using Environment Variables==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Setting the path to the SourcePawn Compiler Using Environment Variables==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Daedilus</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6822&amp;oldid=prev</id>
		<title>Daedilus: /* Building SourceMod Plugins with Visual Studio */</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6822&amp;oldid=prev"/>
		<updated>2009-01-16T06:26:04Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Building SourceMod Plugins with Visual Studio&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:26, 16 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Date: January 15th, 2009&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Date: January 15th, 2009&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Before We Begin==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Before We Begin==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Daedilus</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6821&amp;oldid=prev</id>
		<title>Daedilus: New page: ===Building SourceMod Plugins with Visual Studio===  By: Cleveland “~~~” Raymond  Date: January 15th, 2009   ==Before We Begin== This tutorial will walk you through the process of crea...</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Category:Sourcemod_visualstudio&amp;diff=6821&amp;oldid=prev"/>
		<updated>2009-01-16T06:25:07Z</updated>

		<summary type="html">&lt;p&gt;New page: ===Building SourceMod Plugins with Visual Studio===  By: Cleveland “~~~” Raymond  Date: January 15th, 2009   ==Before We Begin== This tutorial will walk you through the process of crea...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Building SourceMod Plugins with Visual Studio===&lt;br /&gt;
&lt;br /&gt;
By: Cleveland “[[User:Daedilus|Daedilus]]” Raymond&lt;br /&gt;
&lt;br /&gt;
Date: January 15th, 2009&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Before We Begin==&lt;br /&gt;
This tutorial will walk you through the process of creating a Custom Build Rule in Visual Studio for SourcePawn. Once you have completed&lt;br /&gt;
&lt;br /&gt;
the following steps, you will be able to setup a Custom Build Rule for any tool that you may wish to integrate into Visual Studio.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
To learn more about custom build rules, go to http://msdn.microsoft.com/en-us/library/03t8bzzy.aspx &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
In order for all of us to be able to share our projects, it is important that we use the same Custom Build Rules. I have provided the following&lt;br /&gt;
&lt;br /&gt;
link to the [http://members.cox.net/cleveraymond/SourceModVS/SourcePawn.rules SourcePawn for Visual Studio] Custom Build Rule file that was created during the process of making this tutorial. Save the file to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Visual Studio Path&amp;gt;\VC\VCProjectDefaults and complete the tutorial. This link, [http://members.cox.net/cleveraymond/SourceModVS/SourceModVS.zip MyPlugin], is where you can grab my test project.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Note: .rules files are compatible with both, VS 2005 Pro and VS 2008 Pro (These are the only versions I have to test with.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting the path to the SourcePawn Compiler Using Environment Variables==&lt;br /&gt;
Bring up the “System Properties” dialog and press the “Advanced” tab and then press the “Environment Variables” button.&lt;br /&gt;
&lt;br /&gt;
(To open the “System Properties” dialog, right click “My Computer”, choose “Properties” from the menu).&lt;br /&gt;
&lt;br /&gt;
[[Image:Step1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Press the “New” button in the “System Variables” group.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step2.jpg]]&lt;br /&gt;
&lt;br /&gt;
Name the variable, “SourcePawn” and set value to the path to spcomp.exe (without the trailing ’\’)&lt;br /&gt;
&lt;br /&gt;
ex. G:\Valve\HLServer\orangebox\dod\addons\sourcemod\scripting &lt;br /&gt;
&lt;br /&gt;
[[Image:Step3.jpg]]&lt;br /&gt;
&lt;br /&gt;
If you want to be able to use spcomp from cmd.exe, add the newly created environment variable, '''%SourcePawn%''', to the Path.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step4.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Creating the Visual Studio Solution==&lt;br /&gt;
To create a blank Visual Studio Solution, select File-&amp;gt;New-&amp;gt;Project…&lt;br /&gt;
&lt;br /&gt;
[[Image:Step5.jpg]]&lt;br /&gt;
&lt;br /&gt;
Name the solution and press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step6.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding the Visual Studio Project for SourceMod to the Solution==&lt;br /&gt;
To add the Visual Studio Project for SourceMod to the Solution, right click the Solution, Add-&amp;gt;New Project…&lt;br /&gt;
&lt;br /&gt;
[[Image:Step7.jpg]]&lt;br /&gt;
&lt;br /&gt;
Create a Win32 C++ Project. This will be used as the base for our SourceMod Plugin Project and press OK.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step8.jpg]]&lt;br /&gt;
&lt;br /&gt;
Choose “DLL” for the application type and check “Empty project” under additional options and press Finish.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step9.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuring the Visual Studio Project for SourceMod==&lt;br /&gt;
To configure the Visual Studio Project for SourceMod, right click the Project, and choose “Properties” from the menu.&lt;br /&gt;
&lt;br /&gt;
Note: I removed “Header Files” and “Resource Files” filters since they are no longer needed. You can setup your own folder filters to how you see fit.&lt;br /&gt;
&lt;br /&gt;
(I modified my menu graphic to reduce the image size. “Properties” will be found at the bottom of the context menu)&lt;br /&gt;
&lt;br /&gt;
[[Image:Step10.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the Configuration to “All Configurations” and set the properties for “General” settings as defined below. Under&lt;br /&gt;
&lt;br /&gt;
“Project Default”, make sure the “Configuration Type” is set to “Utility”. This will keep us from building a DLL.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step11.jpg]]&lt;br /&gt;
&lt;br /&gt;
'''(The next steps are optional. You can skip this and go to the next section, “Creating a Custom Build Rule for SourcePawn“.)'''&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Press the “Configuration Manager…” button located at the top right and edit the “Active solution configuration”.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step12.jpg]]&lt;br /&gt;
&lt;br /&gt;
Remove the “Debug” configuration and rename the “Release” configuration to “Build”.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step13.jpg]]&lt;br /&gt;
&lt;br /&gt;
Edit the “Active solution platform”.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step14.jpg]]&lt;br /&gt;
&lt;br /&gt;
Rename the “Win32” platform to “SourcePawn”.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step15.jpg]]&lt;br /&gt;
&lt;br /&gt;
Edit the project’s configuration.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step16.jpg]]&lt;br /&gt;
&lt;br /&gt;
Remove the “Debug” configuration and rename the “Release” configuration to “Build” (Yes we already did this for the solution, not the project).&lt;br /&gt;
&lt;br /&gt;
[[Image:Step17.jpg]]&lt;br /&gt;
&lt;br /&gt;
We are finished setting up the Visual Studio Project. Now on to configuring the custom build options for SourcePawn (Unfortunately you can’t edit the project’s platform to change its name).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Creating a Custom Build Rule for SourcePawn==&lt;br /&gt;
To create a Custom Build Rule for SourcePawn, right click the Project, and choose “Custom Build Rules…” from the menu&lt;br /&gt;
&lt;br /&gt;
[[Image:Step18.jpg]]&lt;br /&gt;
&lt;br /&gt;
Press the “New Rule File…” button.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step19.jpg]]&lt;br /&gt;
&lt;br /&gt;
Fill out the “New Rule File” dialog with the settings below and press the “Add Build Rule…” button.&lt;br /&gt;
&lt;br /&gt;
(Note: The default path for C++ .rules files is, “&amp;lt;Visual Studio Install Path&amp;gt;\VC\VCProjectDefaults”)&lt;br /&gt;
&lt;br /&gt;
[[Image:Step20.jpg]]&lt;br /&gt;
&lt;br /&gt;
Fill out the “Add Custom Build Rule” dialog with the settings below and press the “Add Build Rule…” button. The “Command Line”&lt;br /&gt;
&lt;br /&gt;
property has three entries separated by newlines. (Note: this is where we use the environment variable we made in the beginning)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''$(SourcePawn)\spcomp.exe &amp;quot;$(ProjectDir)[InputFile].sp&amp;quot; [CmdLine]'''&lt;br /&gt;
&lt;br /&gt;
'''if exist &amp;quot;$(ProjectDir)[InputFile].smx&amp;quot; move &amp;quot;$(ProjectDir)[InputFile].smx&amp;quot; &amp;quot;$(OutDir)\[OutputFile].smx&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
'''if exist &amp;quot;$(ProjectDir)[InputFile].asm&amp;quot; move &amp;quot;$(ProjectDir)[InputFile].asm&amp;quot; &amp;quot;$(OutDir)\[OutputFile].asm&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you have filled in the settings, press the “Add Property…” button.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step21.jpg]]&lt;br /&gt;
&lt;br /&gt;
Fill out the “Add User Property” dialog with the settings below. This will allow us to specify the output .smx file name In the project properties dialog.&lt;br /&gt;
&lt;br /&gt;
The “Description” property is set to: '''Specifies the input (.sp) file relative to the project directory. Do not include the file extension in the name.'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Step22.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add another property. This will allow us to specify the output .smx file name In the project properties dialog.&lt;br /&gt;
&lt;br /&gt;
The “Description” property is set to: '''Specifies the output (.smx) file name. Do not include the file extension in the name.'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Step23.jpg]]&lt;br /&gt;
&lt;br /&gt;
Let’s add one more property to handle additional command line options.&lt;br /&gt;
&lt;br /&gt;
The “Description” property is set to: '''Specifies additional command line arguments.  ex. -a'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Step24.jpg]]&lt;br /&gt;
&lt;br /&gt;
Keep pressing the ok buttons until you are back to the main window.&lt;br /&gt;
&lt;br /&gt;
Congratulations you have setup SourcePawn to work with Visual Studio.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding Syntax Highlighting for .sp and .inc Files==&lt;br /&gt;
To add syntax highlighting, go to Tools-&amp;gt;Options.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step25.jpg]]&lt;br /&gt;
&lt;br /&gt;
Select Text Editor-&amp;gt;File Extension and add .inc and .sp to the “Extension” list. Choose “Microsoft Visual C++” for the editor.&lt;br /&gt;
&lt;br /&gt;
Don’t close the “Options” dialog cause we need to tell Visual Studio where to find SourceMod’s .inc files.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step26.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: You will have to restart Visual Studio for the highlighting to take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Enable #include &amp;lt;file&amp;gt; Navigation==&lt;br /&gt;
Visual Studio will try to open any included file if you right click the file name and choose “Open Document &amp;lt;file name&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step27.jpg]]&lt;br /&gt;
&lt;br /&gt;
However, Visual Studio doesn’t know where to look for  SourceMod’s .inc files. So, let’s tell Visual Studio where to find them. Select Projects and&lt;br /&gt;
&lt;br /&gt;
Solutions-&amp;gt;VC++ Directories and then select “Include files” from the “Show directories for:” combo. Press the ‘folder’ button and enter the path.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step28.jpg]]&lt;br /&gt;
&lt;br /&gt;
Note: Visual Studio will not navigate to an include file without the file extension. ex. #include &amp;lt;sourcemod&amp;gt; cannot be found.&lt;br /&gt;
&lt;br /&gt;
This is because we are piggy backing on a Visual Studio C++ Project and Visual Studio only knows how to open .h and .hpp files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Visual Studio will open the include file if you include the file extension: ex. #include &amp;lt;file.sp&amp;gt; or #include &amp;lt;sourcemod.inc&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SourcePawn Custom Build Project Settings==&lt;br /&gt;
Reopen the project’s properties and check out the new “SourcePawn” options. The “Input File” and “Output File”, default to the project’s name. This means that I would have&lt;br /&gt;
&lt;br /&gt;
to have a MyPlugin.sp file in the project’s directory and the build would produce a MyPlugin.smx file in the location defined Configuration Properties-&amp;gt;General: Output Directory.&lt;br /&gt;
&lt;br /&gt;
[[Image:Step29.jpg]]&lt;br /&gt;
&lt;br /&gt;
Happy Coding, Daedilus…&lt;/div&gt;</summary>
		<author><name>Daedilus</name></author>
		
	</entry>
</feed>