-
Notifications
You must be signed in to change notification settings - Fork 5
Build
The COMET Services are developed using Visual Studio 2019. The COMET Webservices contain multiple projects that target net472
. net472
is not yet a part of Visual Studio, the .NET Framework 4.7.2 Developer pack needs to be downloaded from the Microsoft website and installed. It is listed here, or can be downloaded directly from here.
It may be that the .NET Framework 4.7.2 Developer pack needs to be separately installed as well.
The following tools are used by the RHEA development team:
- Visual Studio 2019 Professional (Community Edtion will work as well)
- Resharper Ultimate 2018.1.3 or later
- Git Extensions
- Docker
The COMET Web Services solution contains three build configurations:
- test: used to test against the Integration Test Suite on the test database docker container
- debug: used while developing new features
- release: used to create a build for release
LAST STEP IS CREATING AND PUSHING THE DOCKER CONTAINER. DON'T FORGET THAT!!! Link to dockerize Wiki
In order to create a new release of the COMET Web Services the following steps need to be taken.
- Make sure the version numbers are incremented when components have changed; the project makes use of SEMVER. The version of the CDP4WebServer project shall be equal or higher than the highest version of any of it's project dependencies.
- Verify correctness of fixes using the test build configuration and the Integration Test Suite
- Build the solution in release mode
- Remove any unnecessary localization dlls
- Archive the contents of the
CDP4-WebServices-Community-Edition\CDP4WebServer\bin\Release\net472
folder using ZIP and name the zip file:COMETWebServices-MAJOR.MINOR.PATCH.zip
, according to SEMVER and the versioning scheme explained above. - Publish the CDP4Webserver.IIS project in release mode. Make sure that:
- The Configuration is 'Release'
- All existing files will be deleted during publishing
- The publication is precompiled.
- Remove any unnecessary localization dlls from the
CDP4-WebServices-Community-Edition\CDP4WebServer.IIS\bin\app.publish\bin
folder. - Archive the contents of the
CDP4-WebServices-Community-Edition\CDP4WebServer.IIS\bin\app.publish
folder using ZIP and name the zip file:COMETWebServices-IIS-MAJOR.MINOR.PATCH.zip
, according to SEMVER and the versioning scheme explained above. - Compute the SHA256 hash of the zip archives
- Create a tag (MAJOR.MINOR.PATCH) on the Git repository and push this to GitHub. The tag shall be the version number according to SEMVER and the versioning scheme explained above.
- Via the GitHub web-ui
draft a new release
referencing the tag and set therelease title
toVersion MAJOR.MINOR.PATCH
. The description of the release shall mention the updates referencing the GitHub issue numbers. - Upload the ZIP archives to the drafted release, add the previously computed SHA256 hashes to the release notes
- Save the new release
- Update any installation documentation on the Wiki to reflect version changes and potential updated installation instructions
LAST STEP IS CREATING AND PUSHING THE DOCKER CONTAINER. DON'T FORGET THAT!!! Link to dockerize Wiki
copyright @ Starion Group S.A.