Not all folders in App_Code are compiling

  • Thread starter Thread starter matt.merchant
  • Start date Start date
M

matt.merchant

All,

When publishing a site with the "Used Fixed Naming and Single Page
Assemblies" option checked, only one of my two App_Code folders are
compiled into .DLL's. The original code (DotNetNuke portal) included
the one folder which is compiling, the folder I added is not being
compiled.

Is there a .config file that I have to modify for the compiler to
recognize the second folder.

Here is the output from my compilation:

------ Build started: Project: http://localhost/DNN4/, Configuration:
Debug .NET ------
Pre-compiling Web Site

Building directory '/DNN4/App_GlobalResources/'.
Building directory '/DNN4/App_Code/Reports/'.
Building directory '/DNN4/App_Code/'.
Pre-compilation Complete
------ Publish started: Project: http://localhost/DNN4/, Configuration:
Debug .NET ------
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

The /DNN4/App_Code/ folder should also include a /BugButcherTest folder
and associated DLL, but does not.

Thoughts / comments appreciated.

Thanks -

Matt
 
Found the solution...

Each folder (and subfolder) in App_Code must be entered in the
<compilation><codeSubDirectories> section in the web.config file.

Matt
 
Back
Top