-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[XamlC] Disable XamlC on non-Release builds #1087
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
Conversation
3a95fd6 to
c71ddcd
Compare
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <PropertyGroup> | ||
| <MauiKeepXamlResources>True</MauiKeepXamlResources> | ||
| <_MauiForceXamlCForDebug>True</_MauiForceXamlCForDebug> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we do False by default?
|
That targets file is only loaded in the Xaml.unittests context. So the default is False everywhere else
… On 26 May 2021, at 21:39, Jonathan Dick ***@***.***> wrote:
@Redth commented on this pull request.
In .nuspec/Microsoft.Maui.Controls.Debug.targets:
> @@ -1,6 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MauiKeepXamlResources>True</MauiKeepXamlResources>
+ <_MauiForceXamlCForDebug>True</_MauiForceXamlCForDebug>
How about we do False by default?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
| Condition=" '$(DesignTimeBuild)' != 'True' AND '@(MauiXaml)' != ''"> | ||
| <PropertyGroup> | ||
| <_MauiXamlCValidateOnly>$(MauiXamlCValidateOnly)</_MauiXamlCValidateOnly> | ||
| <_MauiXamlCValidateOnly Condition="'$(Configuration)' != 'Release' AND '$(_MauiForceXamlCForDebug)' != 'True'">True</_MauiXamlCValidateOnly> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an FYI a user can name their $(Configuration) anything. So like this wouldn't work for an AppStore configuration.
It might be better to check other properties for this like $(Optimize) or $(DebugSymbols).
You wouldn't need to check $(EmbedAssembliesIntoApk), but this is what Xamarin.Android has used for a long time:
Description of Change
Disable XamlC (but still validate on non-Release builds
PR Checklist
Does this PR touch anything that might affect accessibility?
If any of the above checkboxes apply to your PR, then the PR will need to provide testing to demonstrate that accessibility still works.