Remove dependency on OSS repositories #399
Merged
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.
Description
This pull request includes several changes to improve the handling of the
Get-NetViewmodule, clean up configuration files, and streamline the build process. The most important changes include adding error handling for theInvoke-SdnGetNetViewfunction, removing unnecessary package dependencies, and cleaning up the build scripts.Error Handling and Module Import:
src/SdnDiagnostics.psm1: Added a try-catch block around theInvoke-SdnGetNetViewcall to handle errors gracefully and log warnings.src/modules/SdnDiag.Common.psm1: Modified theInvoke-SdnGetNetViewfunction to import theGet-NetViewmodule directly, check for its availability, and log warnings if the module is outdated. [1] [2]Configuration Cleanup:
nuget.config: Removed thenuget.configfile to eliminate unnecessary package source definitions and reduce potential supply chain vulnerabilities.packages.config: Removed thepackages.configfile to clean up package dependencies.SdnDiagnostics.nuspec: Removed the external package dependency onGet-NetView.Build Script Improvements:
.build/build.ps1: Removed unnecessary comments and streamlined the build script..build/package.ps1: Cleaned up the package script by removing an unnecessary blank line.build.ps1: Removed the restore step from the build script as it is no longer needed.Change type
Checklist: