title: Is there a way to redirect all the folders created during build time of a .NET Core project
body: <p>Whenever we create a .NET Core project, there are "bin" &amp; "obj" folders which will be created during the build time. Is there a way to redirect "obj" folder. I had used the following in the .csproj,but that didn't help</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp2.1&lt;/TargetFramework&gt;
      &lt;GenerateAssemblyInfo&gt;false&lt;/GenerateAssemblyInfo&gt;
      &lt;AppendTargetFrameworkToOutputPath&gt;false&lt;/AppendTargetFrameworkToOutputPath&gt;
      &lt;OutputPath&gt;C:\Temp&lt;/OutputPath&gt;
      &lt;AssemblyName&gt;ConsoleApp&lt;/AssemblyName&gt;
      &lt;IntermediateOutputPath&gt;$(OutputPath)&lt;/IntermediateOutputPath&gt;
      &lt;OutDir&gt;$(OutputPath)&lt;/OutDir&gt;
   &lt;/PropertyGroup&gt;
  
   &lt;Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(OS)' == 'Windows_NT'"&gt;
     &lt;Exec Command="rmdir /S /Q obj" /&gt;
   &lt;/Target&gt;
  
   &lt;Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(OS)' != 'Windows_NT'"&gt;
     &lt;Exec Command="rm -r obj" /&gt;
   &lt;/Target&gt;
  
  &lt;/Project&gt;
  </code></pre>