[C#] Newtonsoft.Json 版本冲突

在web.config或者app.config里面加上一段:


<runtime>
	<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
		<dependentAssembly>
			<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
			<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
		</dependentAssembly>
	</assemblyBinding>
</runtime>



猜你喜欢

转载自blog.csdn.net/wwwsq/article/details/71159535