diff --git a/build/funcs/Get-ModuleExports.ps1 b/build/funcs/Get-ModuleExports.ps1
index 858824e..dcbd064 100644
--- a/build/funcs/Get-ModuleExports.ps1
+++ b/build/funcs/Get-ModuleExports.ps1
@@ -20,7 +20,7 @@ function Get-ModuleExports {
"FormatFiles" = @()
}
try {
- Set-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Value $true -Scope Global -Option Constant
+ Set-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Value $true -Scope Global -Option ReadOnly
[System.Management.Automation.PSModuleInfo] $moduleInfo = Import-Module -Name $Psm1Path -Force -DisableNameChecking -PassThru
if ($null -eq $moduleInfo) {
throw "Failed to import module from path '$Psm1Path'."
diff --git a/build/funcs/New-TemporaryProjectFile.ps1 b/build/funcs/New-TemporaryProjectFile.ps1
index fe8114b..bc25fb0 100644
--- a/build/funcs/New-TemporaryProjectFile.ps1
+++ b/build/funcs/New-TemporaryProjectFile.ps1
@@ -149,14 +149,15 @@ function New-TemporaryProjectFile {
+
-
+
$($itemGroupElementsForNestedRuntimePSGalleryModules | ForEach-Object { $_.OuterXml })
-
-
+
+