Skip to content

Commit 90d5d80

Browse files
authored
Merge branch 'dotnet:main' into applying-visibility-change-to-child-controls
2 parents fcecd5a + a6c9997 commit 90d5d80

File tree

98 files changed

+2599
-2948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2599
-2948
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222
},
2323
"microsoft.dotnet.xharness.cli": {
24-
"version": "9.0.0-prerelease.24066.3",
24+
"version": "9.0.0-prerelease.24077.1",
2525
"commands": [
2626
"xharness"
2727
]

.github/CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ Please refer to our [Pull Request template](PULL_REQUEST_TEMPLATE.md).
3535

3636
Please check the "Allow edits from maintainers" checkbox on your pull request. This allows us to quickly make minor fixes and resolve conflicts for you.
3737

38+
### Performance-related Changes
39+
40+
Performance improvements can be tricky to get right, and can sometimes have unexpected consequences and impact code readability. If you're considering a performance-related change, here are a few things to keep in mind:
41+
42+
1. **Profile a real-world application**: Before making any performance-related changes, profile a real-world application (or at least a sample project) to understand where the bottlenecks are. This will help you understand if your change is actually improving performance, and if it's improving the right thing. We want to avoid micro-optimizations that don't actually improve real-world .NET MAUI applications.
43+
44+
See [our profiling wiki](https://aka.ms/profile-maui) for instructions on how to profile a .NET MAUI application.
45+
46+
2. **Benchmark your change**: If you're making a performance-related change, please include benchmarks in your pull request. This will help us understand the impact of your change, and will help us avoid performance regressions in the future.
47+
48+
Provide before & after numbers using BenchmarkDotNet where possible. See our existing [BenchmarkDotNet project](../src/Core/tests/Benchmarks/) for examples.
49+
50+
If a BenchmarkDotNet test case is not possible, share before & after profiling information from Visual Studio, `dotnet-trace`, etc. Keep in mind that sampling profilers can be inaccurate, so someone from the .NET MAUI team may need to reproduce your results before merging your change.
51+
52+
3. **Preserve existing behavior**: If you're making a performance-related change, please make sure that you're not changing the behavior of the code. For example, if you're changing the implementation of a method, make sure that the new implementation returns the same results as the old implementation. In some cases, you may need to add new unit tests to ensure that the behavior of the code hasn't changed.
53+
54+
4. **Avoid impacting readability**: Performance-related changes can sometimes make code harder to read and understand. In many cases, it will be worth it if the payoff is significant, but please be mindful of the trade-offs. Write code comments and unit tests to help others understand the code in the future.
55+
3856
## Proposals/Enhancements/Suggestions
3957

4058
To propose a change or new feature, open an issue using the [Feature request template](https://github.com/dotnet/maui/issues/new?assignees=&labels=proposal-open%2C+t%2Fenhancement+➕&template=feature_request.md&title=[Enhancement]+YOUR+IDEA!). You may also use the [Spec template](https://github.com/dotnet/maui/issues/new?assignees=&labels=proposal-open%2C+t%2Fenhancement+➕&template=spec.md&title=[Spec]++) if you have an idea of what the API should look like. Be sure to also browse current issues and [discussions](https://github.com/dotnet/maui/discussions) that may be related to what you have in mind.

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<!--
7777
Workaround for https://github.com/microsoft/WindowsAppSDK/issues/2684
7878
-->
79-
<Import Project="src\Core\src\nuget\buildTransitive\WinUI.Unpackaged.targets" Condition=" '$(WindowsPackageType)' == 'None' and '$(_MauiTargetPlatformIsWindows)' == 'True' " />
79+
<Import Project="src\Core\src\nuget\buildTransitive\WinUI.targets" Condition=" '$(WindowsPackageType)' == 'None' and '$(_MauiTargetPlatformIsWindows)' == 'True' " />
8080

8181
<!-- NuGet package information -->
8282
<PropertyGroup Condition="'$(IsPackable)' == 'true'">

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<Dependencies>
22
<ProductDependencies>
3-
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Common" Version="9.0.0-prerelease.24066.3">
3+
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Common" Version="9.0.0-prerelease.24077.1">
44
<Uri>https://github.com/dotnet/xharness</Uri>
5-
<Sha>fa3b643cc0b028ae875546b7527927adcfcd9348</Sha>
5+
<Sha>f49b5c0db06528a9580686a5b63b0e5b4aba566b</Sha>
66
</Dependency>
7-
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Xunit" Version="9.0.0-prerelease.24066.3">
7+
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Xunit" Version="9.0.0-prerelease.24077.1">
88
<Uri>https://github.com/dotnet/xharness</Uri>
9-
<Sha>fa3b643cc0b028ae875546b7527927adcfcd9348</Sha>
9+
<Sha>f49b5c0db06528a9580686a5b63b0e5b4aba566b</Sha>
1010
</Dependency>
11-
<Dependency Name="Microsoft.DotNet.XHarness.CLI" Version="9.0.0-prerelease.24066.3">
11+
<Dependency Name="Microsoft.DotNet.XHarness.CLI" Version="9.0.0-prerelease.24077.1">
1212
<Uri>https://github.com/dotnet/xharness</Uri>
13-
<Sha>fa3b643cc0b028ae875546b7527927adcfcd9348</Sha>
13+
<Sha>f49b5c0db06528a9580686a5b63b0e5b4aba566b</Sha>
1414
</Dependency>
1515
</ProductDependencies>
1616
</Dependencies>

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
<_HarfBuzzSharpVersion>7.3.0</_HarfBuzzSharpVersion>
7979
<_SkiaSharpNativeAssetsVersion>0.0.0-commit.e2c5c86249621857107c779af0f79b4d06613766.655</_SkiaSharpNativeAssetsVersion>
8080
<MicrosoftTemplateEngineTasksVersion>7.0.114</MicrosoftTemplateEngineTasksVersion>
81-
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>9.0.0-prerelease.24066.3</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
82-
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>9.0.0-prerelease.24066.3</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
83-
<MicrosoftDotNetXHarnessCLIVersion>9.0.0-prerelease.24066.3</MicrosoftDotNetXHarnessCLIVersion>
81+
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>9.0.0-prerelease.24077.1</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
82+
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>9.0.0-prerelease.24077.1</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
83+
<MicrosoftDotNetXHarnessCLIVersion>9.0.0-prerelease.24077.1</MicrosoftDotNetXHarnessCLIVersion>
8484
<TizenUIExtensionsVersion>0.9.2</TizenUIExtensionsVersion>
8585
<SvgSkiaPackageVersion>0.5.13</SvgSkiaPackageVersion>
8686
<FizzlerPackageVersion>1.2.0</FizzlerPackageVersion>

eng/pipelines/common/maui-templates.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ parameters:
4242
artifact: templates-run-android
4343
- name: $(iosTestsVmPool)
4444
vmImage: $(iosTestsVmImage)
45+
demands:
46+
- macOS.Name -equals Ventura
47+
- macOS.Architecture -equals x64
4548
testName: RunOniOS
4649
artifact: templates-run-ios
4750

eng/pipelines/handlers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,4 @@ stages:
304304
enableCodeInspector: true
305305
apiScanEnabled: true
306306
apiScanSoftwareName: 'MAUI'
307-
apiScanSoftwareVersionNum: $(Build.BuildNumber)
307+
apiScanSoftwareVersionNum: 8.0

src/Controls/Maps/src/AppHostBuilderExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ public static IMauiHandlersCollection AddMauiMaps(this IMauiHandlersCollection h
6363
handlersCollection.AddHandler<Pin, MapPinHandler>();
6464
handlersCollection.AddHandler<MapElement, MapElementHandler>();
6565
#endif
66+
67+
#if WINDOWS
68+
throw new NotImplementedException(".NET MAUI Maps is currently not implemented for Windows. For more information, please see: https://aka.ms/maui-maps-no-windows");
69+
#else
6670
return handlersCollection;
71+
#endif
6772
}
6873
}
6974
}

0 commit comments

Comments
 (0)