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

XamlCompiler.exe needs better logs #9813

Open
azchohfi opened this issue Jul 12, 2024 · 0 comments
Open

XamlCompiler.exe needs better logs #9813

azchohfi opened this issue Jul 12, 2024 · 0 comments
Labels
area-XamlCompiler bug Something isn't working team-Markup Issue for the Markup team

Comments

@azchohfi
Copy link
Contributor

Describe the bug

Related to: #8871

There is no way to understand what is happening when XamlCompiler fails. It only returns -1, wven with diagnostic build on dotnet build.

Steps to reproduce the bug

I've tested this with 1.5 and 1.6 experimental 2, and the behavior is the same.
If the xaml compiler fails for whanever reason, there is no way to get the logs on a CI build.
-> buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets (590):

        <Exec Condition="'$(UseXamlCompilerExecutable)' == 'true'" Command='"$(XamlCompilerExePath)" "$(XamlCompilerExeInputJson)" "$(XamlCompilerExeOutputJson)"' />

There is absolutely nothing else being passed to the xaml compiler, no verbosity, so it doesn't log anything anywhere.

Expected behavior

Whenever there is a MSB3073 error, it should not simply say "xamlcompiler.exe exited with code 1."

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6 Experimental 2: 1.6.240701003-experimental2

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@azchohfi azchohfi added the bug Something isn't working label Jul 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jul 12, 2024
@codendone codendone added area-XamlCompiler team-Markup Issue for the Markup team and removed needs-triage Issue needs to be triaged by the area owners labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-XamlCompiler bug Something isn't working team-Markup Issue for the Markup team
Projects
None yet
Development

No branches or pull requests

2 participants