Skip to content

Conversation

@wwwDayDream
Copy link
Contributor

Expands functionality of BepInEx.PluginInfoProps' auto-generation.

I won't get into the debate of using F# to mod, but adding support is somewhat trivial, with the exception of F#'s dependency-based compilation order throwing a wrench in the plans. Thankfully, or maybe regrettably, detecting the language via project file extension is easy enough to then determine file contents, extension, and how we handle compilation insertion.

Traditionally, the <Compile> is all that's necessary, but FSharp's compiler will take that as the final file and so it won't be visible by any <Compile> files declared before it (which is all the .fsproj files). In order to avoid this, we store the compile into an interim item and reinsert it after we add MyPluginInfo's compile tag. Woohoo, just like that we supprt MyPluginInfo goodness in a few more mods in all of the ecosystem; but hey! "Functionality" (ᵖˡᵘˢ ⁱ'ᵈ ˡᵒᵛᵉ ⁱᵗ ˡᵒˡ)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant