Versions Compared

Key

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

Table of Contents

...

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.

Code Block
SL.DotNet.exe prepareForMsBuild --tokenFile C:\path\to\sltoken.txt --buildSessionIdFile buildSessionId.txt --workspacePath "C:\path\to\project" --baseDir  "C:\path\to\project" --ignoreGeneratedCode true --logEnabled true

...

This can be solve by doing the following:

MSBuild Version

SolutionSampl
14Set the MSBuildEmitSolution environment variable to 1 before running MSBuild
set MSBuildEmitSolution=1
Msbuild SlnFolders.sln
15Add the --msBuildVersion 15 flag to the prepareForMsBuild command
SL.DotNet.exe prepareForMsBuild  --buildSessionIdFile buildSessionId.txt --workspacePath "C:\path\to\project" --msBuildVersion 15