Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The SeaLights dotnet SeaLights .NET agent can be integrated with MSBuild to scan the binary code and provide the SeaLights server 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 to each step in order link them together as one complete cycle

Code Block
languagepowershell
titleSample command
SL.DotNet.exe config --tokenFile C:\path\to\sltoken.txt --appName "myApp" --branchName "master" --buildName "1" --includeNamespace myNameSpace.* [--excludeNamespace <arg>] [--include <arg>] [--exclude <arg>] [--buildSessionId <arg> | --buildSessionIdFile <arg>] [--proxy <arg>]


Automatic setup

TheSeaLights agent can automatically setup your msbuild to work with the SeaLights agent.

...

This creates a file called 'after.{SOLUTION_FILE_NAME}.targets' which sits alongside your solution file with all the needed parameters in it for.

Run MSbuild

When running MSBuild, it will identify the above file and cause our agent come up and report the details needed from the binary files.

...