diff --git a/Tasks/PublishSymbolsV2/IndexHelpers/DbghelpFunctions.ps1 b/Tasks/PublishSymbolsV2/IndexHelpers/DbghelpFunctions.ps1 index 1602a2c1b971..0c975d590d34 100644 --- a/Tasks/PublishSymbolsV2/IndexHelpers/DbghelpFunctions.ps1 +++ b/Tasks/PublishSymbolsV2/IndexHelpers/DbghelpFunctions.ps1 @@ -189,6 +189,7 @@ function Invoke-LoadLibrary { ######################################## # If the type has already been loaded once, then it is not loaded again. Write-Verbose "Adding dbghelp native wrappers." +$dbghelpdllfile = (join-path -Path $PSScriptRoot -ChildPath "\..\dbghelp.dll" -Resolve).replace("\","\\") Add-Type -Debug:$false -TypeDefinition @' namespace IndexHelpers.Dbghelp { @@ -360,4 +361,4 @@ namespace IndexHelpers.Dbghelp SymVirtual, } } -'@ +'@.replace("`"dbghelp.dll`"","`"$dbghelpdllfile`"") diff --git a/Tasks/PublishSymbolsV2/task.json b/Tasks/PublishSymbolsV2/task.json index d272c734fa9f..8c60028b526b 100644 --- a/Tasks/PublishSymbolsV2/task.json +++ b/Tasks/PublishSymbolsV2/task.json @@ -14,7 +14,7 @@ "version": { "Major": 2, "Minor": 260, - "Patch": 0 + "Patch": 1 }, "minimumAgentVersion": "2.144.0", "groups": [ @@ -259,7 +259,7 @@ "SymbolStoreLastIdTxtNotFoundAt0": "Symbol store lastid.txt not found at '{0}'.", "UnableToDetermineWorkspaceFromSourceFolder0": "Unable to determine the workspace from the source folder '{0}'.", "UnableToIndexSources": "Unable to index sources.", - "UnexpectedDbghelpdllExpected0Actual1": "Library dbghelp.dll is already loaded from an unexpected path. Expected '{0}'. Actual '{0}'.", + "UnexpectedDbghelpdllExpected0Actual1": "Library dbghelp.dll is already loaded from an unexpected path. Expected '{0}'. Actual '{1}'.", "UnsupportedSourceProvider0": "Unsupported source provider '{0}' for source indexing.", "Win32Error0FromMethod1": "Encountered Win32 error '{0}' from method '{1}'.", "NodeVersionSupport": "Node v{0} is no longer supported starting 08/31/2024. Please upgrade pipeline agent to latest version for Node 16 or later.",