Simple Steps to Convert Code Behind Files or Class Files Into One DLL File
A quick tutorial to keep your application secure by creating a package that does not explicitly contain code behind files or class files.
Join the DZone community and get the full member experience.Join For Free
a few days back, i got a requirement from a client saying that they needed a package of the project which should not explicitly contain any code behind files or class files, because their code had some confidential data and they didn't want to explicitly transfer it. you can find the solution to our problem below.
first, develop your asp.net web application. once everything is ready for deployment just go the option build->publish web site like the screen shot given below.
give any profile name appropriate to the project.
here, select the option as "web deploy package" like below:
here's a very important step: just click the "file publish options" drop down menu and tick the box that says "precompiled during publishing".
above is the option which converts into dlls.
verify the location where you want to store the files.
finally click the publish button below:
that's it. after a few minutes, it will generate the files required and put it like the below structure.
all the code behind files were converted to the app_code.dll, since we have placed some other class files in the app_code folder of the project. even if we had plenty of code files it will just convert into this one app_code.dll file.hope the above information was useful! kindly share your feedback or thoughts.
Opinions expressed by DZone contributors are their own.