C# 由于Fluent DLL,无法查看VS2013设计器

C# 由于Fluent DLL,无法查看VS2013设计器,c#,xaml,visual-studio-2013,fluent,C#,Xaml,Visual Studio 2013,Fluent,首先,让我说是的,我做了一些研究。但现在,我只是感到沮丧 C:\Users\\AppData\Local\Microsoft\VisualStudio\12.0\Designer\ShadowCache\didkffin.1gk\ecny11ys.s1u\Fluent.dll 试图从网络位置加载程序集,这将导致该程序集在早期版本的.NET Framework中被沙盒化。默认情况下,.NET Framework的此版本不启用CAS策略,因此此负载可能很危险。如果此加载不是为了沙箱程序集,请启用lo

首先,让我说是的,我做了一些研究。但现在,我只是感到沮丧

C:\Users\\AppData\Local\Microsoft\VisualStudio\12.0\Designer\ShadowCache\didkffin.1gk\ecny11ys.s1u\Fluent.dll 试图从网络位置加载程序集,这将导致该程序集在早期版本的.NET Framework中被沙盒化。默认情况下,.NET Framework的此版本不启用CAS策略,因此此负载可能很危险。如果此加载不是为了沙箱程序集,请启用loadFromRemoteSources开关。有关更多信息,请参阅

所以很明显这不是一个网络位置。。。怎么回事

我已尝试右键单击DLL并单击取消阻止。它只是创建一个新的临时目录,其中包含一个DLL副本

我已设置为嵌入互操作类型。那也不行。 我已将“复制到本地”设置为false。那里也没有帮助

我已将此代码放入App.Config文件中

<?xml version="1.0" encoding="utf-8"?>
<configuration>

    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
    </startup>
<runtime>         
    <loadFromRemoteSources enabled="true"/>
  </runtime> 
  <system.diagnostics>
    <sources>
      <source name="System.Windows.Data" switchName="SourceSwitch">
        <listeners>
          <remove name="Default" />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>
</configuration>

我被难住了。有人能帮忙吗?

对于可能有此问题的人,我已经解决了

步骤1:删除项目中的引用

步骤2:重命名obj文件夹

步骤3:打开.proj文件。找到参考,它看起来像这样

<Reference Include="Fluent, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3e436e32a8c5546f, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\Dev\Assets\Ribbon\Fluent.dll</HintPath>
    </Reference>

错误的
..\Dev\Assets\Ribbon\Fluent.dll


错误的
..\Dev\Assets\Ribbon\System.Windows.Interactivity.dll
从文件中删除这两项。这就是全部标签

步骤4:重新启动Visual studio。 步骤5:重新添加引用

These two errors exists even tho the project compiles and runs
Error   1   The name "MetroWindow" does not exist in the namespace "clr-namespace:Fluent;assembly=Fluent".  
Error   2   The type 'Fluent:MetroWindow' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
<Reference Include="Fluent, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3e436e32a8c5546f, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\Dev\Assets\Ribbon\Fluent.dll</HintPath>
    </Reference>
<Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>..\Dev\Assets\Ribbon\System.Windows.Interactivity.dll</HintPath>
</Reference>