Tags: IntelliTect/CodingGuidelines
Tags
fix: INTL0101 code fix NotImplementedException for non-class declarat… …ion types (#411) ## Description Describe your changes here. Fixes #Issue_Number (if available) ### Ensure that your pull request has followed all the steps below: - [ ] Code compilation - [ ] Created tests which fail without the change (if possible) - [ ] All tests passing - [ ] Extended the README / documentation, if necessary Co-authored-by: Copilot <[email protected]>
Skip EnsureCodeFixesProjectBuilt target when NoBuild=true dotnet pack --no-build sets NoBuild=true, which prohibits invoking the Build target. The custom EnsureCodeFixesProjectBuilt target was doing exactly that, triggering NETSDK1085. Adding the condition makes the target a no-op when the caller has already asserted everything is built.
Fix build issues introduced by recent package upgrades - Add Microsoft.Build.Framework 18.4.0 with ExcludeAssets=runtime/PrivateAssets=all to Directory.Packages.props and Integration.Tests project to resolve MSBL001 error introduced by Microsoft.Build.Locator 1.11.2 - Change GuidelineXmlToMD.Test to target net10.0 only (matching the tool project's TargetFramework) to fix NU1201 TFM compatibility restore errors - Fix pre-existing nullable reference errors now surfaced in Tools build: - GuidelineXmlFileReader.cs: null-check Root before iterating, use ?? for attributes - MdExtensions.cs: remove unnecessary ?. on already-validated str parameter - MdText.cs: use ?? string.Empty for ToString() nullable return - GuidelineXmlFileReaderTest.cs: add ! null-forgiving on Directory.GetParent chain Co-authored-by: Copilot <[email protected]>