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 a 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 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
– Create new team project Team Foundation Server (TFS) Visual studio 2015
– Create Custom Action Group using Visual Studio 2015 for SharePoint 2016
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.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.