0

我有一个适用于 1.6.6 版本的代码。例如这一行:

var root = new AstRootNode(null);

我决定将库更新到 1.7.0.0,现在我得到“'<>z__Aspects' 的类型初始化程序引发了异常。”。如果其他人遇到此问题,请帮助解决。

内部异常:

{"Could not load file or assembly 'Utility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"Utility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"}

堆栈跟踪:

   at Varigence.Utility.ComponentModel.VulcanNotifyPropertyChanged..ctor()
   at Varigence.Languages.Biml.AstNode..ctor(IFrameworkItem parentItem)
   at Varigence.Languages.Biml.AstRootNode..ctor(IFrameworkItem parentItem)
   at ConsoleApplication1.Program.Main(String[] args) in c:\Users\Nikolai\Documents\Visual Studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 14
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
4

0 回答 0