< Back
Framework
Post
NAME Framework
SYNOPSIS
Sets the version of the .NET framework you want to use during build.
SYNTAX
Framework [-framework] <String> [<CommonParameters>]
DESCRIPTION
This function will accept a string containing version of the .NET framework to use during build.
Possible values: '1.0', '1.1', '2.0', '2.0x86', '2.0x64', '3.0', '3.0x86', '3.0x64', '3.5', '3.5x86', '3.5x64',
'4.0', '4.0x86', '4.0x64', '4.5', '4.5x86', '4.5x64', '4.5.1', '4.5.1x86', '4.5.1x64'.
Default is '3.5*', where x86 or x64 will be detected based on the bitness of the PowerShell process.
PARAMETERS
-framework <String>
Version of the .NET framework to use during build.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Framework "4.0"
Task default -depends Compile
Task Compile -depends Clean {
msbuild /version
}
-----------
The script above will output detailed version of msbuid v4
RELATED LINKS
Assert
Exec
FormatTaskName
Get-PSakeScriptTasks
Include
Invoke-psake
Properties
Task
TaskSetup
TaskTearDown
SYNOPSIS
Sets the version of the .NET framework you want to use during build.
SYNTAX
Framework [-framework] <String> [<CommonParameters>]
DESCRIPTION
This function will accept a string containing version of the .NET framework to use during build.
Possible values: '1.0', '1.1', '2.0', '2.0x86', '2.0x64', '3.0', '3.0x86', '3.0x64', '3.5', '3.5x86', '3.5x64',
'4.0', '4.0x86', '4.0x64', '4.5', '4.5x86', '4.5x64', '4.5.1', '4.5.1x86', '4.5.1x64'.
Default is '3.5*', where x86 or x64 will be detected based on the bitness of the PowerShell process.
PARAMETERS
-framework <String>
Version of the .NET framework to use during build.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Framework "4.0"
Task default -depends Compile
Task Compile -depends Clean {
msbuild /version
}
-----------
The script above will output detailed version of msbuid v4
RELATED LINKS
Assert
Exec
FormatTaskName
Get-PSakeScriptTasks
Include
Invoke-psake
Properties
Task
TaskSetup
TaskTearDown