Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 是否可以加载多个.dll';谁在使用powershell?_C#_Powershell - Fatal编程技术网

C# 是否可以加载多个.dll';谁在使用powershell?

C# 是否可以加载多个.dll';谁在使用powershell?,c#,powershell,C#,Powershell,我有10个必须加载的.dll,可以使用powershell吗?同样的小片段也很受欢迎我认为您可以通过执行以下操作来加载它们: $dlls = (Get-ChildItem -path "Path to Folder containing .dlls").fullname foreach ($dll in $dlls) { Add-Type -Path $dll } 我认为您可以通过执行以下操作来加载它们 $dlls = (Get-ChildItem -path "Path to

我有10个必须加载的.dll,可以使用powershell吗?同样的小片段也很受欢迎

我认为您可以通过执行以下操作来加载它们:

$dlls = (Get-ChildItem -path "Path to Folder containing .dlls").fullname

foreach ($dll in $dlls)
{
       Add-Type -Path $dll
}

我认为您可以通过执行以下操作来加载它们

$dlls = (Get-ChildItem -path "Path to Folder containing .dlls").fullname

foreach ($dll in $dlls)
{
       Add-Type -Path $dll
}

加载DLL是什么意思?你想完成什么?[System.Reflection.Assembly]::LoadFrom(“C:\folder\file.dll”);我有几个c#文件,这些文件最终将转换为.dll库,我需要将所有库加载到powershell,因此研究it@navoneel:是否可以加载具有相同代码块重复的多个.dll?多次使用
Add Type-Path Path\to\dll
加载dll是什么意思?你想完成什么?[System.Reflection.Assembly]::LoadFrom(“C:\folder\file.dll”);我有几个c#文件最终将转换为.dll库,我需要将所有库加载到powershell,因此,研究it@navoneel:是否可以加载具有相同代码块重复的多个.dll?使用多次
Add Type-Path Path\to\dll
我会添加逻辑来处理包含非托管代码的dll。我们不知道他试图加载哪种dll。我会添加逻辑来处理包含非托管代码的dll。我们不知道他想加载什么样的dll。