complied application without '.cs' files

Mateusz Żebrowski asked on October 10, 2014 15:38

Hi, My client want to have working Kentico on production server, but there shouldn't be any '.cs' file. When we install Kentico we can find those files so I wonder what should I do to meet my client's request. Is it just publish solution in VS and copy files to server?

Correct Answer

Brenden Kehren answered on October 10, 2014 19:26

You need to use a web project vs. a web site if you want a precompiled website on your server. This is done when you initially install/create the website using the Kentico Installation Manager.

Any particular reason they don't want the .cs files out there?

0 votesVote for this answer Unmark Correct answer

Recent Answers

Mateusz Żebrowski answered on October 11, 2014 22:03

No, they just don't want. I suppose it may be a little dangerous if someone who shouldn't will try to change files. So please tell me one more thing. If I wish to add new web part to site installed like you describe, what should I do. I assume I should compile it and then it should be somewhere in bin directory, but I'm not sure in which .dll?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 13, 2014 13:47

If they are that concerned with users modifying .cs files on their production server they might need to look into who is working for them, but thats a different story.

If I remember right you need to add that webpart locally, recompile it and deploy the site again. The code would reside in the dll typically named the name of the project.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.