hungrycoder
hungrycoder

Reputation: 507

Is it necessary to deploy .cs and designer.cs files in asp.net web application

Is it Necessary to Deploy the .cs and .designer.cs files of .aspx page while transferring the files through FTP to Deployment sever? Or Does the application dll can takes care of it?

Upvotes: 3

Views: 4527

Answers (2)

Erwin
Erwin

Reputation: 4817

No that isn't necessary, the .cs and .designer.cs files are compiled into a .dll file for deployment.

More info can be find in this article:

Determining What Files Need to Be Deployed (C#)

Upvotes: 6

Icarus
Icarus

Reputation: 63962

The DLLs and the aspx pages should be the only thing you need to deploy. .designer and .cs files are for you to continue development.

Upvotes: 5

Related Questions