Hi. I'm trying to create new theme for DNN. I'm totally new to DNN and I was following these instructions: https://christoc.com/Tuto.../All-Tutorials/aid/8
However when I pressed "build" it gave me error:
Error CS0246 The type or namespace name 'DotNetNuke' could not be found (are you missing a using directive or an assembly reference?) ProjectName C:\Websites\...\PopupSkin.ascx.cs 14 Active
What am I doing wrong and how to fix it?
P.S. DNN extension is installed in Visual Studio, I switched mode from debug to release. I'm using Windows 10, Visual Studio 2019, DNN 9.4.1. Full path to DNN website is "C:\Websites\first_dnn_website\dnndev.me".
I tried to move it to "C:\Websites\dnndev.me" and update Visual Studio, but it didn't help.
Posted By Joe Craig on 13 Nov 2019 12:50 PM You probably need to add a reference to the DotNetNuke.dll found in your installation's bin folder.
Didn't help.
Posted By Chris Hammond on 13 Nov 2019 02:22 PM My instructions are pretty specific about the paths to use. If you diverge from those paths, then references start to get funky
I followed your instructions precisely, but I still stumbled upon same complile error. What did work for me is I scrolled down and after multiple errors about DotNetNuke namespace there was warning (WARNING, CARL! NOT EVEN ERROR!) about that DotNetNuke.dll was compiled using .Net Framework 4.7.2 (DNN version was 9.4.x) and project's target .Net Framework version is 4.5.x. So I needed to change that in project settings. Also I finally stumbled upon your instruction about fixing DNN theme creation errors. Since it happens all the time, you should really include that fix into installation instruction. Before I stumbled upon that video I wasted many hours on research.
Just in case someone needs that fix: https://www.youtube.com/w...0spov4It4Z8fswIbNZFd
First 5 minutes are about wrong path "C:\website\..." instead of "C:\websites\..." and how to cut/paste folder in Windows, second half of the video is actual fix.
This worked for me. I needed to add references for DotNetNuke.dll and Microsoft.ApplicationBlocks.Data.dll.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.