I need to specify System.Net.Http.dllversion 2.2.29.0 in a PowerShell script. GAC has System.Net.Httpversion 4.0.0.0. Is it possible to redirect to a local DLL without changing the GAC?
System.Net.Http.dll
System.Net.Http
I tried:
Add-Type -Path 'System.Net.Http.dll'
<assemblyBinding>
[Reflection.Assembly]::LoadFrom("$PSScriptRoot\System.Net.Http.dll")
In all cases, subsequent execution [AppDomain]::CurrentDomain.GetAssemblies()shows that version 4.0.0.0 is C:\Windowsstill the only downloaded copy.
[AppDomain]::CurrentDomain.GetAssemblies()
C:\Windows
? ?
Add-Type -AssemblyName "Microsoft.SqlServer.SMO, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
:
[reflection.assembly]::Load("Microsoft.SqlServer.SMO, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")
,
Source: https://habr.com/ru/post/1651685/More articles:Python & Scipy: How to install von mises distribution? - pythonFilter / grep functions behave strangely - regexDesign a polymorphic API - elmКак использовать ruby-linter в коде Visual Studio? - rubyHow to split a list into segments - listhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1651686/relating-column-names-to-model-parameters-in-pyspark-ml&usg=ALkJrhhMFoeXZmVjXMGc7UYXMBAU5tGKeQDjango-запрос, средний счетчик - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1651688/how-to-map-variable-names-to-features-after-pipeline&usg=ALkJrhipbC0UNnHNNdXNvlS9tCgpgnlL1gExcel text color> 255 characters - c #How to load related objects with Entity Framework core - c #All Articles