2

There is a website hosted on IIS and we have done code changes which need to be deployed.

If only code behind changes have been done, then I think only the dll in the bin folder needs to be replaced. If only the aspx file is changed, then only that file needs to be replaced and not the dll. Is this correct? Also, should we build and replace the files or publish?

1
  • There's an easy way to find out... Commented Dec 11, 2018 at 9:02

1 Answer 1

2

If only code behind changes have been done, then I think only the dll in the bin folder needs to be replaced. If only the aspx file is changed, then only that file needs to be replaced and not the dll. Is this correct?

Yes this is correct. In addition the update for *.cs, config etc files is the same for aspx. (not recommended: but you can even modify them inside the server by notepad).

Also, should we build and replace the files or publish?

Actually if you just copy the dll, it does not matter - you can just build. see this question: build vs publish

Sign up to request clarification or add additional context in comments.

4 Comments

Do we need to change project config settings like dev or release mode?
@variable sorry it doesn't clear what you are asking, what do you mean by config setting?
When we build or publish a project, it can be set to either Debug or Release mode configuration setting. Thats what I was trying to say.
Oh, you are asking about Configuration Manager, it is better to make sure you are on Release (for optimization purposes: stackoverflow.com/a/27320618/6844481)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.