DotnetMsBuildStep
A .NET msbuild step to run .NET MSBuild
Example. Runs dotnet msbuild
command for Rebuild target for a specified solution in the build checkout directory with detailed logging
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
dotnetMsBuild {
projects = "MySolution.sln"
version = DotnetMsBuildStep.MSBuildVersion.CrossPlatform
targets = "Rebuild"
configuration = "Release"
logging = DotnetMsBuildStep.Verbosity.Detailed
sdk = "4.8.1"
}
Content copied to clipboard }
}
See also
Constructors
Types
Docker image platforms
MSBuild version
Logging verbosity
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer
Properties
If enabled, "pull image" command will be run before docker run.
Build working directory for script, specify it if it is different from the checkout * directory.