Base solution for your next web application
Open Closed

What does Delete-BIN-OBJ-Folders.bat do? #5769


User avatar
0
kevinfarrow created

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)
  • User Avatar
    0
    maliming created
    Support Team
  • User Avatar
    0
    alper created
    Support Team

    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