2017-07-27 153 views
1

我刪除舊版本Newtonsoft.Json並添加新版本。當運行程序顯示package.config <package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" /> 並在web.config中如何刪除Visual Studio中的舊DLL?

<dependentAssembly> 
    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> 
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="7.0.0.0" /> 
    </dependentAssembly> 

我如何在Visual Studio中徹底刪除舊的優化版本這個錯誤?

enter image description here

+0

打開解決方案資源管理器,展開引用,並刪除所有不必要的DLL。 – OnDoubt

+0

我的問題沒有解決這個解決方案! – jahan

+0

編輯oldVersion =「0.0.0.0-7.0.1.0」 – OnDoubt

回答

0

看看是否有你的項目的一些遺蹟。 在解決方案資源管理器中,右鍵單擊該項目並選擇「卸載項目」。再次右鍵單擊並選擇「編輯...」。現在你看到了一個用於你的項目設置的Xml。看看它是否在調用舊版本。

+0

我的問題沒有解決這個解決方案! – jahan

0

嘗試,這可能是幫助你

<dependentAssembly> 
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> 
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="7.0.0.1" /> 
</dependentAssembly> 

變化NEWVERSION到7.0.0.1

+0

我的問題沒有解決這個解決方案! – jahan