DotNet Module
.NET Core + CLI tools helpers
Types and nested modules
Type/Module | Description |
Functions and values
Function or value | Description |
Full Usage:
DotNet.build setParams project
Parameters:
BuildOptions -> BuildOptions
-
set compile command parameters
project : string
-
project to compile
|
|
Full Usage:
DotNet.defaultSystemInstallDir
Returns: string
|
.NET Core SDK default install directory (set to default SDK installer paths
(
|
Full Usage:
DotNet.defaultUserInstallDir
Returns: string
|
.NET Core SDK default install directory (set to default SDK installer paths
(
|
Full Usage:
DotNet.downloadInstaller setParams
Parameters:
InstallerOptions -> InstallerOptions
-
set download installer options
Returns: string
|
|
Full Usage:
DotNet.exec buildOptions command args
Parameters:
Options -> Options
-
build common execution options
command : string
-
the sdk command to execute test , new , build , ...
args : string
-
command arguments
Returns: ProcessResult
|
|
Full Usage:
DotNet.findPossibleDotnetCliPaths dotnetCliDir
Parameters:
string option
-
the path to check else will probe system PATH
Returns: seq<string>
|
Get dotnet cli executable path. Probes the provided path first, then as a fallback tries the system PATH
|
Full Usage:
DotNet.getSDKVersionFromGlobalJson ()
Parameters:
unit
Returns: string
|
Gets the DotNet SDK from the global.json. This file can exist in the working directory or any of the parent directories
|
Full Usage:
DotNet.getVersion setParams
Parameters:
VersionOptions -> VersionOptions
-
set version command parameters
Returns: string
|
|
Full Usage:
DotNet.info setParams
Parameters:
InfoOptions -> InfoOptions
-
set info command parameters
Returns: InfoResult
|
|
Full Usage:
DotNet.install setParams
Parameters:
CliInstallOptions -> CliInstallOptions
-
set installation options
Returns: Options -> Options
|
|
Full Usage:
DotNet.installTemplate templateName setParams
Parameters:
string
-
template short name to install
setParams : TemplateInstallOptions -> TemplateInstallOptions
-
set version command parameters
|
|
Full Usage:
DotNet.msbuild setParams project
Parameters:
MSBuildOptions -> MSBuildOptions
-
A function that overwrites the default MSBuildOptions
project : string
-
A string with the path to the project file to build.
|
Example
|
Full Usage:
DotNet.newFromTemplate templateName setParams
Parameters:
'a
-
template short name to create from
setParams : NewOptions -> NewOptions
-
set version command parameters
|
|
Full Usage:
DotNet.nugetPush setParams nupkg
Parameters:
NuGetPushOptions -> NuGetPushOptions
-
set nuget push command parameters
nupkg : string
-
nupkg to publish
|
Example
|
Full Usage:
DotNet.pack setParams project
Parameters:
PackOptions -> PackOptions
-
set pack command parameters
project : string
-
project to pack
|
Example
|
Full Usage:
DotNet.prefixProcess buildOptions firstArgs c
Parameters:
Options -> Options
-
build common execution options
firstArgs : string list
c : CreateProcess<'a>
Returns: CreateProcess<'a>
|
|
Full Usage:
DotNet.publish setParams project
Parameters:
PublishOptions -> PublishOptions
-
set publish command parameters
project : string
-
project to publish
|
|
Full Usage:
DotNet.restore setParams project
Parameters:
RestoreOptions -> RestoreOptions
-
set restore command parameters
project : string
-
project to restore packages
|
|
|
Setup the environment ( |
Full Usage:
DotNet.test setParams project
Parameters:
TestOptions -> TestOptions
-
set test command parameters
project : string
-
project to test
|
|
Full Usage:
DotNet.tryGetSDKVersionFromGlobalJson ()
Parameters:
unit
Returns: string option
|
Tries the DotNet SDK from the global.json. This file can exist in the working directory or any of the parent directories Returns None if global.json is not found
|
Full Usage:
DotNet.uninstallTemplate templateName
Parameters:
string
-
template short name to uninstall
|
|