op2_sdk:projectsettings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
op2_sdk:projectsettings [2016/03/03 19:02] vagabondop2_sdk:projectsettings [2016/10/06 06:51] – [Copying Scenario DLL using a Post Build Event] vagabond
Line 11: Line 11:
   - Open your Project in Visual Studio.   - Open your Project in Visual Studio.
   - In the solution explorer, right click on your project -> Properties.   - In the solution explorer, right click on your project -> Properties.
-  - Click Configuration Properties -> General -> Target Name. Update the name as you see fit. +  - Set Configuration to All Configurations. 
 +  - Set Platform to All Platforms. 
 +  - Click Configuration Properties -> General -> Target Name. Update the name as you see fit. //(The Target Name should not include the file extension).//
  
 {{ op2_sdk:projectsettings:changing_project_target_name_visual_studio_2015.png }} {{ op2_sdk:projectsettings:changing_project_target_name_visual_studio_2015.png }}
Line 22: Line 24:
  
 Visual Studio uses macros in pre and post build events to simplify commands. For example ''$(TargetName)'' represents the target filename minus its extension. A list of macros can be found here: [[https://msdn.microsoft.com/en-us/library/c02as0cs.aspx]]. Visual Studio uses macros in pre and post build events to simplify commands. For example ''$(TargetName)'' represents the target filename minus its extension. A list of macros can be found here: [[https://msdn.microsoft.com/en-us/library/c02as0cs.aspx]].
 +
 +**Example Post Build copy commands:** 
 +
 +  * copy /Y "$(TargetPath)" "..\..\..\..\GameDownload\Outpost2\trunk\$(TargetFilename)"
 +  * copy /Y "$(ProjectDir)Ashes.map" "..\..\..\..\GameDownload\Outpost2\trunk\Ashes.map"
 +  * copy /Y "$(ProjectDir)multitekNoLavaWalls.txt" "..\..\..\..\GameDownload\Outpost2\trunk\multitekNoLavaWalls.txt"
 +
 +**Setting Post Build Event Instructions**
  
   - In the Solution Explorer, right click on the project you wish to include a post build event and click on properties.   - In the Solution Explorer, right click on the project you wish to include a post build event and click on properties.
 +  - Set Configuration to All Configurations.
 +  - Set Platform to All Platforms.
   - Click Configuration Properties -> Build Events -> Post-Build Event.   - Click Configuration Properties -> Build Events -> Post-Build Event.
   - Set the Command Line to perform a copy event.   - Set the Command Line to perform a copy event.
  • op2_sdk/projectsettings.txt
  • Last modified: 2016/11/03 17:40
  • by vagabond