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

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

c# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -