-
Notifications
You must be signed in to change notification settings - Fork 511
CoreRT and MrAdvice compiler chain incompatibility #6138
Comments
@sbomer This is the problem with colliding post-build steps that we have seen in other places. I am pretty sure that ILLinker is going to hit the same problem with MrAdvice as well. Have we done anything towards fixing it? |
Hi guys, any note about this issue? |
@hhblaze, we unfortunately don't have a solution for the interaction between IL transformation tools. The issue is that we don't have a supported extension point: dotnet/sdk#2583. However, the above error looks like something different to me - it's not finding a dependency of the MrAdvice assembly (it's looking for |
I think we'll make changes to MrAdvice weaver once everything is clear here. |
@sbomer before publishing to CoreRT it is a valid .NET Core app that works together with MrAdvice |
@hhblaze, I gave the sample above a try without CoreRT, and I hit a similar issue in MrAdvice. Could you try this again, with the same publish command as above, and let me know if you see the same? At the moment I believe this is due to MrAdvice not working when using the .NET Core version of msbuild. |
I'm not the boss here, do as you want 😉. |
MrAdvice is a free aspect weaver for .NET family (alternative to Postsharp)
has such nuget .target file definition
it runs the MrAdvice.Weaver.exe, after compilation to IL, to transform the assembly.
Only after that it had to be picked up by CoreRT that is not happening due to the CoreRT compile chain logic.
If it is just added into the project as NuGet package the CoreRT toolchain fails with:
Removing MrAdvice from the NuGet references leads to a successful compilation.
Here is also a MrAdvice linked issue
Question: what should be changed in declarations of MrAdvice (or extra configurations of CoreRT should be done) to make these two projects compatible?
The text was updated successfully, but these errors were encountered: