2015-11-08 23 views
1

我正在使用Visual Studio for C#應用程序。我有一臺64位機器。我安裝了最新版本的Nuget和Stylecop。當我建立,我得到警告作爲處理器體系結構不匹配 - Visual Studio,Nuget,Stylecop

There was a mismatch between the processor architecture of the project 
being built "MSIL" and the processor architecture of the reference 
NuGet.VisualStudio", "x86". This mismatch may cause runtime failures. Please 
consider changing the targeted processor architecture of your project 
through the Configuration Manager so as to align the processor architectures 
between your project and references, or take a dependency on references with 
a processor architecture that matches the targeted processor architecture of 
your project." 

任何想法這是什麼請嗎?

回答

-1

我想到了 - 我去了配置管理器,並將該項目的平臺設置爲x64。訣竅!

1

我對這個問題有兩種可行的解決方案: 第一變化從項目目標框架>屬性>生成標籤>目標平臺到x64 如果上述方案不能在大多數情況下工作,然後與另一其工作,每次嘗試爲了我。 轉到項目源代碼文件夾> obj> x64>調試並刪除那裏的所有文件 現在嘗試從Visual Studio發佈您的解決方案,它將工作。 一些截圖,以更好地理解這種

  1. enter image description here
  2. enter image description here
  3. enter image description here 4. enter image description here 5. enter image description here 6. enter image description here
相關問題