...
The SeaLights .NET agent can be integrated with MSBuild to scan the binary code and provide the SeaLights server with the build information.
Generating a session ID
Before running the build scan and tests, you need to create a session ID. The session ID is provided for each step in order to link them together as one complete cycle
Code Block | ||
---|---|---|
| ||
SL.DotNet.exe config --appName "myApp" --branchName "master" --buildName $(Get-Date -Format "yyyyMMdd_HHmm") --includeNamespace myNameSpace.* --buildSessionIdFile buildSessionId.txt |
Automatic setup
The SeaLights agent can automatically set up your MSBuild to work with the SeaLights agent.
...
This command creates a file called 'after.{SOLUTION_FILE_NAME}.targets
' which sits alongside your solution file with all the needed parameters for the Sealights agent to be executed automatically by MSBuild.
Info |
---|
See SeaLights .NET - command reference for full parameter details. |
Run MSbuild
When running MSBuild, it will identify the above file and cause our agent to come up and report the details needed from the binary files.
...