The problem will be probably in the Publish setting. Please check if the option Precompile during publishing is selected. You can find the option here - Right click on the Project - Publish Web Site - section Settings - subsection File Publish Options - option Precompile during publishing.
VS2012 Publish Web Site dlls instead of cs-files
-
10-10-2022 - |
Question
I have a simple ASP.NET project that I want to publish. I right-click on the project and press "Publish Web Site", however this generates all my .cs files to the selected folder, previously I've been getting dll files in my bin folder instead of the .cs files.
What am I doing wrong?
Solution
OTHER TIPS
To publish your website in one DLL:
- In Visual Studio, open a web application project.
- Right click the project name in Solution Explorer, and then choose Publish.
- Select the Settings tab.
- Expand File Publish Options, and then select Precompile during publishing. Click Configure.
Refrence: https://msdn.microsoft.com/en-us/library/hh475319(v=vs.110).aspx
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow