C# StyleCopCmd:使用stylecop4.4运行StyleCopCmd*
有没有办法用StyleCop 4.4运行StyleCopCmd.*?C# StyleCopCmd:使用stylecop4.4运行StyleCopCmd*,c#,stylecop,C#,Stylecop,有没有办法用StyleCop 4.4运行StyleCopCmd.*? 我试图简单地用新的stylecop程序集交换旧的stylecop程序集,但这导致了一个例外,即无法加载具有特定版本4.3.0.8的程序集。有黑客吗 提前谢谢。我已经自己解决了这个问题 以下是我的解决方案: 1.)在StyleCopCmd.exe目录中创建一个名为StyleCopCmd.exe.config的文件 2.)使程序集从版本4.3.0.8重定向到版本4.4.0.14 配置文件: <configuration>
我试图简单地用新的stylecop程序集交换旧的stylecop程序集,但这导致了一个例外,即无法加载具有特定版本4.3.0.8的程序集。有黑客吗
提前谢谢。我已经自己解决了这个问题 以下是我的解决方案: 1.)在StyleCopCmd.exe目录中创建一个名为StyleCopCmd.exe.config的文件
2.)使程序集从版本4.3.0.8重定向到版本4.4.0.14
配置文件:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.StyleCop.CSharp" publicKeyToken="31bf3856ad364e35" culture="Neutral" />
<bindingRedirect oldVersion="4.3.0.8" newVersion="4.4.0.14" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.StyleCop.CSharp.Rules" publicKeyToken="31bf3856ad364e35" culture="Neutral" />
<bindingRedirect oldVersion="4.3.0.8" newVersion="4.4.0.14" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.StyleCop" publicKeyToken="31bf3856ad364e35" culture="Neutral" />
<bindingRedirect oldVersion="4.3.0.8" newVersion="4.4.0.14" />
</dependentAssembly>
</assemblyBinding>
</runtime>
我希望任何人都能从中获利;-)