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

Fody.MethodDecorator #47 #48

Closed
Alex1234x opened this issue Jul 31, 2024 · 3 comments
Closed

Fody.MethodDecorator #47 #48

Alex1234x opened this issue Jul 31, 2024 · 3 comments

Comments

@Alex1234x
Copy link

Alex1234x commented Jul 31, 2024

Good afternoon.

I’m very sorry for my stupidity, but I can’t figure out this probably not complicated, but incomprehensible process for me.

I copied the files from your project and added the description from your project's manifest.json file to an empty new project. Now the folder structure of the project is completely empty and files have been added.

\Packages                                                                                                                                                                                                                                     
<DIR>	com.vovgou.loxodon-framework-fody
<DIR>	com.vovgou.loxodon-framework-fody-bindingproxy
<DIR>	com.vovgou.loxodon-framework-fody-propertychanged
<DIR>	com.vovgou.loxodon-framework-fody-tostring
	manifest.json
\Assets\LoxodonFramework\Editor\AppData
<DIR>	Fody
	Fody.meta

I want the MethodDecorator to work, for this I need to copy it somewhere and connect it somehow, like how I need to create and fill in FodyWeavers.xml
I don't understand what exactly and where to copy from https://github.com/Fody/MethodDecorator/tree/master
Please be so kind as to tell us in detail.

Loxodon Framework Fody1
Loxodon Framework Fody2
Loxodon Framework Fody3

Originally posted by @Alex1234x in #47 (comment)

@vovgou
Copy link
Owner

vovgou commented Aug 1, 2024

The libraries you need are on https://www.nuget.org/. You should download them from nuget, and then refer to my project structure and put them into Unity's Packages directory.

@Alex1234x
Copy link
Author

Hello. I'm install NuGet for Unity
https://github.com/GlitchEnzo/NuGetForUnity
NugetForUnity

Via this NuGet package manager i'm installed MethodDecorator.Fody
MethodDecoratorFromNuGet

As a result, two folders appear in the project.
Assets/Packages/Fody.6.2.0
Assets/Packages/MethodDecorator.Fody.1.1.1

MethodDecoratorInstalled

Did I do everything right? Is it okay that it turns out that Fody is installed twice - the one in your library and the one that was installed when you installed MethodDecorator?
After all, your library already has Loxodon Framework Fody

And when running the test, it swears that
The assembly has already been processed by Fody. Weaving aborted. Path: Library/ScriptAssemblies/Assembly-CSharp.dll
Test
LogMethodAttribute.cs.txt
TestMonoBehaviour.cs.txt

@vovgou vovgou closed this as completed Sep 2, 2024
@Alex1234x
Copy link
Author

Alex1234x commented Sep 3, 2024 via email

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

2 participants