How to make resource files in the bin folder of an ASP.NET deployed along with the assemblies?
<p>My ASP.NET application depends on a .NET assembly, which in turn expects a certain resource file to be found beside it. I.e. this how it loads this resource file:</p>

<pre><code>var folder = Path.GetDirectoryName(typeof(T).Assembly.Location);
var file = typeof(T).FullName + ".xaml";
var source = Path.Combine(folder, file);
var result = Load(source);
</code></pre>

<p>As you can see, it expects a certain xaml file near it.</p>

<p>In the ASP.NET csproj file, there is no reference to the .NET assembly, it is simply found in the bin folder.</p>

<p>When I run the ASP.NET application, the .NET assembly is copied from the ASP.NET project bin folder somewhere under <strong>Temporary ASP.NET Files</strong>, but only the DLL is copied, the XAML files is left behind.</p>

<p>What should I do to make the XAML file copied as well?</p>

<p>Thanks.</p>
