   [.net] C# Template
  Hi,Anyone knows how do I change the .obj directory of a C#/Xna project? I read it should be done using project templates, but I found no explanation about how.Thank you,   
  Why would you need to do this?   ;  Hi,I would like to change my .obj file and I read it must be done like that. I think it is really annoying that my intermediate files are together with my code.Thank you,   ;  The directory is controlled by the BaseIntermediateOutputPath property in your csproj file. Edit the .csproj file with an editor and add something like the following to the proper PropertyGroup (probably the one without the Condition attribute):<BaseIntermediateOutputPath>..\MyObjDir</BaseIntermediateOutputPath>More info on properties you can set: http://msdn.microsoft.com/en-us/library/bb629394.aspxTo make this the default, yes, you need to modify the project template. It's not very difficult, though. For VS2010 it works like this:- Locate the project template zip file, for example at Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\ClassLibrary.zip- Unpack it somewhere- modify the files as needed, ie. for example change the classlibrary.csproj file to include the property I mentioned above- modify the vstemplate file to give the template a proper ID (<TemplateID>) and name (e.g. <Name>My Custom Project</Name>)- put the files into a new zip file (e.g. MyProject.zip)- add the new zip file to the template folder (see above)- reset visual studio by calling devenv /setup from Microsoft Visual Studio 10.0\Common7\IDE- you should now be able to select your new project type from the File=>New Project window Be sure to make backups etc. before messing with the files.But then again, I never found the obj folder to be a problem. If I really feel the need to clean up the working directory, I use the proper command from my versioning system (e.g. "git clean -xfd" or "git clean -Xfd") which wipes out anything that is not part of the repository. Still it's nice to now the properties, especially if you use msbuild for automated builds.[Edited by - VizOne on May 21, 2010 9:48:27 AM]