LogoLogo
  • About this Documentation
  • Getting started
    • Initial Resources
    • OSPSuite Architecture
  • Setup
    • Git Workflow
    • C# Coding Standards
    • Setting up the developer environment for C#
  • OSPSuite-R Setup
    • Setup OSPSuite-R on Windows
    • Setup OSPSuite-R on CentOS7
    • Setup OSPSuite-R on Ubuntu
  • R Development Resources
    • R Development Collaboration Guide
    • R Coding Standards
    • Best Practices R
    • R Code structure
  • .NET Code Specifics
    • Serialization
    • Unit and Integration Testing
    • Commands
    • Debugging
    • Data Binding
  • PK-Sim Database
    • PK-Sim Database Description
  • Sim Model
    • Finding Memory Leaks
  • Algorithms
    • Algorithm for Individual Creation
Powered by GitBook
On this page
  • Installing the prerequisites
  • Building and Running
  • Useful Tips
  1. Setup

Setting up the developer environment for C#

PreviousC# Coding StandardsNextSetup OSPSuite-R on Windows

Last updated 2 months ago

Installing the prerequisites

  1. Install Visual Studio 2017 Community Edition or better.

  2. Install Ruby and Rake.

  3. Obtain Devexpress License and Install

    • DevExpress WinForms Controls and Libraries is used in the graphical user interface of the suite. You will need to obtain a license in order to work with the user interface.

    • DevExpress only provides trials on their current product offering, so you may have to acquire the license prior to downloading an older version if that's required to build the suite.

    • Obtain your license from DevExpress . Then get the installer for the version mentioned above that's required

  4. Install nuget.exe and ensure that it is in your PATH variable

  5. Add OSPSuite.Core as a nuget source using the following command

  nuget sources add -name OSP-GitHub-Packages -source https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json

Building and Running

  1. Clone the repository locally (either from the open-systems-pharmacology organization or from your own fork)

  2. For PK-Sim and MoBi, run the postclean.bat command

    There are several requirements to running the software that are not automatically performed when building with Visual Studio. An automated postclean batch file is used to take care of these tasks.

  3. Compile Source

  4. Run Tests

  5. Run the Application

Useful Tips

  1. The suite is using GitHub Actions as a CI server which also provides a nuget feed that should be registered on your system. This will prevent you from having to enter GitHub password with each new instance of Visual Studio.

nuget sources add -Name OSP-GitHub-Packages -source https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json -User <GITHUB USERNAME> -Password <PERSONAL ACCESS TOKEN>

or

dotnet nuget add source --username <GITHUB USERNAME> --password <PERSONAL ACCESS TOKEN> --store-password-in-clear-text --name OSP-GitHub-Packages "https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json"
Visual Studio Install
Ruby Install
DevExpress Order
DevExpress Install
NuGet Install