1. 02 9月, 2023 12 次提交
    • D
      Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230901.1 · 71a4700a
      dotnet-maestro[bot] 提交于
      Microsoft.SourceBuild.Intermediate.source-build-reference-packages
       From Version 8.0.0-alpha.1.23428.2 -> To Version 8.0.0-alpha.1.23451.1
      71a4700a
    • D
      Update dependencies from https://github.com/dotnet/arcade build 20230901.1 · 07b1473e
      dotnet-maestro[bot] 提交于
      Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 8.0.0-beta.23431.2 -> To Version 8.0.0-beta.23451.1
      07b1473e
    • D
    • D
      [release/8.0] Update dependencies from dotnet/roslyn (#91420) · 3a811f41
      dotnet-maestro[bot] 提交于
      * Update dependencies from https://github.com/dotnet/roslyn build 20230831.2
      
      Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
       From Version 4.8.0-3.23430.6 -> To Version 4.8.0-3.23431.2
      
      * Update dependencies from https://github.com/dotnet/roslyn build 20230831.4
      
      Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
       From Version 4.8.0-3.23430.6 -> To Version 4.8.0-3.23431.4
      
      * Update dependencies from https://github.com/dotnet/roslyn build 20230831.6
      
      Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
       From Version 4.8.0-3.23430.6 -> To Version 4.8.0-3.23431.6
      
      * Update dependencies from https://github.com/dotnet/roslyn build 20230831.7
      
      Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
       From Version 4.8.0-3.23430.6 -> To Version 4.8.0-3.23431.7
      
      * Update dependencies from https://github.com/dotnet/roslyn build 20230901.1
      
      Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
       From Version 4.8.0-3.23430.6 -> To Version 4.8.0-3.23451.1
      
      ---------
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      3a811f41
    • D
      [release/8.0] Update dependencies from dotnet/emsdk dotnet/arcade (#91423) · 7c8fc575
      dotnet-maestro[bot] 提交于
      * Update dependencies from https://github.com/dotnet/emsdk build 20230831.1
      
      Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
       From Version 8.0.0-rc.1.23415.5 -> To Version 8.0.0-rc.2.23431.1
      
      Dependency coherency updates
      
      runtime.linux-arm64.Microsoft.NETCore.Runtime.ObjWriter,runtime.linux-x64.Microsoft.NETCore.Runtime.ObjWriter,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.ObjWriter,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.ObjWriter,runtime.win-arm64.Microsoft.NETCore.Runtime.ObjWriter,runtime.win-x64.Microsoft.NETCore.Runtime.ObjWriter,runtime.osx-arm64.Microsoft.NETCore.Runtime.ObjWriter,runtime.osx-x64.Microsoft.NETCore.Runtime.ObjWriter,runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk,runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools
       From Version 16.0.5-alpha.1.23408.1 -> To Version 16.0.5-alpha.1.23423.1 (parent: Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport
      
      * Update dependencies from https://github.com/dotnet/arcade build 20230831.2
      
      Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 8.0.0-beta.23429.1 -> To Version 8.0.0-beta.23431.2
      
      ---------
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      7c8fc575
    • D
      Update dependencies from... · ed486355
      dotnet-maestro[bot] 提交于
      Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20230831.4 (#91462)
      
      optimization.linux-arm64.MIBC.Runtime , optimization.linux-x64.MIBC.Runtime , optimization.windows_nt-arm64.MIBC.Runtime , optimization.windows_nt-x64.MIBC.Runtime , optimization.windows_nt-x86.MIBC.Runtime , optimization.PGO.CoreCLR
       From Version 1.0.0-prerelease.23430.6 -> To Version 1.0.0-prerelease.23431.4
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      ed486355
    • G
      Fix LDTOKEN of methods that have modifiers (#91439) · 62b57fcc
      github-actions[bot] 提交于
      When we started generating custom modifiers into metadata format to support new function pointer APIs in #85504, we should have also added it to native layout format. We currently have a mismatch. This is a low risk bugfix to ignore modifiers on the metadata side. We'll want to do a full fix to actually emit and compare this. Tracked in a .NET 9 bug at #91381.
      
      No regression test because I spent too much time being puzzled at why https://github.com/Handlebars-Net/Handlebars.Net/blob/50614fd844e5360eb10e76154aa74da4d7bf12ce/source/Handlebars/Helpers/IHelperDescriptor.cs#L13 is generated as a custom modifier (`[in] !TOptions& modreq([netstandard]System.Runtime.InteropServices.InAttribute) options`) whereas if I do it, I get `[in] !T& 'value'` with a custom attribute. We'll want to write a proper set of tests with ambiguities for the bug I opened anyway.
      Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
      62b57fcc
    • G
      Fix runtime dispatch to static virtuals on interface types (#91440) · 2134e621
      github-actions[bot] 提交于
      We were not generating information about static virtuals on interface types. Information about default interface methods normally goes to the class, but if the T we're dispatching on is an interface, this information wasn't generated. The fix is to put this information into dispatch maps and sealed vtables, same way we do for classes.
      
      The test shows what the problem is - if we change `IBar` to be a class, things would work even before this PR.
      Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
      2134e621
    • G
      Fix arm64/arm32 cross-DAC (#91438) · 4d6f6bc3
      github-actions[bot] 提交于
      The precode code was incorrectly using the HOST_ARM64, HOST_ARM, etc. defines instead
      of the TARGET_ ones. This means the cross-DAC was using the wrong architectures
      *Precode::Type codes.
      Co-authored-by: NMike McLaughlin <mikem@microsoft.com>
      4d6f6bc3
    • G
      [release/8.0] [nodejs] Remove experimental wasm arguments from template (#91401) · dc652c10
      github-actions[bot] 提交于
      * Remove experimental wasm arguments from template and add them to features.md
      
      * Fix WBT
      
      * Use lowercase host in runtimeconfig.template.json
      
      * Override runtimeconfig only for wasmconsole
      
      ---------
      Co-authored-by: NMarek Fišera <mara@neptuo.com>
      Co-authored-by: NMarek Safar <marek.safar@gmail.com>
      dc652c10
    • G
      [release/8.0] Options Source Gen Fixes (#91432) · ee240567
      github-actions[bot] 提交于
      * Options Source Gen Fixes
      
      * Remove unnecessary interpolated string usage
      
      * Address the feedback
      
      * Remove repeated word in the comment
      
      ---------
      Co-authored-by: NTarek Mahmoud Sayed <tarekms@microsoft.com>
      ee240567
    • G
      [release/8.0] [Mono] Fix offset calculation for nested struct, when pinvoke is enabled (#91417) · cd8b2cb8
      github-actions[bot] 提交于
      * Fix offset calculation for nested struct
      
      * Add a test for nested struct with pinvoke
      
      * Move and update test with real c++ implementation
      
      * Exclude newly added test from wasm
      
      * Disable interop tests on android and apple devices
      
      ---------
      Co-authored-by: NFan Yang <yangfan@microsoft.com>
      cd8b2cb8
  2. 01 9月, 2023 3 次提交
    • G
      [release/8.0] [DependencyInjection] introduce feature switch to disable S.R.E (#91352) · 399f37c6
      github-actions[bot] 提交于
      * [DependencyInjection] introduce feature switch to disable S.R.E
      
      When recording a new AOT profile for .NET MAUI apps running on Android,
      we noticed that System.Reflection.Emit work was being done on a
      background thread. The call seen in `dotnet-trace` output:
      
          11.32ms microsoft.extensions.dependencyinjection!Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder.GenerateMethodBody(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite,System.Reflection.Emit.ILGenerator)
      
      .NET Android apps are unique in that there is a JIT,
      `RuntimeFeature.IsDynamicCodeCompiled` is true, System.Reflection.Emit
      is possible -- S.R.E is however, not great for startup performance.
      
      Starting threads on Android during startup can also be slow, as Android
      will commonly put all but a single core to sleep for battery saving
      purposes. We try to avoid starting threads on startup for "hello world"
      applications on Android.
      
      To solve this for now, introduce a new feature flag:
      
          Microsoft.Extensions.DependencyInjection.DisableDynamicEngine
      
      Which, we will provide a value in either the Android or .NET MAUI
      optional workload via an MSBuild property. To test, I put this in my
      app's `.csproj` file:
      
          <RuntimeHostConfigurationOption Include="Microsoft.Extensions.DependencyInjection.DisableDynamicEngine"
                                          Condition="'$(DisableDynamicEngine)' != ''"
                                          Value="$(DisableDynamicEngine)"
                                          Trim="true" />
      
      Customers *could* opt to change this flag, but we don't think it will
      particularly useful. An example of services realized by .NET MAUI at
      startup, via some logging added:
      
          08-25 13:21:55.647 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.IMauiInitializeService]
          08-25 13:21:55.664 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.IMauiInitializeScopedService]
          08-25 13:21:55.665 16530 16530 I DOTNET  : RealizeService called: Microsoft.Maui.Dispatching.IDispatcher
          08-25 13:21:55.668 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.LifecycleEvents.LifecycleEventRegistration]
          08-25 13:21:56.057 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.HandlerMauiAppBuilderExtensions+HandlerRegistration]
          08-25 13:21:56.115 16530 16530 I DOTNET  : RealizeService called: Microsoft.Extensions.DependencyInjection.IServiceScopeFactory
          08-25 13:21:56.670 16530 16530 I DOTNET  : RealizeService called: Microsoft.Maui.Controls.HideSoftInputOnTappedChangedManager
          08-25 13:21:56.712 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.ImageSourcesMauiAppBuilderExtensions+ImageSourceRegistration]
          08-25 13:21:57.700 16530 16530 I DOTNET  : RealizeService using S.R.E: Microsoft.Maui.Controls.HideSoftInputOnTappedChangedManager
      
      `HideSoftInputOnTappedChangedManager` would be realized once per page,
      which would not be a huge payoff to use S.R.E for. So the only way the
      S.R.E codepath could be useful on Android would be if the customer is
      registering lots of services themselves. They might be better off just
      using `new()` in that case?
      
      An example of the startup time Android reports with the new flag on/off:
      
          DisableDynamicEngine=false
          08-25 14:31:37.462  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +733ms
          08-25 14:31:39.394  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +737ms
          08-25 14:31:41.326  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +730ms
          DisableDynamicEngine=true
          08-25 14:32:20.233  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +724ms
          08-25 14:32:22.137  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +727ms
          08-25 14:32:24.042  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +716ms
      
      This was a `dotnet new maui` project, using dotnet/maui/main on a Pixel
      5 device.
      
      * Update docs/workflow/trimming/feature-switches.md
      Co-authored-by: NEric Erhardt <eric.erhardt@microsoft.com>
      
      ---------
      Co-authored-by: NJonathan Peppers <jonathan.peppers@microsoft.com>
      Co-authored-by: NJonathan Peppers <jonathan.peppers@gmail.com>
      Co-authored-by: NEric Erhardt <eric.erhardt@microsoft.com>
      399f37c6
    • G
      [release/8.0] Fix nullable annotation for Validator.TryValidateValue and ValidateValue (#91293) · 9c422ed3
      github-actions[bot] 提交于
      * Fix nullable annotation for Validator.TryValidateValue and ValidateValue
      
      * Revert Options source generator nullable annotation changes for Validator.TryValidateValue (#91305)
      
      * Fix nullable annotation for Validator.ValidateValue ref source (#91351)
      
      ---------
      Co-authored-by: NJeff Handley <jeffhandley@users.noreply.github.com>
      9c422ed3
    • L
  3. 31 8月, 2023 13 次提交
  4. 30 8月, 2023 10 次提交
  5. 29 8月, 2023 2 次提交