cms bin folder

lawrence whittemore asked on January 5, 2023 15:27

I have updated my local files to the latest hotfix on 13 and have noticed there are a bunch of differences in the bin folder. Is it best to delete out the whole bin folder and replace it completely with the new one?

Recent Answers


Brenden Kehren answered on January 5, 2023 17:19

When you applied the hotfix, did it properly update the /LIB directory for the CMS? I'd start there and see what the version numbers are. Technically speaking, when you build the CMS, it copies the /LIB directory files into the /CMS/bin directory. So if you did a clean or rebuild, that should clean the CMS up assuming your /LIB directory has the proper files in it.

For the MVC project, simply referencing the proper nuget package and rebuilding will resolve that issue.

0 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on January 5, 2023 17:59

Sorry, i was jsut speaking about the CMS for this, and the difference between what was on the live server (which was at version like 83) and now my local which is at 95. The bin folders are very different with the live site having a bunch of files the local doesn't. So I wasn't sure if I should just delete the live bin or just add to it?

hope that makes more sense

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 5, 2023 18:02

There are quite a few changes but the main thing is if you do a build/rebuild locally and you can get the CMS to run, you should be good. Regarding production, I'd just take a copy of the bin directory with all those other dlls in it and keep it for safe keeping in the event you have to roll back.

0 votesVote for this answer Mark as a Correct answer

Elmar Höfinghoff answered on January 6, 2023 10:02

Short answer: yes

I always delete the bin and the obj after any Hotfix or Upgrade. Make a backup before doing this! A standard Kentico installation doesn't have any problems when you delete the bin and the obj folder.

0 votesVote for this answer Mark as a Correct answer

Sean Wright answered on January 22, 2023 21:54

Doing a "Rebuild" in Visual Studio is a Clean + Build. Clean will clear out generated files in the \bin and \obj directories.

Since these folders should always be excluded from source control, they can be deleted (manually or by running a "Clean" on the project) and regenerated just by doing a Build.

0 votesVote for this answer Mark as a Correct answer

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