- 19 6月, 2023 2 次提交
-
-
由 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.
-
由 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)
-
- 05 5月, 2023 1 次提交
-
-
由 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>
-
- 07 4月, 2023 1 次提交
-
-
由 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
-
- 29 3月, 2023 1 次提交
-
-
由 Carlos Sánchez López 提交于
* Add comment in csprojs of dependencies of M.W.Compat. * Adjust readme. * Turn off M.W.C. (reset it), it was built last month. --------- Co-authored-by: Ncarlossanlop <carlossanlop@users.noreply.github.com>
-
- 17 3月, 2023 1 次提交
-
-
由 github-actions[bot] 提交于
* Fix System.Management wminet_utils.dll lookup code for arm64 * Update ManagementScope.cs * Update System.Management.csproj * Update Microsoft.Windows.Compatibility.csproj --------- Co-authored-by: NViktor Hofer <viktor.hofer@microsoft.com>
-
- 01 10月, 2021 1 次提交
-
-
- 09 9月, 2021 1 次提交
-
-
由 Viktor Hofer 提交于
* Remove EOL tfms and upgrade to net7.0 * Make linker tests net7 aware Make installer tests run on net7.0 Don't attempt to use live apphost Fix payloads Regenerate test files Fix package testing
-
- 07 9月, 2021 1 次提交
-
-
由 Theodore Tsirpanis 提交于
Remove Reflection.Emit packages from the Windows Compatibility Pack on frameworks greater than .NET Standard 2.0. (#56973)
-
- 06 8月, 2021 1 次提交
-
-
由 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
-
- 03 8月, 2021 1 次提交
-
-
由 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
-