MrAdviceWeaverPath not defined in Xamarin.Android project
See original GitHub issueIn a Xamarin.Android project the latest MrAdvice is failing to run.
'AssemblyPath' is not recognized as an internal or external command,
operable program or batch file.
C:\xxxxxxx\packages\MrAdvice.2.9.5\build\MrAdvice.targets(14,5): error MSB3073: The command " AssemblyPath="obj\Debug x86\90\xxxxxxx.Android.dll" ReferencePath="@obj\Debug x86\90\xxxxxxx.Android.dll.MrAdvice.ReferencePath.txt" ReferenceCopyLocalPaths="@obj\Debug x86\90\xxxxxxx.Android.dll.MrAdvice.LocalReferencePath.txt" AssemblyOriginatorKeyFile="" SignAssembly=""" exited with code 9009.
This is because property MrAdviceWeaverPath is not defined. Xamarin project doesn’t have $(TargetFrameworkIdentifier) as .NETFramework or .NETCoreApp or .NETStandard.
Using net5.0\MrAdvice.Weaver.exe seems to work fine so it might be a good idea to always use that one if $(TargetFrameworkIdentifier)’ not equals to ‘.NETFramework’
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Xamarin Android Resource file not found
Thinking that may be part of the issue, I've changed it to "_Android" and "AndroidApp", including changing the default namespace in the project...
Read more >"Resource" not defined in Xamarin.Android project (15.5.0 ...
This preview build seems to fix the freezing issue with Xamarin projects being cleaned that still exists in the current stable release.
Read more >Why am I getting this error on a new Xamarin Forms ...
Done building project "ColorGames.Android.csproj" -- FAILED. The Registry is already set to allow long file paths. Xamarin.
Read more >Unable to compile Xamarin.Android project in VS 2022 ...
I'm trying to update the Xamarin.Android app by moving the project files to a new project created with the "Android Application (Preview)" ...
Read more >Upgrading from Xamarin.Android to net7.0-android #14598
I just tried out if that path even works, so I created an empty "Android Application" project (not an "Android App (Xamarin)"), and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would be fine to close this bug as Xamarin is getting replaced with new .NET 6 Android and MrAdvice works well in .NET 6.
Thank you