| | 1 | | <# |
| | 2 | | .SYNOPSIS |
| | 3 | | Adds the specified version of the Microsoft.CodeAnalysis assemblies to the session. |
| | 4 | | .DESCRIPTION |
| | 5 | | This function loads the specified version of the Microsoft.CodeAnalysis assemblies into the current session. |
| | 6 | | .PARAMETER ModuleRootPath |
| | 7 | | The root path of the module. |
| | 8 | | .PARAMETER Version |
| | 9 | | The version of the Microsoft.CodeAnalysis assemblies to load. |
| | 10 | | #> |
| | 11 | | function Add-KrCodeAnalysisType { |
| | 12 | | [CmdletBinding()] |
| | 13 | | [OutputType([bool])] |
| | 14 | | param ( |
| | 15 | | [Parameter(Mandatory = $true)] |
| | 16 | | [string]$ModuleRootPath, |
| | 17 | | [Parameter(Mandatory = $true)] |
| | 18 | | [string]$Version |
| | 19 | | ) |
| 1 | 20 | | $passVerbose = $PSCmdlet.MyInvocation.BoundParameters['Verbose'] |
| 1 | 21 | | $codeAnalysisassemblyLoadPath = Join-Path -Path $ModuleRootPath -ChildPath 'lib' -AdditionalChildPath 'Microsoft.Cod |
| 1 | 22 | | return( |
| 3 | 23 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| 2 | 24 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| 2 | 25 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| 2 | 26 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| | 27 | | #Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath "Microsoft.Co |
| 2 | 28 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| 2 | 29 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| 2 | 30 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| 2 | 31 | | (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co |
| | 32 | | ) |
| | 33 | | } |
| | 34 | |
|