mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Re-enable assembly name comparison
This commit is contained in:
@@ -5698,11 +5698,7 @@ if($paths) {
|
||||
{
|
||||
AssemblyName assemblyName = ClrFacade.GetAssemblyName(psSnapInInfo.AbsoluteModulePath);
|
||||
|
||||
// Porting note: the snapins still require 'ProcessorArchitecture=MSIL' in
|
||||
// the strong name, which is not in the strong name of assemblies created
|
||||
// by dotnet-cli
|
||||
if (!Platform.IsCore &&
|
||||
!string.Equals(assemblyName.FullName, psSnapInInfo.AssemblyName, StringComparison.OrdinalIgnoreCase))
|
||||
if (!string.Equals(assemblyName.FullName, psSnapInInfo.AssemblyName, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
string message = StringUtil.Format(ConsoleInfoErrorStrings.PSSnapInAssemblyNameMismatch, psSnapInInfo.AbsoluteModulePath, psSnapInInfo.AssemblyName);
|
||||
_PSSnapInTracer.TraceError(message);
|
||||
|
||||
Reference in New Issue
Block a user