Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono assemblies folder structure changed. #3

Open
zetashift opened this issue Jan 30, 2020 · 7 comments
Open

Mono assemblies folder structure changed. #3

zetashift opened this issue Jan 30, 2020 · 7 comments

Comments

@zetashift
Copy link

So I'm not well known in the dotnet world especially with Core and NET project files. But since 3.2 I think the assemblies(the dlls) are placed in /.mono/assemblies/$(ApiConfiguration)/ where $(ApiConfiguration) is either a Release folder or a Debug folder. So once has to manually change the fsproj to reflect that.

I'm not sure how to fix this since I'm not familiar with the whole *proj file format. Any tips?

@zetashift
Copy link
Author

I am closing this issue, with godot's NET plans and no answer for a minute, I think it's best if I just wait this one out.

@willnationsdev
Copy link
Owner

I must've missed this in the past, but someone recently brought it to my attention on Reddit. I'm going to try and look into it. Thanks for reporting it!

Seems like this is the incriminating line.

@MozarellaMan
Copy link

Any updates? I've just found out that it's even possible to use F# with Godot - I'm really curious at what my C# code would look like in F#

@zetashift
Copy link
Author

@MozarellaMan This tool just made things easier, you can still use F# by (from my findings):

  1. in your fsproj reference GodotSharp.dll, your F# project should be of type library
  2. in your csproj, that Godot created, reference your fsproj
  3. empty the contents of the class that Godot's C# script created and make it inherit from your F# class.

For some extra details check the parts here: http://www.lkokemohr.de/fsharp_godot.html .
However some small things might be outdated.

@zetashift
Copy link
Author

I'm really bad at the .NET ecosystem, but I might have found some ways to lighten the load of So for "the dotnet tool from Microsoft does not support adding items to projects ("Really? Seriously? Professional stuff here guys")."

Ionide uses Forge to add an item to add to a project, could we leverage this in a way, or is this overengineering? :P
https://github.com/ionide/ionide-vscode-fsharp/blob/6601f35eea75577f5fd697a804e558a52cd98efb/src/Components/Forge.fs#L70

@willnationsdev
Copy link
Owner

willnationsdev commented Jan 30, 2021

@zetashift I forgot about this issue (so many things to keep track of these days) <_<, but as far as Forge goes, I think that'd definitely be overengineering. Would rather implement a local solution that just deals with the XML update than take on a third-party super-generic tool as a dependency. Since there are plenty of F# users who don't use it.

@zetashift
Copy link
Author

Totally understand the so many things to keep track of thing!
A local solution is the way then.

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

No branches or pull requests

3 participants