Code Monkey home page Code Monkey logo

modframework.net's People

Contributors

dependabot[bot] avatar lj-rawnet avatar signaturebeef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

orlovalexander

modframework.net's Issues

Allow CSharpLoader to resolve files from the executing directory

https://github.com/SignatureBeef/ModFramework.NET/blob/default/ModFramework.Modules.CSharp/CSharpLoader.cs loads assemblies from the working directory rather than the executing assembly's directory where most assemblies would be, which causes OTAPI.Patcher to fail when ran anywhere else. For what it's worth, it's easily circumvent-able and it's not crippling

~/runner/work/Open-Terraria-API
$ dotnet run --project OTAPI.Patcher/OTAPI.Patcher.csproj -patchTarget=p -latest=n --framework net6.0

Unhandled exception. System.Exception: Unable to resolve external reference: ModFramework.dll
   at ModFramework.Modules.CSharp.CSharpLoader.LoadExternalRefs(String path)+MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at ModFramework.Modules.CSharp.CSharpLoader.CreateMetaData()
   at OTAPI.Patcher.Targets.PCServerTarget.CompileAndReadShims(ModFwModder modder) in /home/runner/work/Open-Terraria-API/Open-Terraria-API/OTAPI.Patcher/Targets/PCServerTarget.cs:line 70
   at OTAPI.Patcher.Targets.PCServerTarget.<>c__DisplayClass32_0.<Patch>b__0(ModType modType, ModFwModder mm) in /home/runner/work/Open-Terraria-API/Open-Terraria-API/OTAPI.Patcher/Targets/PCServerTarget.cs:line 130
   at OTAPI.Patcher.Targets.PatchTargetExtensions.<>c__DisplayClass6_0.<Patch>g__OnApplying|1(ModType modType, ModFwModder modder) in /home/runner/work/Open-Terraria-API/Open-Terraria-API/OTAPI.Patcher/Targets/IPatchTarget.cs:line 180
   at ModFramework.ModContext.Apply(ModType modType, ModFwModder modder, IEnumerable`1 assemblies)
   at ModFramework.ModFwModder.Read()
   at OTAPI.Patcher.Targets.PatchTargetExtensions.Patch(IModPatchTarget target, String status, String input, String output, Boolean publicEverything, Func`3 onApplying, Action`2 print) in /home/runner/work/Open-Terraria-API/Open-Terraria-API/OTAPI.Patcher/Targets/IPatchTarget.cs:line 205
   at OTAPI.Patcher.Targets.PCServerTarget.Patch() in /home/runner/work/Open-Terraria-API/Open-Terraria-API/OTAPI.Patcher/Targets/PCServerTarget.cs:line 114
   at OTAPI.Patcher.Program.Main(String[] args) in /home/runner/work/Open-Terraria-API/Open-Terraria-API/OTAPI.Patcher/Program.cs:line 28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.