Closed ClaireReinken closed 7 years ago
The following steps were used to install and configure Visual Studio Code: Install Visual Studio Code
Download the branch from Github https://github.com/FEISystems/ca-adpq-prototype
Download and Install MySQL
Open MySQL Workbench
Create a database named CA
Execute the database creation ca_proto\ca_service\DbScripts\BuildDatabase.txt in MySQL Workbench
Open the prototype in Visual Studio Code
Modify the connection string in the ca_proto\ca_proto\appSetting.json file. Configure Visual Studio Code
On the left side of VS Code, from the menu options, select the bottom icon which represents extensions. To run the prototype in VS Code you will need the C# extension (shown installed below) to be installed:
Once that extension is installed, go to the next menu icon up (Debug), and click on the Gear at the top (the tooltip will say “Configure or Fix launch.json”):
Select “.NET Core”, and VS Code will create a launch.json file. Once that is done, click the green “play” button. VS Code will show the following:
Select “Configure Task Runner”, then select “.NET Core” from the option list that follows. VS Code will create a “tasks.json” file. The tasks.json file needs to be modified to pass the location of the “project.json” file, modify the “args” property underneath the “tasks” property as follows:
Once this change is made, switch back to the “launch.json” file. Under the entry for “.NET Core Launch (web)”, change the “program” and “cwd” attributes as follows:
Once that is done, the dependencies will need to be restored. Go to the View | Integrated Terminal menu option. That should open a command prompt at the root of the repository. Change into the ca_proto directory and run “dotnet restore”:
Once this is done, go back to the Debug tab on the left, make sure that “.NET Core Launch (web)” is selected, and hit the play button.
We need to provide sufficient documentation to install and run their prototype on another machine