2

Recently i had to change my csproj files for some C# projects. I noticed that in same the output path for debug or release was set something like:

<OutputPath>Bin/Release</OutputPath>
<OutputPath>Bin/Degug</OutputPath>

Usually i set these paths (how i also noticed that the Visual Studio is adding by default this paths) using the \ like below:

<OutputPath>Bin\Release</OutputPath>
<OutputPath>Bin\Debug</OutputPath>

Interesting fact is that it seems that both ways are working as expected since after runing a build both cases are giving the same output build results in file explorer.

So, is there a difference between these two definitios ? Can both of them be used, or is there a recommended one ?

I would go for the \ definition since this one seems to be also the default one given by Visual Studio, but still i think that having some other opinions about this is welcomed.

Clock
  • 974
  • 3
  • 17
  • 35
  • 2
    I guess either is fine http://stackoverflow.com/questions/7314606/get-directory-separator-char-on-windows-etc – Khanh TO Feb 08 '15 at 09:22

1 Answers1

1

Either way is fine as both Windows and Visual Studio treat / and \ the same

RobertEves92
  • 145
  • 12