msgpack-cli icon indicating copy to clipboard operation
msgpack-cli copied to clipboard

Cannot build Xamarin.IOS project with 1.0.0-rc

Open Jinqiao opened this issue 6 years ago • 2 comments

After I update to 1.0.0-rc, I got the following error message at build time:

/path/to/MTOUCH: Error MT2002: Failed to resolve
"System.CodeDom.CodeParameterDeclarationExpression" reference from
"System.CodeDom, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51" (MT2002)

Jinqiao avatar Feb 18 '18 21:02 Jinqiao

Thank you for reporting. I'm recognizing and tuckling this.issue with improving stability in Xamarin.

yfakariya avatar Feb 18 '18 22:02 yfakariya

It looks like there's a reference to System.CodeDom when building against .NET Standard 2.0, but that dependency is not added to the NuGet package.

The following code throws an exception because there are internal types in MsgPack.Serialization.CodeDomSerializers that require System.CodeDom.dll but the assembly can't be found:

string assemblyString = "MsgPack, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a2625990d5dc0167";
Type[] types = Assembly.Load(assemblyString).GetTypes();

lucaspimentel avatar Nov 01 '18 16:11 lucaspimentel