History: Visual Studio Debugging Settings - Shoggoth
Source of version: 4 (current)
Copy to clipboard
%prevogre%
{maketoc}
!!Help! It doesn't work when I run my exe from Visual Studio!
Do not worry. All you have to do is adjust your project properties:
{img src="img/wiki_up/Properties.jpg" alt="properties.jpg"}
Navigate to the debugging section and enter the following values in ''Command'' and ''Working Directory'':
{img src="img/wiki_up/Debugging.jpg" alt="debugging.jpg"}
Now it should work!
!!Help! It still doesn't work!
So, where is your executable?
If it's being copied to another location, you can't use the {MONO()}$(OutDir){MONO} variable.
If you use the samples directory of the OgreSDK, you need to change the values in ''Command'' and ''Working Directory'' to the following:
{MONO()}Command : $(OGRE_HOME)\bin\$(ConfigurationName)\$(ProjectName).exe
Working Directory: $(OGRE_HOME)\bin\$(ConfigurationName){MONO}
You also need to setup your project to copy your executable to this location.
Open up {MONO()}Project - Properties - Build Events - Post Build Events{MONO}:
{img src="img/wiki_up/Postbuildevent.jpg" alt="Postbuildevent.jpg"}
The command line to enter is __{MONO()}copy "$(OutDir)\$(TargetFileName)" "$(OGRE_HOME)\bin\$(ConfigurationName)"{MONO}__.