# VS 發佈時,一直被舊版Newtonsoft.Json.dll覆蓋 用Visual Studio進行發佈時,發生Newtonsoft.Json版本跟web.config設定的版本不符。 ![](https://i.imgur.com/bRDcpJG.png) 但建置網站不會出錯,dll版本也正確。 ![](https://i.imgur.com/qi6hY0O.png) packages.config ![](https://i.imgur.com/WcGe1Xb.png) web.config ![](https://i.imgur.com/eUbLWXp.png) dll version ![](https://i.imgur.com/4xQj3dk.png) 但執行發佈動作, Newtonsoft.Json會變成了6.0.8版本 ![](https://i.imgur.com/yG2ko8i.png) 原來是VS Azure Tools的bug([參考](https://stackoverflow.com/questions/22490967/visual-studio-keeps-overwriting-newtonsoft-json-dll-with-an-older-version)), 到這個目錄,移除Newtonsoft.Json.dll C:\Program Files\Microsoft SDKs\Azure\\.NET SDK\v2.**X**\bin\plugins\Diagnostics 其中**X**請依照安裝版本改變。 或是移除Azure相關plugin, 就參考的說明是移除Windows Azure VS Tools, 但找不到這個東西, 我移除Microsoft Azure Libraries for .Net這個就可以了 ![](https://i.imgur.com/gPd3bGV.png) 註: VS 2017遇到的問題,不確定VS 2019是否會出現這個問題。