tag:support.appharbor.com,2010-11-23:/discussions/problems/87289-content-file-int-the-bin-folder-not-foundAppHarbor: Discussion 2016-10-12T00:07:33Ztag:support.appharbor.com,2010-11-23:Comment/409551682016-10-10T16:29:40Z2016-10-10T16:29:40ZContent file int the bin folder not found<div><p>I just saw in the build file downloaded from appharbor that the
EmailTemplates folder is not created on the bin folder, is created
in the root folder but locally it creates the EmailTemplates folder
into the bin folder.</p>
<p>I don't know why this difference deploying the application.<br>
Thanks in advanced.</p></div>jesusmendoza25tag:support.appharbor.com,2010-11-23:Comment/409551682016-10-12T00:07:31Z2016-10-12T00:07:31ZContent file int the bin folder not found<div><p>Hi,</p>
<p>I suspect the difference between environments is related to the
way AppHarbor processes your build. In particular, AppHarbor will
set an <code>OutDir</code> parameter when running msbuild, which
will output the compiled app to a different directory than the
input directory. This is usually not an issue as web applications
will have <code>Content</code> resources copied as expected, but I
took a look at your application and it appears that the
<code>EmailTemplates</code> are associated with a regular library
project, rather than the web app itself.</p>
<p>If that's the case there are a couple of ways to approach
this:</p>
<ul>
<li>Reference the templates from your web api project (rather than,
or in addition to, just referencing them from the "Core" project).
You could for instance create a <a href="https://msdn.microsoft.com/en-us/library/ahkztdcb.aspx">folder
element</a> which references the files relatively in their current
location. This should ensure that the files are also copied to the
output directory for the published web project.</li>
<li>Copy the files from the root output directory to the published
web directory after the build -- take a look <a href="https://support.appharbor.com/discussions/problems/82415-resolve-bower-dependencies#comment_39951911">
at my response in this thread</a> for an example of a simple
<code>xcopy</code> post build event that does just that.</li>
</ul>
<p>While debugging it may be helpful to try and execute
<code>MsBuild</code> directly with the <code>OutDir</code>
parameter set as this will allow you to replicate AppHarbor's build
process more in this regard.</p>
<p>Let me know if this doesn't help address the issue, or there's
anything else I can help with!</p>
<p>Best,<br>
Rune</p></div>rune