Quantcast
Viewing latest article 10
Browse Latest Browse All 485

New Post: Error CS0246 and CS0103

After installing Visual Studio Community 2015, I'm gettings errors CS0246 and CS0103.

246 = The type or namespace name 'DotNetNuke' could not be found (are you missing a using directive or an assembly reference?).
103 = The name 'xxx' does not exist in the current context.

The weird thing is that everything works as it should. Intellisense autocompletes the DNN variables and functions and Builds are succesful and the module still works fine.
It is only a bit inconvenient because if there is a 'real' error, you have to scroll through all the 246 and 103 errors to find it.

I dont think this is an error in the templates, but it has something to do with a difference in DotNet versions or something? Visual Studio did install version 4.5.2 and 4.6 of DotNet.

The problem occured on both my work an home PC, so it is not a single case.
Changing the target framework in the module properties does not have any effect.

I havent found a solution as of yet, but if I do I will post it here. Or if someone else has a fix I would gladly hear it.

Erwin

Viewing latest article 10
Browse Latest Browse All 485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>