STALKER_ Posted August 8 Report Share Posted August 8 Anytime I compile a mod and try to run it, this error appears in the client-main log: An exception was thrown when trying to load assembly: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit) at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit) at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T](Assembly element) at Vintagestory.Common.ModContainer.<>c__DisplayClass33_0.<LoadAssembly>b__1(Assembly ass) in C:\Users\Tyron\Documents\vintagestory\game-net4\VintagestoryLib\Common\API\ModContainer.cs:line 360 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Vintagestory.Common.ModContainer.LoadAssembly(ModCompilationContext compilationContext, ModAssemblyLoader loader) in C:\Users\Tyron\Documents\vintagestory\game-net4\VintagestoryLib\Common\API\ModContainer.cs:line 357 I looked in the directory listed in the dependency and found the System.Runtime file, so I don't know what the problem is. If anyone can tell me how to fix this, it would be much appreciated. Link to comment Share on other sites More sharing options...
l33tmaan Posted August 8 Report Share Posted August 8 Are you on a net 7 version of Vintage Story? I ask this every day. Every single day. Link to comment Share on other sites More sharing options...
STALKER_ Posted August 8 Author Report Share Posted August 8 I'm on 1.18.7. Link to comment Share on other sites More sharing options...
l33tmaan Posted August 9 Report Share Posted August 9 You will need a net 7 version of 1.18.6 or 1.18.8-rc. 1 Link to comment Share on other sites More sharing options...
STALKER_ Posted August 9 Author Report Share Posted August 9 How do modders make code mods run on 1.18.7 then? Do they target a different net version when they compile? Link to comment Share on other sites More sharing options...
Bossman Posted August 10 Report Share Posted August 10 They target .NET 4, though the point might be moot now that 1.18.8 is stable, and all future versions will be .NET 7 only. 1 Link to comment Share on other sites More sharing options...
STALKER_ Posted August 10 Author Report Share Posted August 10 I didn't notice that 1.18.8 was stable, just updated my game to it. The compiled mods now work. Thanks a lot for the help guys! Link to comment Share on other sites More sharing options...
Recommended Posts