-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Mark Gray edited this page Oct 20, 2016
·
12 revisions
The official released version of BASINS is available from EPA at:
https://www.epa.gov/exposure-assessment-models/basins
To get BASINS up and running in Visual Studio:
-
Install Visual Studio 2015. The free version works fine. Visual Basic and C# are both required. If you see Git and Visual Studio GitHub extension during installation, choose both.
-
You can clone the repository however you want to using git. Since this project uses Visual Studio 2015, I recommend the Visual Studio GitHub extension. If you did not already install it, you can get it from this page:
- Launch Visual Studio 2015 and on the start page, press "Open from Source Control."
- A sidebar will open with GitHub as an option, choose Connect under GitHub.
- Log in with your GitHub account.
- Under GitHub in the sidebar (which may be smaller now that you have logged in) you will see the Clone option. Click it.
- If you see respec as a group, choose BASINS from it, otherwise if you see "Local Git Repositories", choose clone and specify: https://github.com/respec/BASINS.git
- Choose a local folder to clone into (it will create a folder named BASINS inside the folder you choose.)
- After it takes a little time to download, BASINS will appear as an item under GitHub and as an item at the bottom under Local Git Repositories.
- Double-click BASINS under Local Git Repositories, then expand Solutions, then double-click BASINS40_15.sln to open it.
- Note: the next instructions assume BASINS is now in local folder dev\BASINS, adjust as needed
- Install BASINS from the most recent packaged version. This will install in a folder (for example, C:\BASINS41)
- Copy C:\BASINS41\bin into dev\BASINS and let it replace all files
- Open dev\BASINS\BASINS40_15.sln in Visual Studio
- In Build menu, open Configuration Manager.
- In Configuration Manager, Active solution platform: x86
- Scroll through the list of projects to make sure Platform is x86 for all of them.
- Close Configuration Manager
- Open Solution Explorer (which is an alternative tab to Team Explorer)
- In Solution Explorer, find the project BASINS15, right-click, Set as Startup Project
- Right-click BASINS15 again, and this time choose 'Properties'
- Choose the 'Debug' category on the left
- Set 'Start Action' to 'Start External Program'
- Navigate to 'dev/BASINS/bin' and select 'BASINS.exe'
- Build menu, Rebuild Solution.
- Debug menu, Start Debugging (F5)