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

Cannot build project on mac #199

Open
Alex-Dobrynin opened this issue Nov 23, 2023 · 7 comments
Open

Cannot build project on mac #199

Alex-Dobrynin opened this issue Nov 23, 2023 · 7 comments

Comments

@Alex-Dobrynin
Copy link

Getting this error
/Users/mac/.nuget/packages/mradvice/2.13.0/build/MrAdvice.targets(3,3): Error MSB3073: The command "dotnet "/Users/mac/.nuget/packages/mradvice/2.13.0/build/../tools/net8.0/MrAdvice.Weaver.dll" AssemblyPath="obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll" ReferencePath="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.ReferencePath.txt" ReferenceCopyLocalPaths="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.LocalReferencePath.txt" AssemblyOriginatorKeyFile="" SignAssembly="false""

As i know, the command should be a bit different to build dll on mac

If you need assistance with mac, we can arrange a call

@picrap
Copy link
Member

picrap commented Nov 24, 2023

The output does not show the error. Do you have some more log ?

@Alex-Dobrynin
Copy link
Author

Alex-Dobrynin commented Nov 24, 2023

Target MrAdviceWeaver:
dotnet "/Users/mac/.nuget/packages/mradvice/2.13.0/build/../tools/net8.0/MrAdvice.Weaver.dll" AssemblyPath="obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll" ReferencePath="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.ReferencePath.txt" ReferenceCopyLocalPaths="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.LocalReferencePath.txt" AssemblyOriginatorKeyFile="" SignAssembly="false"
EXEC : * Internal error : System.IO.FileLoadException: Could not load file or assembly 'ErrorSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Loader.AssemblyLoadContext.InternalLoad(ReadOnlySpan1 arrAssembly, ReadOnlySpan1 arrSymbols)
at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore)
at ArxOne.MrAdvice.MrAdviceStitcher.Process(AssemblyStitcherContext context)
/Users/mac/.nuget/packages/mradvice/2.13.0/build/MrAdvice.targets(16,3): error MSB3073: The command "dotnet "/Users/mac/.nuget/packages/mradvice/2.13.0/build/../tools/net8.0/MrAdvice.Weaver.dll" AssemblyPath="obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll" ReferencePath="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.ReferencePath.txt" ReferenceCopyLocalPaths="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.LocalReferencePath.txt" AssemblyOriginatorKeyFile="" SignAssembly="false"" exited with code -1.
Done building target "MrAdviceWeaver" in project "ErrorSample.csproj" -- FAILED.

this is all VS gives me

@picrap
Copy link
Member

picrap commented Nov 24, 2023

What if you run the command

dotnet "/Users/mac/.nuget/packages/mradvice/2.13.0/build/../tools/net8.0/MrAdvice.Weaver.dll" AssemblyPath="obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll" ReferencePath="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.ReferencePath.txt" ReferenceCopyLocalPaths="@obj/Debug/net8.0-ios/iossimulator-x64/ErrorSample.dll.MrAdvice.LocalReferencePath.txt" AssemblyOriginatorKeyFile="" SignAssembly="false"

explicitly?

@Alex-Dobrynin
Copy link
Author

Alex-Dobrynin commented Nov 24, 2023

there is no ErrorSample.dll, so i cannot run it. And ErrorSample.dll is not existing because i cannot build the project

@picrap
Copy link
Member

picrap commented Nov 24, 2023

This is strange that there is no ErrorSample.dll since it is built by the compiler before MrAdvice processes it. Is there a build failure before?

@Alex-Dobrynin
Copy link
Author

I can build the project without MrAdvice and without any error

@Alex-Dobrynin
Copy link
Author

as i said, we can arrange a call, and i will share you my screen, if this helps you

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