Powershell类名称包含点(.)

Powershell类名称包含点(.),powershell,Powershell,$variable=新对象Google.GData.Spreadsheets.ListEntry? 如何创建它?$variable=新对象[Google.GData.Spreadsheets.ListEntry]点不是问题所在。如果您认为是,可以将类名括在' 您可能没有加载程序集。先这样做 # PowerShell 3 Add-Type -Path 'C:\Path\To\Your\Assembly.dll' # PowerShell 2 [System.Reflection.Assembl

$variable=新对象Google.GData.Spreadsheets.ListEntry


如何创建它?

$variable=新对象[Google.GData.Spreadsheets.ListEntry]

点不是问题所在。如果您认为是,可以将类名括在'

您可能没有加载程序集。先这样做

# PowerShell 3
Add-Type -Path 'C:\Path\To\Your\Assembly.dll' 

# PowerShell 2
[System.Reflection.Assembly]::LoadFrom('C:\Path\To\Your\Assembly.dll') | Out-Null

加载程序集了吗?这将使powershell查找名为[Google.GData.Spreadsheets.ListEntry]的类