You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type 'SerializableAttribute' exists in both 'System.Runtime.Serialization.Formatters, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'nunit.framework, Version=3.4.1.0.
How can I specify the package to use? My project.json :
@SerhiiS-in6k Thanks for opening the issue. Was the error you got a compile time error or a runtime error? I found that NUnit declares an internal type named SerializableAttribute I wondered how that type was conflicting with the one in CoreCLR. Would you mind sharing a simple repro app with us? Thanks.
@shmao It was changed to internal fairly recently (nunit/nunit#1683). The latest released version of NUnit, 3.4.1, which is used in the project.json above, still has it as public.
Thanks for the pointer, @svick . That fix in NUnit should resolve the issue with NUnit's next release. For 3.4.1, however, I don't see any workaround to reference both packages and use the attribute type.
Hi I have issue with Serializable attribute
How can I specify the package to use? My project.json :
The text was updated successfully, but these errors were encountered: