Closed devperson closed 2 months ago
It seems that the compiler background process crashed.
You can try disabling this background adding this to your project: <UseSharedCompilation>False</UseSharedCompilation>
but this makes the build significantly slower.
Note that running the compiler under Mono is neither tested nor supported. There is little chance we might support it since I see that the platform is scheduled for deprecation.
Hi @gfraiteur I tried to use <UseSharedCompilation>False</UseSharedCompilation>
but this didn't help. Can you please suggest any CI service like AppCenter.ms that can compile the Metalama? Maybe Azure DevOps?
Hi @devperson, you can compile projects with Metalama using any continuous integration tool, that uses .NET SDK on its build agents. Here are some examples to choose from: Azure Pipelines on Azure DevOps, GitHub Actions, TeamCity, Jenkins, Bamboo, GoCD, BuildKite, CircleCI, Semaphore CI, Travis CI.
@devperson With UseSharedCompilation
I hoped you would get a better error message. Did you get any?
Hi gfraiteur, Thanks for the CI list. When I use the <UseSharedCompilation>False</UseSharedCompilation>
attribute I get the same error. Also, I could reproduce the issue in my Macbook with Visual Studio for Mac.
Thank you for the feedback.
Our decision is that the scenario (running Metalama under Mono) is not and will not be supported.
Hello, I am using the
OverrideMethodAspect
of the Metalama framework to create a logging attribute. It works and I can build in my Visual Studio 2022 and run the app(I see logging works in output). I would like to use it in my projects but I have one issue: The source code with Metalama framework fails to build at Build Server. I useAppCenter.ms
to build all my projects. Here is the error that I see in the AppCenter build logs:Metalama
version 2024.1.14AppCenter
usesMono
6.12 to build .Net projects