Skip to content

Commit 9ba6ba3

Browse files
committed
Re-enable assembly name comparison
1 parent b400ba3 commit 9ba6ba3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/System.Management.Automation/engine/InitialSessionState.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5698,11 +5698,7 @@ internal static Assembly LoadPSSnapInAssembly(PSSnapInInfo psSnapInInfo,
56985698
{
56995699
AssemblyName assemblyName = ClrFacade.GetAssemblyName(psSnapInInfo.AbsoluteModulePath);
57005700

5701-
// Porting note: the snapins still require 'ProcessorArchitecture=MSIL' in
5702-
// the strong name, which is not in the strong name of assemblies created
5703-
// by dotnet-cli
5704-
if (!Platform.IsCore &&
5705-
!string.Equals(assemblyName.FullName, psSnapInInfo.AssemblyName, StringComparison.OrdinalIgnoreCase))
5701+
if (!string.Equals(assemblyName.FullName, psSnapInInfo.AssemblyName, StringComparison.OrdinalIgnoreCase))
57065702
{
57075703
string message = StringUtil.Format(ConsoleInfoErrorStrings.PSSnapInAssemblyNameMismatch, psSnapInInfo.AbsoluteModulePath, psSnapInInfo.AssemblyName);
57085704
_PSSnapInTracer.TraceError(message);

0 commit comments

Comments
 (0)