Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild order issue in an ASP.net Web Site
    primarykey
    data
    text
    <p>I had a Web Application that used to work just fine but I needed to use VB and C# and that's why I started the project as a Web Site.</p> <p>I created two subfolders into the <code>App_Code</code> folder and I wrote this in the <code>web.config</code> file:</p> <pre><code>&lt;codeSubDirectories&gt; &lt;add directoryName="VB_Code" /&gt; &lt;add directoryName="CS_Code" /&gt; &lt;/codeSubDirectories&gt; </code></pre> <p>Then, I placed my Entity Data Model in the root of the App_Code folder. This way, I received the follow warning when I tried to compile:</p> <p><code>Namespace or type specified in the Imports 'ProductizationModel' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.</code></p> <p>and a lot of errors related with this fact: the EDM was not builded and its namespace didn't exist yet. This errors come from classes that access to the database through my EDM and that are declared inside the VB_Code folder.</p> <p>Then, after research, I find that VS follows a build order and that the subfolders inside the <code>App_Code</code> are builded before the files in the root.</p> <p>I've created one more subfolder called <code>EF_Code</code> and declared it in the <code>web.config</code> file:</p> <pre><code>&lt;codeSubDirectories&gt; &lt;add directoryName="EF_Code"/&gt; &lt;add directoryName="VB_Code" /&gt; &lt;add directoryName="CS_Code" /&gt; &lt;/codeSubDirectories&gt; </code></pre> <p>but I'm still receiving the same warnings and errors.</p> <p>Anybody can light me?</p> <p>Thanks a lot,</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload