Bug 60359

Summary: AssemblyName.set_CultureName is not implemented
Product: [Mono] Class Libraries Reporter: Ankit Jain <ankit.jain>
Component: mscorlibAssignee: Katelyn Gadd <kg>
Status: RESOLVED FIXED    
Severity: normal CC: kg, ludovic, masafa, mono-bugs+mono
Priority: ---    
Version: unspecified   
Target Milestone: Future Release   
Hardware: PC   
OS: Mac OS   
Tags: bugpool-archive Is this bug a regression?: ---
Last known good build:

Description Ankit Jain 2017-10-25 01:26:26 UTC
using System;
using System.Reflection;

public class Test
{
        public static void Main ()
        {
                AssemblyName aname = Assembly.GetExecutingAssembly ().GetName ();
                Console.WriteLine ($"Original: {aname}");

                aname.CultureName = "en-US";
                Console.WriteLine ($"Modified: {aname}");
        }
}

running this:

Unhandled Exception:
System.NotImplementedException: The method or operation is not implemented.
  at Test.Main () [0x0001d] in <f8a4e5b96c4a4cf3b99acdb13b4ce856>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The method or operation is not implemented.
  at Test.Main () [0x0001d] in <f8a4e5b96c4a4cf3b99acdb13b4ce856>:0

Expected output would be something like:

Original: p, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Modified: p, Version=1.0.0.0, Culture=en-US, PublicKeyToken=null
Comment 1 Katelyn Gadd 2018-01-12 19:49:30 UTC
Fixed by https://github.com/mono/mono/pull/6489