Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ReSharper inspectcode.exe 2016.3引发异常_C#_.net_Command Line_Resharper - Fatal编程技术网

C# ReSharper inspectcode.exe 2016.3引发异常

C# ReSharper inspectcode.exe 2016.3引发异常,c#,.net,command-line,resharper,C#,.net,Command Line,Resharper,我已经下载了ReSharper的inspectcode.exe 2016.3版,但即使是“inspectcode.exe--help”也无法顺利运行,并显示许多错误 首先打印“running…”,然后打印五个异常,最后打印帮助文本 解决这个问题的办法是什么?9.1.1版没有任何问题 inspectcode.exe的输出--帮助 PS C:\somefolder>\inspectcode.exe——帮助 JetBrains检查代码2016.3.1 在Microsoft Windows NT 6.2

我已经下载了ReSharper的inspectcode.exe 2016.3版,但即使是“inspectcode.exe--help”也无法顺利运行,并显示许多错误

首先打印“running…”,然后打印五个异常,最后打印帮助文本

解决这个问题的办法是什么?9.1.1版没有任何问题

inspectcode.exe的输出--帮助
PS C:\somefolder>\inspectcode.exe——帮助
JetBrains检查代码2016.3.1
在Microsoft Windows NT 6.2.9200.0下以64位模式运行.NET运行时4.0.30319.42000
组件JetBrains.Application.SinceClr4.Extensions.JetPackagerDepositoryFactoryEnvironment组件[Singleton,损坏]构造失败。无法通过从文件C加载来绑定零件目录程序集“JetBrains.Platform.Shell.SinceClr4,版本=107.0.0.0,区域性=neutral,PublicKeyToken=1010a0d8d6380325”:
\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll。无法加载文件或程序集的file:///C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll'或其依赖项之一。不支持此操作。(HRESULT中的异常:0x8013155。)尝试从网络位置加载程序集,这会导致程序集在.NET Framework的早期版本中被沙盒化。默认情况下,.NET Framework的此版本不启用CAS策略,因此此负载可能很危险。如果此加载不是为了沙箱程序集,请启用loadFromRemoteSources开关。看见http://go.microsoft.com/fwlink/?LinkId=155569 了解更多信息。
---异常#1/5[不支持异常]
消息=“试图从网络位置加载程序集,这将导致该程序集在早期版本的.NET Framework中被沙盒化。默认情况下,.NET Framework的此版本不启用CAS策略,因此此负载可能很危险。如果此加载不是为了沙箱程序集,请启用loadFromRemoteSources开关。看见http://go.microsoft.com/fwlink/?LinkId=155569 了解更多信息。”
ExceptionPath=Root.InnerException.InnerException.InnerException.InnerException
ClassName=System.NotSupportedException
HResult=COR_E_NOTSUPPORTED=8013155
---外---
---异常#2/5[FileLoadException]
Message=“无法加载文件或程序集”file:///C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll'或其依赖项之一。不支持此操作。(HRESULT的例外:0x8013155)
ExceptionPath=Root.InnerException.InnerException.InnerException
ClassName=System.IO.FileLoadException
InnerException=“根目录下的异常#1.InnerException.InnerException.InnerException.InnerException”
HResult=COR_E_NOTSUPPORTED=8013155
Source=mscorlib
文件加载\文件名=file:///C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll
StackTraceString=”
在System.Reflection.RuntimeAssembly.\n加载(AssemblyName文件名、字符串代码基、证据assemblySecurity、RuntimeAssembly位置提示、StackScrawMark和stackMark、IntPtr pPrivHostBinder、Boolean throwOnFileNotFound、Boolean for Inspection、Boolean suppressSecurityChecks)
位于System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,证据assemblySecurity,RuntimeAssembly reqAssembly,StackScrawMark&stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean For Inspection,Boolean suppressSecurityChecks)
位于System.Reflection.RuntimeAssembly.InternalLoadFrom(字符串汇编文件、证据安全性证据、字节[]哈希值、AssemblyHashAlgorithm哈希算法、Boolean ForInspection、Boolean suppressSecurityChecks、StackScrawMark和stackMark)
位于System.Reflection.Assembly.LoadFrom(字符串汇编文件)
位于JetBrains.Application.Bindings.AssemblyMasterBinderOnDiskFiles.JetBrains.Application.Bindings.IAssemblyMasterBinder.BindToRuntimeAssembly(AssemblyNameInfo名称,OnError OnError)
"
---外---
---异常#3/5[无效操作异常]
Message=“无法通过从文件C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4、版本=107.0.0.0、区域性=中性、PublicKeyToken=1010a0d8d6380325”加载来绑定零件目录程序集“JetBrains.Platform.Shell.SinceClr4.dll。”
ExceptionPath=Root.InnerException.InnerException
ClassName=System.InvalidOperationException
InnerException=“根目录下的异常#2.InnerException.InnerException.InnerException”
HResult=COR_E_invalidooperation=80131509
Source=JetBrains.Platform.Util
StackTraceString=”
在JetBrains.Util.OnError.b___18(例外情况除外)
位于JetBrains.Application.Bindings.AssemblyMasterBinderOnDiskFiles.JetBrains.Application.Bindings.IAssemblyMasterBinder.BindToRuntimeAssembly(AssemblyNameInfo名称,OnError OnError)
在JetBrains.Application.Table.TablePartCatalogStorage.c__显示类8.b__3(Int32`1tk)
位于System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey,Func`2 valueFactory)
在JetBrains.Application.Table.TablePartCatalogStorage.TypeBind(Int32`1令牌)上
位于JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext上下文)
位于JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OneError OneError,IComponentContainer)
在JetBrains.Application.Components.SingletonDescriptor.GetValue()中
位于JetBrains.Application.Components.InitializationStrategyDefault.Schedule(生存期,ICollection`1 dscs)
"
---外---
---例外#4/5[目标职业例外]
Message=“组件JetBrains.Application.SinceClr4.Extensions.JetPackagerRepositoryFactoryEnvironment组件[Singleton,损坏]构造失败。”
ExceptionPath=Root.InnerException
ClassName=System.Reflection.TargetInvocationException
InnerException=“根目录下的异常#3.InnerException.InnerException”
HResult=COR_E_targetination=8013604
---外---
---异常#5/5[日志异常]
Message=“组件JetBrains.application”
PS C:\somefolder> .\inspectcode.exe --help
JetBrains Inspect Code 2016.3.1
Running in 64-bit mode, .NET runtime 4.0.30319.42000 under Microsoft Windows NT 6.2.9200.0
Component JetBrains.Application.SinceClr4.Extensions.JetPackageRepositoryFactoryEnvironmentComponent [Singleton, Corrupted] construction has failed. Could not bind a part catalog assembly "JetBrains.Platform.Shell.SinceClr4, Version=107.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325" by loading from file C:
\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll. Could not load file or assembly 'file:///C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515.) An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

--- EXCEPTION #1/5 [NotSupportedException]
Message = "An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information."
ExceptionPath = Root.InnerException.InnerException.InnerException.InnerException
ClassName = System.NotSupportedException
HResult = COR_E_NOTSUPPORTED=80131515

--- Outer ---

--- EXCEPTION #2/5 [FileLoadException]
Message = "Could not load file or assembly 'file:///C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
ExceptionPath = Root.InnerException.InnerException.InnerException
ClassName = System.IO.FileLoadException
InnerException = "Exception #1 at Root.InnerException.InnerException.InnerException.InnerException"
HResult = COR_E_NOTSUPPORTED=80131515
Source = mscorlib
FileLoad_FileName = file:///C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll
StackTraceString = "
  at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
     at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
     at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
     at System.Reflection.Assembly.LoadFrom(String assemblyFile)
     at JetBrains.Application.Bindings.AssemblyMasterBinderOnDiskFiles.JetBrains.Application.Bindings.IAssemblyMasterBinder.BindToRuntimeAssembly(AssemblyNameInfo name, OnError onerror)
"

--- Outer ---

--- EXCEPTION #3/5 [InvalidOperationException]
Message = "Could not bind a part catalog assembly "JetBrains.Platform.Shell.SinceClr4, Version=107.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325" by loading from file C:\inspectcodeFolder\JetBrains.Platform.Shell.SinceClr4.dll."
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
InnerException = "Exception #2 at Root.InnerException.InnerException.InnerException"
HResult = COR_E_INVALIDOPERATION=80131509
Source = JetBrains.Platform.Util
StackTraceString = "
  at JetBrains.Util.OnError.<.cctor>b__18(Exception ex)
     at JetBrains.Application.Bindings.AssemblyMasterBinderOnDiskFiles.JetBrains.Application.Bindings.IAssemblyMasterBinder.BindToRuntimeAssembly(AssemblyNameInfo name, OnError onerror)
     at JetBrains.Application.Table.TablePartCatalogStorage.<>c__DisplayClass8.<.cctor>b__3(Int32`1 tk)
     at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
     at JetBrains.Application.Table.TablePartCatalogStorage.TypeBind(Int32`1 token)
     at JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor.CreateInstance(IValueResolveContext context)
     at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container)
     at JetBrains.Application.Components.SingletonDescriptor.GetValue()
     at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs)
"

--- Outer ---

--- EXCEPTION #4/5 [TargetInvocationException]
Message = "Component JetBrains.Application.SinceClr4.Extensions.JetPackageRepositoryFactoryEnvironmentComponent [Singleton, Corrupted] construction has failed."
ExceptionPath = Root.InnerException
ClassName = System.Reflection.TargetInvocationException
InnerException = "Exception #3 at Root.InnerException.InnerException"
HResult = COR_E_TARGETINVOCATION=80131604

--- Outer ---

--- EXCEPTION #5/5 [LoggerException]
Message = "Component JetBrains.Application.SinceClr4.Extensions.JetPackageRepositoryFactoryEnvironmentComponent [Singleton, Corrupted] construction has failed."
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = "Exception #4 at Root.InnerException"
HResult = COR_E_APPLICATION=80131600
StackTraceString = "
  at JetBrains.Util.Logging.Logger.LogException(Exception ex)
     at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, ICollection`1 dscs)
     at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection`1 descriptors)
     at JetBrains.Application.Components.ComponentStorage.Compose()
     at JetBrains.Application.Environment.JetEnvironment..ctor(Lifetime lifetime, JetHostParametersCaller host)
     at JetBrains.Application.Environment.JetEnvironment.<>c__DisplayClasse.<InternalCreate>b__b()
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     at JetBrains.Application.Environment.JetEnvironment.InternalCreate(LifetimeDefinition lifetimeDefinition, JetHostParametersCaller host, JetEnvironment& environment)
     at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
     at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, IProductInfo productInfo, String[] args)
     at JetBrains.CommandLine.Common.Console.Application.CommandLineProgram.<Run>b__1[TZone,TProductInfo](RunnerContext ctx)
"

Usage: InspectCode.exe [options] [project file]
Options:
  --config : Path to configuration file where parameters are specified (use 'config-create' option to create sample file).
  --config-create : Write command line parameters to specified file.
  --toolset : MsBuild toolset version. Highest available is used by default. Example: --toolset=12.0.
  --output (-o) : Write inspections report to specified file.
  --format (-f) : Write inspections report in specified format (Xml, Html, Txt).
  --absolute-paths (-a) :

Use absolute paths in inspections report (default: False).
  --no-swea : Force disable solution-wide analysis (default: False).
  --swea : Force enable solution-wide analysis (default: False).
  --project : Analyze only projects selected by provided wildcards (default: analyze all projects in solution).
  --profile (-p) : Path to the file to use custom settings from (default: Use R#'s solution shared settings if exists).
  --no-buildin-settings : Suppress global, solution and project settings profile usage. Alias for --disable-settings-layers:GlobalAll;GlobalPerProduct;SolutionShared;SolutionPersonal;ProjectShared;ProjectPersonal (default: False).
  --disable-settings-layers (-dsl) : Disable specified settings layers. Possible values: GlobalAll, GlobalPerProduct, SolutionShared, SolutionPersonal, ProjectShared, ProjectPersonal.
  --caches-home : Path to the directory where produced caches will be stored.
  --debug (-d) : Show debugging messages (default: False).
  --help (-h) : Show help and exit.
  --version (-v) : Show tool version and exit.
  --eXtensions (-x) : Install and use specified extensions.
  --properties : MSBuild properties.
  --targets-for-references : MSBuild targets. These targets will be executed to get referenced assemblies of projects..
  --targets-for-items : MSBuild targets. These targets will be executed to get other items (e.g. Compile item) of projects..
  --dumpIssuesTypes (-it) : Dump issues types (default: False).
Example:
  InspectCode.exe --caches-home="C:\Temp\Cache" -o="report.xml" "C:\src\MySolution.sln"