I'm updating my slimtimer plugin for fd4. I've managed to get it built and running fine in C# express debugging, however when I build for release, and copy into my working copy plugins folder I get the following error on running fd.
Could not load file or assembly 'file:///C:\Users\Phil\AppData\Local\FlashDevelop\Plugins\SlimTimer.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at FlashDevelop.Utilities.PluginServices.AddPlugin(String fileName)
at FlashDevelop.Utilities.PluginServices.FindPlugins(String path)
I get the same error if I copy in the built sample plugin.