0

I want to publish the Asp.Net MVC application. But when i publish the application, the code files are not converted as dll. The published folder contains all .cs files.

Can you please let me know how to publish the project without .cs files?

Melody
  • 1,203
  • 2
  • 17
  • 28

1 Answers1

2

For Visual Studio 2012:

After open Publish Web window, go to "Settings" tab.

Here you find "File Publish Options"

Check the "Precompile during publishing" checkbox

I think now you can publish this successfully

For Visual 2010:

Check this link : Why Visual Studio 2010 publish website with source code?

Community
  • 1
  • 1
Bappi Datta
  • 1,360
  • 8
  • 14
  • Hi, I am not able to find the "File Publish Options" in setting menu. Can you please let me how to check this? – Melody May 14 '13 at 11:08
  • do you use Visual Studio 2012? – Bappi Datta May 14 '13 at 11:09
  • 1
    Oh i am sorry, this solution is for Visual Studio 2012. I think this link will be helpful for you. http://stackoverflow.com/questions/8632794/why-visual-studio-2010-publish-website-with-source-code – Bappi Datta May 14 '13 at 11:14