-
Notifications
You must be signed in to change notification settings - Fork 678
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
MSBuild - Xaml MarkupCompile passes slow #3905
Comments
@alwu-msft or @RealTommyKlein fyi |
Sure thing, close it as a duplicate unless you can use this issue to target / track optimizing the 2 Xaml compile tasks and targets. Might be simpler. The issue you linked seems to relate to upgrading to fix the performance regression issues. A drop-in replacement to these xaml tasks & targets or some pointers on addressing the build issues with msbuild flags would be much appreciated instead of code updates or upgrades. Shouldn't need to change code to fix build tooling performance? The build doesn't seem to take into account the fact that the xaml/cs files haven't changed, and looking internally at the .NET Framework code for those 2 compile tasks seem to have much room for perf tweaks. There are two other issues we're having which may be associated to these tasks:
I see this option. How do we pass it in to msbuild/will it help? How do we avoid the 2nd pass compilation?
Would be nice if a fix for performance regression could be backported for the community. Appreciate any help. |
@asears - unfortunately, there isn't much in the way of MSBuild flags to address the performance issue. The current slowness in the Windows.UI.Xaml compiler is due to its core logic of evaluating which .xaml files it needs to reparse. As far as MSBuild flags, it looks like you're looking at the documentation for the WPF compiler. The Windows.UI.Xaml compiler doesn't have that |
Closing as dupe and known issue. |
Describe the bug
References: dotnet/wpf#3954
When running msbuild against a uwp project, the steps to compile XAML are very slow performing in relation to other tasks.
Are there any improvements or caching that can be done to speed up compilation times related to XAML?
Running Windows 10.0.17763.0 XamlCompiler.
C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets
Steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
Screenshots
Sample of relevant csproj properties
Version Info
NuGet package version:
Analysis
Versions & Configurations
msbuild 16.8.2.56705
Triggering build perf test from command line. Visual Studio 2019 Enterprise is slower.
The text was updated successfully, but these errors were encountered: