c# - JsonConvert and NServiceBus namespace conflict -


we have project using json.net , jsonconvert.

it worked fine until decided change our nservicebus serialization json.

now error saying jsonconvert internal class , "cannot accessed here".

looking @ generated code, looks nservicebus embeds jsonconvert in code. embedded code has newtonsoft.json namespace makes jsonconvert class internal.

is there way tell complier use newtonsoft.json.jsonconvert assembly newtonsoft.json.dll , not in nservicebus.core.dll specific class?

yes can.
need use extern alias, see http://msdn.microsoft.com/en-us/library/ms173212.aspx


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -