Here we will discuss how we will resolve the issue which comes in visual studio 2015. Recently I was trying to develop a provider hosted add-in for SharePoint online site using visual studio 2015. In the Asp.Net web form project, I have added an App_Code folder where I have added my class file. But when I was trying to access the code file in Default.aspx page or any other page, it was not accessible and will give an error like below:
the type or namespace name ‘app_code’ does not exist in the namespace in visual studio 2015
Also, you can read:
– Steps to create Azure WebJobs for SharePoint online and deploy in Microsoft Azure
Right click on the Code file (which is inside App_Code folder), then set Build Action to Compile like below.
Now if you will try to access, it will be accessible. Hope this will be helpful.
-: FREE PDF e-Book Download :-
51 JSOM Examples in SharePoint Online
You May Also like the Following SharePoint Online Tutorials: