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

.NET MAUI projects supported? #18481

Open
dhindrik opened this issue Jan 13, 2025 · 1 comment
Open

.NET MAUI projects supported? #18481

dhindrik opened this issue Jan 13, 2025 · 1 comment
Labels
question Further information is requested

Comments

@dhindrik
Copy link

We have used CodeQL for our .NET MAUI app for a while. But last time it was running successful was 13th November. Since than it failed, even if we still was on .NET 8.

We get a lot of errors like this:
{APP_PATH}\obj\Release\net9.0-windows10.0.19041.0\win10-x64\generated\Microsoft.Maui.Controls.SourceGen\Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator\App.xaml.sg.cs'.'

I guess it is because of code generation of XAML.

So is .NET MAUI projects supported? If I look at the docs I cannot see .NET MAUI there. I a look back and I can also see that we never had any issues reported even if the run succeed.

Image
Image from, https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/

We have an requirement to run CodeQL on all our repositories, but if it is not supported for .NET MAUI projects we need to explain it for the managers and looking for options.

@dhindrik dhindrik added the question Further information is requested label Jan 13, 2025
@tamasvajk
Copy link
Contributor

I've tried the following to reproduce your issue:

dotnet workload install maui
dotnet new maui --name maui1   
cd maui1
dotnet build -f net9.0-maccatalyst /t:rebuild

The above built the application successfully, so then I tried the below, which created a database:

codeql database create DB1 --language=csharp --command="dotnet build -f net9.0-maccatalyst /t:rebuild"

Could you give a bit more context on the errors that you see? Would you be able to provide a minimal repro of your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants