Move intermediates directory on C# projects in Visual Studio -


I'm currently in the process of referring and cleaning a medium-sized (15 ISH projects) visual studio solution. The solution includes projects both in C ++ and C #.

I'm eager to keep things as streamlined as output - separating anything compiler from source code, because it helps in reversal (okay, I can make files Ask to ignore, but I still feel confused).

The output I want to get is as follows:

  SolutionDir / SolutionDir / src / Project 1 / {code here} SolutionDir / int / project1 / configuration / {. Obj files and other composite compiler junk here} SolutionDir / bin / project1 / configuration / {fun stuff goes here}  

It looks trivial with C ++ projects because both of you output and Specify the intermediate directory. Even though with C #, it seems impossible to move the Objs directory through at least the Visual Studio 2008 user interface?

After digging something, I

  & lt; Intermediate output path & gt; .. \. \ Integer \ ProjectName \ debug \ & lt; / IntermediateOutputPath & gt; C # .csproj  

For this to work, it seems it is true that intermediates end there, but a directory 'obj' And under it a configuration directory (such as 'debug') and then the 'TempPE' directory is created in the old space - all of which are empty.

This is not really a big deal, but it would be good to know the reason of this behavior and if possible, one way to fix it.

Thank you in advance!

I'm looking for a solution for this

"CleanSrcDir.bat" name One of the bat files anywhere (I opened in my project path) with the following content:

 After that, add something similar to the post-build event of the C # project:  
 Code> $ (ProjectDir) CleanSrcDir.bat $ (ProjectDir)  
P> (It assumes that you have placed your bat file in the project directory.) Then post-build settings Number of "always", and have you.

It's a little laugh, but make sure the version control problem is resolved.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -