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?
In Solution Explorer, right-click your project and choose Publish. If you're publishing this web app for the first time, next you see the Publish wizard. Visual Studio filters the list of destinations depending on the type of web app.
You can easily open a DLL file in Visual Studio the same way you would any other file. To do so, click File in the menu bar at the top, followed by Open. Then click File and select the DLL file you want to open and click Open. This will open the DLL file in a new Resource Editor window.
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.
To publish your website in one DLL:
Refrence: https://msdn.microsoft.com/en-us/library/hh475319(v=vs.110).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With