In the ASP.Net Zero Core version there is a batch file called 'Delete-BIN-OBJ-Folders.bat' in the root of the solution - what is it used for? and should I run it?
2 Answer(s)
-
0
Please refer to this article: https://medium.com/volosoft/deleting-all-bin-obj-folders-in-a-solution-93e401372e69
-
0
As the file name exactly says, it deletes all BIN and OBJ folders in the folders and sub folders of your AspNet Zero solution. Sometimes after NuGet updates, old binary files remain in Bin and Obj folders. And your project tries to load that old binaries which causes building errors. In that case you can run the batch file to completely clean the solution. Especially when working with Xamarin it happens frequently. See some Xamarin posts that recommends deleting all bin and obj folders. If you don't need it, you can just delete it :)
- https://forums.xamarin.com/discussion/comment/255287#Comment_255287
- https://forums.xamarin.com/discussion/117951/project-doesnt-build-unless-bin-obj-folders-are-removed
- https://forums.xamarin.com/discussion/95259/how-to-delete-the-obj-and-bin-folder-before-build-using-custom-commands