I want to publish a mvc web project on visual studio IDE. In the project, here is one class in the AppCode folder. But after publish / build the project, there is no .dll file for this folder. As a result, the folder did not compile.
I clicked Publish and selected Configuration is release as a settings of publish. I build all solution files more than one time.
I expected .dll file for AppCode classes but after publishing AppCode folder created and it includes .cs file. As a result there is no dll file for this folder.
If you want to complie the AppCode classes, I suggest you could try to follow below steps:
1) Right click on your class file in App_Code folder.
2) Click on properties.
3) Change Build Action to Compile
4) Build your App.
Then it will build into your project.dll, since asp.net will combine all the codes into one dll.
Like below:
The Te is the App_Code class name.