From 0c16b1bedf908b786f4fc80d977fc424eecba2db Mon Sep 17 00:00:00 2001 From: Peter Ombwa Date: Tue, 8 Sep 2020 10:47:26 -0700 Subject: [PATCH] Set unused *ToExport to @() --- config/ModuleMetadata.json | 2 +- src/Graph/Graph/Microsoft.Graph.nuspec | 4 ++-- src/Graph/Graph/Microsoft.Graph.psd1 | 16 ++++++++-------- tools/GenerateRollUpModule.ps1 | 3 +++ 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/config/ModuleMetadata.json b/config/ModuleMetadata.json index 2edb53b1b65..7ca8a8d09b1 100644 --- a/config/ModuleMetadata.json +++ b/config/ModuleMetadata.json @@ -10,5 +10,5 @@ "tags": "MicrosoftGraph;Microsoft;Office365;Graph;PowerShell;GraphServiceClient;Outlook;OneDrive;AzureAD;GraphAPI;Productivity;SharePoint;Intune;SDK;", "releaseNotes": "See https://aka.ms/GraphPowerShell-Release.", "assemblyOriginatorKeyFile": "35MSSharedLib1024.snk", - "version": "0.9.0" + "version": "0.9.2" } \ No newline at end of file diff --git a/src/Graph/Graph/Microsoft.Graph.nuspec b/src/Graph/Graph/Microsoft.Graph.nuspec index a1b0fd88809..a335fb83584 100644 --- a/src/Graph/Graph/Microsoft.Graph.nuspec +++ b/src/Graph/Graph/Microsoft.Graph.nuspec @@ -2,7 +2,7 @@ Microsoft.Graph - 0.5.0 + 0.9.2 Microsoft Microsoft https://aka.ms/devservicesagreement @@ -13,7 +13,7 @@ © Microsoft Corporation. All rights reserved. MicrosoftGraph;Microsoft;Office365;Graph;PowerShell;GraphServiceClient;Outlook;OneDrive;AzureAD;GraphAPI;Productivity;SharePoint;Intune;SDK; - + See https://aka.ms/GraphPowerShell-Release. diff --git a/src/Graph/Graph/Microsoft.Graph.psd1 b/src/Graph/Graph/Microsoft.Graph.psd1 index 35ebeb7d267..fc209f2c066 100644 --- a/src/Graph/Graph/Microsoft.Graph.psd1 +++ b/src/Graph/Graph/Microsoft.Graph.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft # -# Generated on: 4/21/2020 +# Generated on: 9/8/2020 # @{ @@ -12,13 +12,13 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '0.5.0' +ModuleVersion = '0.9.2' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = '89019767-8803-434d-b3b5-e1e5dd160737' +GUID = 'ed9c3dd7-e580-410f-b090-5edff2f78b88' # Author of this module Author = 'Microsoft' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @('Microsoft.Graph.Authentication') +RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.9.1'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() @@ -69,16 +69,16 @@ RequiredModules = @('Microsoft.Graph.Authentication') # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = '*' +FunctionsToExport = @() # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = '*' +CmdletsToExport = @() # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = '*' +AliasesToExport = @() # DSC resources to export from this module # DscResourcesToExport = @() @@ -114,7 +114,7 @@ PrivateData = @{ # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save - RequireLicenseAcceptance = $true + # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() diff --git a/tools/GenerateRollUpModule.ps1 b/tools/GenerateRollUpModule.ps1 index bd83f534557..1e35384fc1b 100644 --- a/tools/GenerateRollUpModule.ps1 +++ b/tools/GenerateRollUpModule.ps1 @@ -99,6 +99,9 @@ elseif ($VersionState.Equals([VersionState]::Valid) -or $VersionState.Equals([Ve ProjectUri = $NuspecMetadata["projectUri"] IconUri = $NuspecMetadata["iconUri"] ReleaseNotes = $NuspecMetadata["releaseNotes"] + AliasesToExport = @() + CmdletsToExport = @() + FunctionsToExport = @() } Write-Host -ForegroundColor Green "Creating '$ModulePrefix' module manifest and nuspec..."