-
Notifications
You must be signed in to change notification settings - Fork 73
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
Simple project fails #20
Comments
Hm, did you find any solution? I tried it building with dotnetcore2.0 target framework and the latest version of our aspect and it doesn't work. @Ralf1108 Do you have an idea? The project looks very simple. |
@damageboy Could you try to build it with Visual Studio (not CLI)? |
@marcells It works in VS on windows... So now we have issues with command line build and linux only? |
Looks so. Hm, I seriously have no idea, what it could be. |
So, the following we tried: VS: -> Working So, it's a dotnet sdk specific issue. But no idea, what is done different there. |
@marcells right. Since Fody officially support dotnet a dn SDK style projects, there must be something specific with this AddIn... Is there an easy way to debug the adding at work? |
That could work. The weaving process happens during the build time. Never tried using Debugger.Break() when building on Linux. Let's see what will happen. |
@damageboy |
Could this be related? Fody/Fody#330 |
No, I think that was an other issue. Our weaver is called properly. But it throws an exception while looking for method references. Maybe it's a Mono.Cecil or FodyCecil issue. |
This happens on windows too, as long as you build using |
So I have a change that fixes this. That is, it allows me to weave and run the given sample project with The issue is that when the weaver creates an instance of So fortunately, it's simple to fix. Unfortunately, because the issue only occurs when you're weaving an assembly that's targeting a different mscorlib than the weaver, I haven't the foggiest idea how to write a test for this. Should I just skip that and submit a PR? Or does someone else have an idea how to write such a test? |
Awesome, that you found the issue. I have no good idea, too. Maybe @Ralf1108 has one? If not, I would suggest, you make a comment in the source code and exceptionally skip the test. |
hm.. this sounds complicated :-) |
Fixed dotnet core weaver using wrong mscorlib. Issue #20
I've prepared the simple dotnet-cli based project and it fails to build:
Here's the project itself...
https://github.com/damageboy/fodytest
And the error:
The text was updated successfully, but these errors were encountered: