我試圖使用堆棧交換MiniProfiler
在我的ASP MVC項目,但在我看來,在這裏我打電話MiniProfiler存在於兩個Miniprofiler.Shared和MiniProfiler
@using StackExchange.Profiling
得到一個非常惱人的錯誤消息的類型
和
@MiniProfiler.RenderIncludes()
在RenderIncludes
線,VS抱怨
的噸YPE 'MiniProfiler' 存在於兩個 'MiniProfiler.Shared,版本= 4.0.0.0,文化=中性公鑰= b44f9351044011a3' 和 'MiniProfiler,版本= 3.2.0.157文化=中性公鑰= b44f9351044011a3'
我已經檢查了(.csprroj
)項目文件,它僅包含一個元素引用MiniProfiler
:
<Reference Include="MiniProfiler, Version=3.2.0.157, Culture=neutral, PublicKeyToken=b44f9351044011a3, processorArchitecture=MSIL">
<HintPath>..\packages\MiniProfiler.3.2.0.157\lib\net40\MiniProfiler.dll</HintPath>
</Reference>
我還檢查了packages.config
,它也只有1參考MiniProfiler
:
<package id="MiniProfiler" version="3.2.0.157" targetFramework="net452" />
我清理了項目並重新啓動了Visual Studio,但沒有成功。這裏發生了什麼?