1. 19 6月, 2023 2 次提交
    • J
      Merged PR 32017: [7.0] Fix regression loading null-password encrypted PFX certificates · 4b055094
      Jeff Handley 提交于
      When decrypting the payload with empty string and null passwords, try reading the payload with the Asn reader to ensure the header matches the expected format. If that succeeds, then proceed with the iteration counting. This guards against a false-positive match that previously caused our iteration count work to throw/abort, thus preventing some null-password encrypted payloads from being loaded.
      4b055094
    • C
      [release/7.0-staging] Reset OOB packages from 7.0.7 (#86300) · 39f999ff
      Carlos Sánchez López 提交于
      * Reset Microsoft.Extensions.Hosting.WindowsServices
      
      * Reset Microsoft.Windows.Compatibility
      
      * Reset System.ServiceProcess.ServiceController
      
      * Reset Microsoft.NETCore.Platforms
      
      * Reset Microsoft.Extensions.Logging.Abstractions (from last month)
      
      * Reset System.DirectoryServices.Protocols (from last month)
      
      * Reset System.Management (from last month)
      
      * Reset System.Reflection.Metadata (from last month)
      
      * Reset System.Text.Json (from last month)
      39f999ff
  2. 05 5月, 2023 1 次提交
    • E
      [release/7.0-staging] Make WindowsServiceLifetime gracefully stop (#85656) · c8ab0d33
      Eric StJohn 提交于
      * Make WindowsServiceLifetime gracefully stop (#83892)
      
      * Make WindowsServiceLifetime gracefully stop
      
      WindowsServiceLifetime was not waiting for ServiceBase to stop the service.  As a result
      we would sometimes end the process before notifying service control manager that the service
      had stopped -- resulting in an error in the eventlog and sometimes a service restart.
      
      We also were permitting multiple calls to Stop to occur - through SCM callbacks, and through
      public API.  We must not call SetServiceStatus again once the service is marked as stopped.
      
      * Alternate approach to ensuring we only ever set STATE_STOPPED once.
      
      * Avoid calling ServiceBase.Stop on stopped service
      
      I fixed double-calling STATE_STOPPED in ServiceBase, but this fix will
      not be present on .NETFramework.  Workaround that by avoiding calling
      ServiceBase.Stop when the service has already been stopped by SCM.
      
      * Add tests for WindowsServiceLifetime
      
      These tests leverage RemoteExecutor to avoid creating a separate service
      assembly.
      
      * Respond to feedback and add more tests.
      
      This better integrates with the RemoteExecutor component as well,
      by hooking up the service process and fetching its handle.
      
      This gives us the correct logging and exitcode handling from
      RemoteExecutor.
      
      * Honor Cancellation in StopAsync
      
      * Fix bindingRedirects in RemoteExecutor
      
      * Use Async lambdas for service testing
      
      * Fix issue on Win7 where duplicate service descriptions are disallowed
      
      * Respond to feedback
      
      * Fix comment and add timeout
      
      * Fix test condition
      
      * Enable M.E.H.WindowsServices and S.SP.ServiceController for servicing
      
      * Make service wait on its state before stopping (#84447)
      
      * Fix WindowsService Tests where RemoteExecutor is unsupported
      
      * Enable MS.W.C for servicing
      
      * Reference latest Microsoft.Extensions.Logging.Abstractions
      
      This package has been serviced and we compile against the serviced
      version of its assemblies.
      
      None of the directly referenced projects have been serviced so our
      package doesn't restore the serviced versions.
      
      Lift up the dependency on Logging.Abstractions to ensure we reference
      the serviced package.
      
      ---------
      Co-authored-by: NVladimir Sadov <vsadov@microsoft.com>
      c8ab0d33
  3. 07 4月, 2023 1 次提交
    • E
      [release/7.0] Fix pinned assembly version 7.0 (#84355) · c2d65948
      Eric StJohn 提交于
      * Eight packable projects pin their assembly version for .NET Framework compatibility. The incremental package servicing infrastructure didn't check if the assembly version is pinned and changed it during servicing.
      
      As an example, System.Speech pins its assembly version to 4.0.0.0 but that version gets overwritten during servicing. I.e. for .NET 7 the version would then change to "7.0.0.$(ServicingVersion)" which is incorrect.
      
      Please find the full list of impacted assemblies below:
      - System.ComponentModel.Composition
      - System.DirectoryServices
      - System.DirectoryServices.AccountManagement
      - System.DirectoryServices.Protocols
      - System.Management
      - System.Reflection.Context
      - System.Runtime.Caching
      - System.Speech
      
      For System.DirectoryServices.Protocols and System.Management we'll only pin the version for the .NETStandard assembly since those previously shipped the newer versions in servicing.
      
      * Enable System.Management and System.DirectoryServices.Protocols in servicing
      
      * Address feedback
      c2d65948
  4. 29 3月, 2023 1 次提交
  5. 17 3月, 2023 1 次提交
  6. 01 10月, 2021 1 次提交
  7. 09 9月, 2021 1 次提交
  8. 07 9月, 2021 1 次提交
  9. 06 8月, 2021 1 次提交
    • V
      Clean-up pkgproj leftovers in libs and apply fixes (#56899) · 22cee85a
      Viktor Hofer 提交于
      * Clean-up pkgproj leftovers in libs and apply fixes
      
      Remove any pkgproj infrastructure that was only used by src/libraries
      (which is the majority). Delete the packageindex *YAY*.
      Update the documentation that covered the packageindex and the pkgprojs.
      
      Avoid any incremental builds during packaging by removing
      libraries-packages.proj and use src.proj for packaging instead. Make use
      of the `GeneratePackageOnBuild` property to build package during the
      allconfigurations without requiring a different entry target.
      
      Fix the addition of the DocumentationFile during packaging when
      `GeneratePackageOnBuid` is used by hooking onto the
      `DocumentationProjectOutputGroup` that NuGet uses and replacing the
      generated documentation file with the one that comes via the
      intellisense package.
      Also introduce a property to choose the generated documentation file
      over the one from the intellisense package:
      <UseIntellisenseDocumentationFile>false</UseIntellisenseDocumentationFile>
      
      Removing a few leftover PackageDescription properties from the projects'
      Directory.Build.props file.
      
      Cleaning up properties in Directory.Build.props & Directory.Build.targets
      files.
      
      * Actually run packaging during the allconfigurations build
      
      * Update docs
      
      * make runtime specific pkgs non packable
      
      * io.ports native pkg fixes
      22cee85a
  10. 03 8月, 2021 1 次提交
    • V
      Move Windows Compat pack to NuGet pack task (#56686) · 7f931b13
      Viktor Hofer 提交于
      * Move Windows Compat pack to NuGet pack task
      
      This is a straight port from pkgproj to csproj and also enables building
      the compat pack together with its dependencies.
      
      As usual, if the compat pack alone should be built (i.e. for inner loop
      tests), the `--no-dependencies` flag should be used,
      i.e. `dotnet build --no-dependencies` or `dotnet pack --no-build`.
      
      * Fix traversal builds and don't overbuild packages
      
      * Update libraries-packages.proj
      7f931b13