commit bec3c8b347b9fa782130ef559c85c2ae4576e4bd
parent 0ff8521fbb06560e2785fb438d04c93665055369
Author: JohnMcPMS <johnmcp@microsoft.com>
Date: Tue, 6 May 2025 16:35:13 -0700
Allow preview dsc while experimental (#5434)
## Change
Until DSCv3 support is not experimental, allow the preview build to be
found automatically.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Microsoft.Management.Configuration.Processor/DSCv3/Helpers/ProcessorSettings.cs b/src/Microsoft.Management.Configuration.Processor/DSCv3/Helpers/ProcessorSettings.cs
@@ -121,13 +121,13 @@ namespace Microsoft.Management.Configuration.Processor.DSCv3.Helpers
// To start, only attempt to find the package and launch it via app execution alias.
// In the future, consider discovering it through %PATH% searching, but probably don't allow that from an elevated process.
// That probably means creating another read property for finding the secure path.
-#if !AICLI_DISABLE_TEST_HOOKS
+ // TEMP: Until DSCv3 support is not experimental, allow the preview build to be found automatically.
+// #if !AICLI_DISABLE_TEST_HOOKS
string? result = GetDscExecutablePathForPackage("Microsoft.DesiredStateConfiguration-Preview_8wekyb3d8bbwe");
if (result != null)
{
return result;
}
-#endif
return GetDscExecutablePathForPackage("Microsoft.DesiredStateConfiguration_8wekyb3d8bbwe");
}