-
Notifications
You must be signed in to change notification settings - Fork 627
DRAFT - Introduce C# Core Engine #6808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
FabienTschanz
wants to merge
10
commits into
microsoft:Dev
Choose a base branch
from
FabienTschanz:feat/c-sharp-core-engine
base: Dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
DRAFT - Introduce C# Core Engine #6808
FabienTschanz
wants to merge
10
commits into
microsoft:Dev
from
FabienTschanz:feat/c-sharp-core-engine
+4,180
−2,811
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70b6000 to
5ff157f
Compare
5ff157f to
afd8170
Compare
Collaborator
Author
|
Waiting on the merge of the new DSCParser version. |
3dbc8f4 to
84eb110
Compare
ricmestre
reviewed
Feb 10, 2026
|
|
||
| # Verify .NET SDK is available | ||
| try { | ||
| $dotnetVersion = dotnet --version |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FabienTschanz You should apply the same fix here as you applied on DSCParser
ricmestre
reviewed
Feb 10, 2026
a93485a to
3d552b4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request (PR) description
This PR introduces a core C# engine for vastly improved performance during configuration testing, especially large numbers of configurations benefit from this change. Combined with improvements to the DSCParser in microsoft/DSCParser#71, this leads to a performance increase of up to 10x faster in certain scenarios.
One example from my own lab: Previously, the comparison of my tenant configuration took ~11 minutes, which was brought down to just ~30-35 seconds with all improvements. Tests were conducted on a
Standard D2ads v5machine with 2 CPU cores and 8GB of RAM. No fancy hardware, just a standard Azure virtual machine in a Managed DevOps Pool.Please be aware of the fact that this heavily depends on the size of the configuration. The bigger the configuration, the greater the time consumed. The configuration size varied between 1.5MB (AAD) at most to 2KB as the lowest size. The middle sizes were ~700KB (EXO, INTUNE) and 500KB (SC).
Before (with 1.26.114.1):

After:

Please note: The DSCParser PR mentioned above is a prerequisite for this one because it improves caching of DSC resources for report generation.
Following the full release notes for this PR. It also contains a lot of fixes around types and values being passed to other functions.
BannedPasswordListcould be null.LicensingLocationandRMSOnlineKeySharingLocationto
System.Stringinstead of an implicit conversion toSystem.Uri.UserEmailscould contain empty strings.SelectedMobileAppNamescould contain empty stringsduring the execution of
Test-TargetResoure.JustificationTextcould containempty strings.
Get-(Pwsh)DscResourcewith a custom implementation.PSDesiredStateConfiguration.This Pull Request (PR) fixes the following issues
None.
Task list
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).