title: How to create folder in mvc solution directory so that it is included in project?
body: <p>I am new in mvc and c# and I can't solve following problem:</p>
  
  <p>I am trying to create a folder named "Items" in solution folder.
  I have tryed to use CreateDirectory method: </p>
  
  <pre><code>Directory.CreateDirectory("~/Images");
  </code></pre>
  
  <p>But it didn't work for me - folder wasn't created ..</p>
  
  <p>Partly working solution was to create a folder by :</p>
  
  <pre><code>Directory.CreateDirectory(Server.MapPath("~/Images"));
  </code></pre>
  
  <ul>
  <li>"Items" folder was created, but it is not included in the solution:</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/5LxHy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5LxHy.jpg" alt="enter image description here"></a></p>
  
  <p>How to create folder in solution directory so that it is included in project ?</p>
  
  <p>(I needs to by done by code not by hand)</p>