Created
March 11, 2020 06:15
-
-
Save dgosbell/683ed77f4a46543acf348b57c20e3d25 to your computer and use it in GitHub Desktop.
Load AnalysisServices nuget packages into a Powershell session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load the type from the Microsoft.AnalysisServices.AdomdClient nuget package | |
Install-Package Microsoft.AnalysisServices.AdomdClient.retail.amd64 -Source "https://www.nuget.org/api/v2" | |
$p = get-package Microsoft.AnalysisServices.AdomdClient.retail.amd64 | |
$nugetFile = get-childitem $p.source | |
$adomdFile = join-path $nugetFile.DirectoryName "lib\net45\Microsoft.AnalysisServices.AdomdClient.dll" | |
add-type -path $adomdFile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load the type from the Microsoft.AnalysisServices nuget package | |
Install-Package Microsoft.AnalysisServices.retail.amd64 -Source "https://www.nuget.org/api/v2" | |
$p = get-package Microsoft.AnalysisServices.retail.amd64 | |
$nugetFile = get-childitem $p.source | |
$amoFile = join-path $nugetFile.DirectoryName "lib\net45\Microsoft.AnalysisServices.dll" | |
add-type -path $amoFile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment