What I did:
I installed DNN 8 (fresh install, no upgrade) and copied a module project from DNN 7 to this installation. I opened the project in VS 2015, changed the depencies of DotNetNuke.dll and DotNetNuke.WebUtility.dll to the assemblies in the DNN8/bin folder. The project compiled without any errors or warnings.
Then I added the module to the Extensions and ran the necessary SQL scripts. I created a page, and added the module to the page. The result was a bit frustrating:
The file or assembly "DotNetNuke.HttpModules" or a dependency was not found. The system cannot find the file.
There is no dependency in my module to this assembly, but I guess it is somewhere in the DotNetNuke.dll.
The interesting thing is the way the system tries to find it, according to the debug tracing:
C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/modules_mymodule/19ccb8f7/3dc05abb/DotNetNuke.HttpModules.DLL.
C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/modules_mymodule/19ccb8f7/3dc05abb/DotNetNuke.HttpModules/DotNetNuke.HttpModules.DLL.
C:/DNN8/DesktopModules/MyModule/bin/DotNetNuke.HttpModules.DLL.
C:/DNN8/DesktopModules/MyModule/bin/DotNetNuke.HttpModules/DotNetNuke.HttpModules.DLL.
C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/modules_mymodule/19ccb8f7/3dc05abb/DotNetNuke.HttpModules.EXE.
C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/modules_mymodule/19ccb8f7/3dc05abb/DotNetNuke.HttpModules/DotNetNuke.HttpModules.EXE.
C:/DNN8/DesktopModules/MyModule/bin/DotNetNuke.HttpModules.EXE.
C:/DNN8/DesktopModules/MyModule/bin/DotNetNuke.HttpModules/DotNetNuke.HttpModules.EXE.
Any ideas? Why does it search in C:/DNN8/DesktopModules/MyModule/bin instead of C:/DNN8/bin? (Where it could find it ;-))
Happy DNNing!
Michael