title: Nancy looks for views in wrong project
body: <p><strong><h3>Edit</h3></strong></p>
  
  <p>I just downloaded the source code of the tutorial project from GitHub. When I build and run the project, I see that the <code>Website/Modules/</code> folder is copied into the <code>bin/Debug</code> folder of the <code>Service</code> project. But this does not happen when I build my <code>Service</code> project. </p>
  
  <p>What could be the reason?</p>
  
  <hr>
  
  <p>I am following the tutorial in <a href="https://blog.sstorie.com/self-hosting-an-angular-2-website-in-a-windows-service/" rel="nofollow noreferrer">this link</a>.</p>
  
  <p>I have completed the part until the <code>index.html</code> is added and should show <code>Nancy is working!</code> when the webpage is loaded.</p>
  
  <p>I had to change the <code>ViewLocationConventions</code> to</p>
  
  <pre><code>$"../../../Service.Website/Website/Modules/{context.ModuleName}/views/{viewName}"
  </code></pre>
  
  <p>Only then everything works fine with Nancy 1.x version. Why doesn't it work when I use</p>
  
  <pre><code>$"Website/Modules/{context.ModuleName}/views/{viewName}"
  </code></pre>
  
  <p>like in the tutorial?</p>
  
  <p>And when I use Nancy 2.x, it cannot find the view file at all. No matter what I set <code>ViewLocationConventions</code> to.</p>
  
  <p>i.e., it still looks for the <code>Website/Modules/Root/view/index.html</code> file in the <code>Service</code> project.</p>
  
  <p>Any other workaround, other than moving the view files itself to the <code>Service</code> project?</p>
  
  <hr>
  
  <p><strong>Quick background of the tutorial:</strong></p>
  
  <p>The solution has 2 projects <code>Service</code> and <code>Service.Website</code> as shown below.</p>
  
  <ol>
  <li><code>Service</code> is a Topshelf service that hosts a server that runs the web project</li>
  <li><code>Service.Website</code> is a web project using Owin and Nancy</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/Bcy5P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bcy5P.png" alt="enter image description here"></a></p>