-
Notifications
You must be signed in to change notification settings - Fork 1
Project Troubleshooting, Tips, and Tricks
Google-blockly and closure-library are Node.js libraries that are used in our application. Git does not store files related to their dependencies, and these dependencies may need to be (re-)installed on a developer's machine. This step assumes you have Node.js 8.* installed on your machine and the npm program available on your command line.
- Navigate to the "BlockBot.Web/closure-library/" folder and run
npm install
in a command line. - Navigate to the "BlockBot.Web/google-blockly/" folder and run
npm install
in a command line.
Occasional changes will be made to the database and its schema. The below process will destroy any existing versions of the database on a developer's machine, and will recreate a new, empty version of the database with the most up-to-date schema. Warning: this is a destructive operation that cannot be undone. Please be sure you have a backup of any projects or other important information in the database before completing this process.
- Search "Package Manager Console" in the "Quick Launch" search bar (located at the very top right of the VS screen) and click the first search link
- Type "drop-database" into the console that loads in a window to the bottom-left of the Visual Studio screen (the command prompt will be "PM>". You may also have to type "Y" to allow the command to continue running after a certain point.
- Once the "drop-database" command has finished, type "update-database" into the PM> command prompt. Now the project database is up to date!
- Be sure you have the "FundamentalsChatbot.sln" solution open in VS (Not the blocklybot github file folder).
- Delete the "blockly", "closure-library", and "lib" folders from the "wwwroot" directory in the "BotBuilder.Web" section of the solution.
- Re-run the solution by clicking the green arrow button in the top center of the VS window's second tool bar (so, the tool bar that contains the "open" folder icon, the "save" floppy disk icons, etc.). This should cause the folders you just deleted to rebuild correctly and show up in the "wwwroot" directory without any errors.