Closed said-akram closed 5 years ago
I'm trying to use the File Transform (Preview) in my release pipeline. I get an error: TypeError: Cannot read property 'indexOf' of undefined
2019-02-25T01:44:51.9335341Z ##[debug]Evaluating: succeeded() 2019-02-25T01:44:51.9335494Z ##[debug]Evaluating succeeded: 2019-02-25T01:44:51.9335873Z ##[debug]=> True 2019-02-25T01:44:51.9336145Z ##[debug]Result: True 2019-02-25T01:44:51.9336388Z ##[section]Starting: File Transform: 2019-02-25T01:44:51.9340321Z ============================================================================== 2019-02-25T01:44:51.9340412Z Task : File Transform 2019-02-25T01:44:51.9340458Z Description : File Transform 2019-02-25T01:44:51.9340502Z Version : 1.0.1 2019-02-25T01:44:51.9340691Z Author : Microsoft Corporation 2019-02-25T01:44:51.9340758Z Help : File transformation and variable substitution task: Update tokens in your XML based configuration files and then replaces those tokens with variable values. <br/>Currently only XML, JSON file formats are supported for variable substitution. 2019-02-25T01:44:51.9340842Z ============================================================================== 2019-02-25T01:44:52.1749382Z ##[debug]agent.workFolder=D:\a 2019-02-25T01:44:52.1779574Z ##[debug]loading inputs and endpoints 2019-02-25T01:44:52.1789479Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2019-02-25T01:44:52.1799709Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2019-02-25T01:44:52.1841463Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2019-02-25T01:44:52.1842022Z ##[debug]loading INPUT_ENABLEXMLTRANSFORM 2019-02-25T01:44:52.1842250Z ##[debug]loading INPUT_FOLDERPATH 2019-02-25T01:44:52.1842504Z ##[debug]loading INPUT_XMLTRANSFORMATIONRULES 2019-02-25T01:44:52.1842716Z ##[debug]loaded 6 2019-02-25T01:44:52.3820790Z ##[debug]check path : D:\a\_tasks\FileTransform_8ce97e91-56cc-4743-bfab-9a9315be5f27\1.0.1\task.json 2019-02-25T01:44:52.3822207Z ##[debug]set resource file to: D:\a\_tasks\FileTransform_8ce97e91-56cc-4743-bfab-9a9315be5f27\1.0.1\task.json 2019-02-25T01:44:52.3822647Z ##[debug]system.culture=en-US 2019-02-25T01:44:52.3850311Z ##[debug]folderPath=D:\a\r1\a\**\*.zip 2019-02-25T01:44:52.3853065Z ##[debug]Finding files matching input: D:\a\r1\a\**\*.zip 2019-02-25T01:44:52.3853325Z ##[debug]Matching glob pattern: D:\a\r1\a\**\*.zip 2019-02-25T01:44:52.3855557Z ##[debug]Index of first wildcard: 10 2019-02-25T01:44:52.3857162Z ##[debug]find root dir: D:\a\r1\a\ 2019-02-25T01:44:52.3861454Z ##[debug]findPath: 'D:\a\r1\a\' 2019-02-25T01:44:52.3870142Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true' 2019-02-25T01:44:52.3870620Z ##[debug]findOptions.followSymbolicLinks: 'true' 2019-02-25T01:44:52.3876301Z ##[debug] D:\a\r1\a\ (directory) 2019-02-25T01:44:52.3884036Z ##[debug] D:\a\r1\a\_WebApp (directory) 2019-02-25T01:44:52.3889248Z ##[debug] D:\a\r1\a\_WebApp\drop (directory) 2019-02-25T01:44:52.3894294Z ##[debug] D:\a\r1\a\_WebApp\drop\WebApplication.deploy-readme.txt (file) 2019-02-25T01:44:52.3894720Z ##[debug] D:\a\r1\a\_WebApp\drop\WebApplication.deploy.cmd (file) 2019-02-25T01:44:52.3895793Z ##[debug] D:\a\r1\a\_WebApp\drop\WebApplication.SetParameters.xml (file) 2019-02-25T01:44:52.3896140Z ##[debug] D:\a\r1\a\_WebApp\drop\WebApplication.SourceManifest.xml (file) 2019-02-25T01:44:52.3896813Z ##[debug] D:\a\r1\a\_WebApp\drop\WebApplication.zip (file) 2019-02-25T01:44:52.3897128Z ##[debug]8 results 2019-02-25T01:44:52.3902950Z ##[debug]patternRoot: '' 2019-02-25T01:44:52.3903937Z ##[debug]matchOptions.debug: 'undefined' 2019-02-25T01:44:52.3904386Z ##[debug]matchOptions.nobrace: 'undefined' 2019-02-25T01:44:52.3905475Z ##[debug]matchOptions.noglobstar: 'undefined' 2019-02-25T01:44:52.3905796Z ##[debug]matchOptions.dot: 'undefined' 2019-02-25T01:44:52.3906152Z ##[debug]matchOptions.noext: 'undefined' 2019-02-25T01:44:52.3906435Z ##[debug]matchOptions.nocase: 'true' 2019-02-25T01:44:52.3907510Z ##[debug]matchOptions.nonull: 'undefined' 2019-02-25T01:44:52.3907853Z ##[debug]matchOptions.matchBase: 'true' 2019-02-25T01:44:52.3908261Z ##[debug]matchOptions.nocomment: 'undefined' 2019-02-25T01:44:52.3909623Z ##[debug]matchOptions.nonegate: 'undefined' 2019-02-25T01:44:52.3910106Z ##[debug]matchOptions.flipNegate: 'undefined' 2019-02-25T01:44:52.3910364Z ##[debug]pattern: 'D:\a\r1\a\**\*.zip' 2019-02-25T01:44:52.3910632Z ##[debug]expanding braces 2019-02-25T01:44:52.3913063Z ##[debug]pattern: 'D:/a/r1/a/**/*.zip' 2019-02-25T01:44:52.3913406Z ##[debug]applying include pattern against original list 2019-02-25T01:44:52.3949655Z ##[debug]1 matches 2019-02-25T01:44:52.3950958Z ##[debug]1 final results 2019-02-25T01:44:52.3952220Z ##[debug]fileType=null 2019-02-25T01:44:52.3953493Z ##[debug]targetFiles=null 2019-02-25T01:44:52.3959057Z ##[debug]enableXmlTransform=true 2019-02-25T01:44:52.3960811Z ##[debug]xmlTransformationRules=-transform **\*.Production.config -xml **\*.config 2019-02-25T01:44:52.3965648Z ##[debug]This is zip package 2019-02-25T01:44:52.3970468Z ##[debug]Agent.TempDirectory=D:\a\_temp 2019-02-25T01:44:52.3970694Z ##[debug]Agent.TempDirectory=D:\a\_temp 2019-02-25T01:44:52.3981680Z ##[debug]extracting D:\a\r1\a\_WebApp\drop\WebApplication.zip to D:\a\_temp\temp_web_package_1957933518149526 2019-02-25T01:44:52.7311884Z ##[debug]extracted D:\a\r1\a\_WebApp\drop\WebApplication.zip to D:\a\_temp\temp_web_package_1957933518149526 Successfully 2019-02-25T01:44:52.7336156Z ##[debug]defaultRoot: 'D:\a\_temp\temp_web_package_1957933518149526' 2019-02-25T01:44:52.7336644Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true' 2019-02-25T01:44:52.7336963Z ##[debug]findOptions.followSymbolicLinks: 'true' 2019-02-25T01:44:52.7337244Z ##[debug]matchOptions.debug: 'false' 2019-02-25T01:44:52.7337465Z ##[debug]matchOptions.nobrace: 'true' 2019-02-25T01:44:52.7337766Z ##[debug]matchOptions.noglobstar: 'false' 2019-02-25T01:44:52.7337986Z ##[debug]matchOptions.dot: 'true' 2019-02-25T01:44:52.7338217Z ##[debug]matchOptions.noext: 'false' 2019-02-25T01:44:52.7338546Z ##[debug]matchOptions.nocase: 'true' 2019-02-25T01:44:52.7338743Z ##[debug]matchOptions.nonull: 'false' 2019-02-25T01:44:52.7338941Z ##[debug]matchOptions.matchBase: 'false' 2019-02-25T01:44:52.7339143Z ##[debug]matchOptions.nocomment: 'false' 2019-02-25T01:44:52.7339365Z ##[debug]matchOptions.nonegate: 'false' 2019-02-25T01:44:52.7339570Z ##[debug]matchOptions.flipNegate: 'false' 2019-02-25T01:44:52.7339814Z ##[debug]pattern: '**\*.config' 2019-02-25T01:44:52.7352615Z ##[debug]findPath: 'D:\a\_temp\temp_web_package_1957933518149526' 2019-02-25T01:44:52.7352896Z ##[debug]statOnly: 'false' 2019-02-25T01:44:52.7353182Z ##[debug]findPath: 'D:\a\_temp\temp_web_package_1957933518149526' 2019-02-25T01:44:52.7353413Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true' 2019-02-25T01:44:52.7353641Z ##[debug]findOptions.followSymbolicLinks: 'true' 2019-02-25T01:44:52.7360429Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526 (directory) 2019-02-25T01:44:52.7362469Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\archive.xml (file) 2019-02-25T01:44:52.7362845Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content (directory) 2019-02-25T01:44:52.7368592Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C (directory) 2019-02-25T01:44:52.7371550Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a (directory) 2019-02-25T01:44:52.7375329Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1 (directory) 2019-02-25T01:44:52.7379448Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s (directory) 2019-02-25T01:44:52.7383314Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication (directory) 2019-02-25T01:44:52.7388624Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj (directory) 2019-02-25T01:44:52.7392992Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release (directory) 2019-02-25T01:44:52.7398787Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package (directory) 2019-02-25T01:44:52.7403794Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp (directory) 2019-02-25T01:44:52.7410645Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin (directory) 2019-02-25T01:44:52.7417537Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\Antlr3.Runtime.dll (file) 2019-02-25T01:44:52.7417929Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\Antlr3.Runtime.pdb (file) 2019-02-25T01:44:52.7418860Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\Microsoft.AspNet.TelemetryCorrelation.dll (file) 2019-02-25T01:44:52.7419190Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll (file) 2019-02-25T01:44:52.7419700Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\Microsoft.Web.Infrastructure.dll (file) 2019-02-25T01:44:52.7420269Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\Newtonsoft.Json.dll (file) 2019-02-25T01:44:52.7421315Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn (directory) 2019-02-25T01:44:52.7430408Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\csc.exe (file) 2019-02-25T01:44:52.7430702Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\csc.exe.config (file) 2019-02-25T01:44:52.7431590Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\csc.rsp (file) 2019-02-25T01:44:52.7431885Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\csi.exe (file) 2019-02-25T01:44:52.7432729Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\csi.exe.config (file) 2019-02-25T01:44:52.7433021Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\csi.rsp (file) 2019-02-25T01:44:52.7433831Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll (file) 2019-02-25T01:44:52.7434141Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll (file) 2019-02-25T01:44:52.7435414Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.CSharp.Scripting.dll (file) 2019-02-25T01:44:52.7436251Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.dll (file) 2019-02-25T01:44:52.7436722Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.Scripting.dll (file) 2019-02-25T01:44:52.7437526Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll (file) 2019-02-25T01:44:52.7437966Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.CSharp.Core.targets (file) 2019-02-25T01:44:52.7438670Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll (file) 2019-02-25T01:44:52.7439408Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.DiaSymReader.Native.x86.dll (file) 2019-02-25T01:44:52.7439694Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.Managed.Core.targets (file) 2019-02-25T01:44:52.7440498Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\Microsoft.VisualBasic.Core.targets (file) 2019-02-25T01:44:52.7440771Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.AppContext.dll (file) 2019-02-25T01:44:52.7441534Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Collections.Immutable.dll (file) 2019-02-25T01:44:52.7441941Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Console.dll (file) 2019-02-25T01:44:52.7442675Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Diagnostics.FileVersionInfo.dll (file) 2019-02-25T01:44:52.7443119Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Diagnostics.StackTrace.dll (file) 2019-02-25T01:44:52.7443542Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.IO.Compression.dll (file) 2019-02-25T01:44:52.7444241Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.IO.FileSystem.dll (file) 2019-02-25T01:44:52.7445704Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.IO.FileSystem.Primitives.dll (file) 2019-02-25T01:44:52.7446031Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.IO.Pipes.AccessControl.dll (file) 2019-02-25T01:44:52.7446338Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.IO.Pipes.dll (file) 2019-02-25T01:44:52.7447065Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Reflection.Metadata.dll (file) 2019-02-25T01:44:52.7447449Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.AccessControl.dll (file) 2019-02-25T01:44:52.7448485Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.Claims.dll (file) 2019-02-25T01:44:52.7448875Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.Cryptography.Algorithms.dll (file) 2019-02-25T01:44:52.7449561Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.Cryptography.Encoding.dll (file) 2019-02-25T01:44:52.7449875Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.Cryptography.Primitives.dll (file) 2019-02-25T01:44:52.7450466Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.Cryptography.X509Certificates.dll (file) 2019-02-25T01:44:52.7451196Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Security.Principal.Windows.dll (file) 2019-02-25T01:44:52.7494534Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Text.Encoding.CodePages.dll (file) 2019-02-25T01:44:52.7495986Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.ValueTuple.dll (file) 2019-02-25T01:44:52.7496278Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Xml.ReaderWriter.dll (file) 2019-02-25T01:44:52.7496716Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Xml.XmlDocument.dll (file) 2019-02-25T01:44:52.7497102Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Xml.XPath.dll (file) 2019-02-25T01:44:52.7497450Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\System.Xml.XPath.XDocument.dll (file) 2019-02-25T01:44:52.7497841Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\vbc.exe (file) 2019-02-25T01:44:52.7498396Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\vbc.exe.config (file) 2019-02-25T01:44:52.7498638Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\vbc.rsp (file) 2019-02-25T01:44:52.7498871Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\VBCSCompiler.exe (file) 2019-02-25T01:44:52.7499089Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\roslyn\VBCSCompiler.exe.config (file) 2019-02-25T01:44:52.7499310Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Diagnostics.DiagnosticSource.dll (file) 2019-02-25T01:44:52.7499542Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.Helpers.dll (file) 2019-02-25T01:44:52.7499759Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.Mvc.dll (file) 2019-02-25T01:44:52.7499986Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.Optimization.dll (file) 2019-02-25T01:44:52.7500202Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.Razor.dll (file) 2019-02-25T01:44:52.7500419Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.WebPages.Deployment.dll (file) 2019-02-25T01:44:52.7500630Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.WebPages.dll (file) 2019-02-25T01:44:52.7500851Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\System.Web.WebPages.Razor.dll (file) 2019-02-25T01:44:52.7501553Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\WebApplication.dll (file) 2019-02-25T01:44:52.7501777Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\WebApplication.pdb (file) 2019-02-25T01:44:52.7501980Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\bin\WebGrease.dll (file) 2019-02-25T01:44:52.7502194Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content (directory) 2019-02-25T01:44:52.7503990Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap-theme.css (file) 2019-02-25T01:44:52.7505111Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap-theme.css.map (file) 2019-02-25T01:44:52.7505712Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap-theme.min.css (file) 2019-02-25T01:44:52.7506410Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap-theme.min.css.map (file) 2019-02-25T01:44:52.7506875Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap.css (file) 2019-02-25T01:44:52.7507582Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap.css.map (file) 2019-02-25T01:44:52.7508059Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap.min.css (file) 2019-02-25T01:44:52.7508809Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\bootstrap.min.css.map (file) 2019-02-25T01:44:52.7509237Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Content\Site.css (file) 2019-02-25T01:44:52.7509824Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\favicon.ico (file) 2019-02-25T01:44:52.7510545Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\fonts (directory) 2019-02-25T01:44:52.7518120Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.eot (file) 2019-02-25T01:44:52.7518578Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.svg (file) 2019-02-25T01:44:52.7519333Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.ttf (file) 2019-02-25T01:44:52.7519643Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.woff (file) 2019-02-25T01:44:52.7520382Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\fonts\glyphicons-halflings-regular.woff2 (file) 2019-02-25T01:44:52.7520688Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Global.asax (file) 2019-02-25T01:44:52.7521526Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts (directory) 2019-02-25T01:44:52.7528773Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\bootstrap.js (file) 2019-02-25T01:44:52.7529288Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\bootstrap.min.js (file) 2019-02-25T01:44:52.7529939Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery-3.3.1.js (file) 2019-02-25T01:44:52.7530245Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery-3.3.1.min.js (file) 2019-02-25T01:44:52.7530806Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery-3.3.1.min.map (file) 2019-02-25T01:44:52.7531498Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery-3.3.1.slim.js (file) 2019-02-25T01:44:52.7531833Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery-3.3.1.slim.min.js (file) 2019-02-25T01:44:52.7532500Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery-3.3.1.slim.min.map (file) 2019-02-25T01:44:52.7533176Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery.validate.js (file) 2019-02-25T01:44:52.7533728Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery.validate.min.js (file) 2019-02-25T01:44:52.7534395Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery.validate.unobtrusive.js (file) 2019-02-25T01:44:52.7535234Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\jquery.validate.unobtrusive.min.js (file) 2019-02-25T01:44:52.7536084Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Scripts\modernizr-2.8.3.js (file) 2019-02-25T01:44:52.7536809Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views (directory) 2019-02-25T01:44:52.7542915Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Home (directory) 2019-02-25T01:44:52.7551198Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Home\About.cshtml (file) 2019-02-25T01:44:52.7551521Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Home\Contact.cshtml (file) 2019-02-25T01:44:52.7552365Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Home\Index.cshtml (file) 2019-02-25T01:44:52.7553059Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Shared (directory) 2019-02-25T01:44:52.7561541Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Shared\Error.cshtml (file) 2019-02-25T01:44:52.7562060Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Shared\_Layout.cshtml (file) 2019-02-25T01:44:52.7572809Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\Web.config (file) 2019-02-25T01:44:52.7573192Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Views\_ViewStart.cshtml (file) 2019-02-25T01:44:52.7573601Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Web.config (file) 2019-02-25T01:44:52.7573834Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Web.Debug.config (file) 2019-02-25T01:44:52.7574056Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Web.Production.config (file) 2019-02-25T01:44:52.7574258Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\Content\D_C\a\1\s\WebApplication\obj\Release\Package\PackageTmp\Web.Release.config (file) 2019-02-25T01:44:52.7575160Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\parameters.xml (file) 2019-02-25T01:44:52.7575473Z ##[debug] D:\a\_temp\temp_web_package_1957933518149526\systemInfo.xml (file) 2019-02-25T01:44:52.7575697Z ##[debug]125 results 2019-02-25T01:44:52.7575968Z ##[debug]found 125 paths 2019-02-25T01:44:52.7576231Z ##[debug]applying include pattern 2019-02-25T01:44:52.7576470Z ##[debug]adjustedPattern: 'D:\a\_temp\temp_web_package_1957933518149526\**\*.config' 2019-02-25T01:44:52.7649401Z ##[debug]9 matches 2019-02-25T01:44:52.7649745Z ##[debug]9 final results 2019-02-25T01:44:52.7655398Z ##[debug]task result: Failed 2019-02-25T01:44:52.7710610Z ##[error]TypeError: Cannot read property 'indexOf' of undefined 2019-02-25T01:44:52.7718648Z ##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot read property 'indexOf' of undefined 2019-02-25T01:44:52.7719395Z ##[debug]Processed: ##vso[task.complete result=Failed;]TypeError: Cannot read property 'indexOf' of undefined 2019-02-25T01:44:52.7799799Z ##[section]Finishing: File Transform:
I was able to debug the task and found the bug source.
azure-pipelines-tasks/Tasks/Common/webdeployment-common/xdttransformationutility.ts Line 111
if(destinationConfig.indexOf("*") != -1){ var destinationConfigSuffix = destinationConfig ? destinationConfig.substr(destinationConfig.lastIndexOf("*") + 1) : ""; var destinationXmlFile = destinationConfig ? path.join(path.dirname(sourceXmlFile), sourceBasename + destinationConfigSuffix) : ""; } else { var destinationXmlFile = destinationConfig ? path.join(rootFolder, destinationConfig) : ""; }
destinationConfig is undefined
if(destinationConfig && destinationConfig.indexOf("*") != -1){ var destinationConfigSuffix = destinationConfig.substr(destinationConfig.lastIndexOf("*") + 1); var destinationXmlFile = path.join(path.dirname(sourceXmlFile), sourceBasename + destinationConfigSuffix); } else { var destinationXmlFile = destinationConfig ? path.join(rootFolder, destinationConfig) : ""; }
I was able to find a workaround by adding *_-result .config_** to Transformation rules.
the fix for the issue was merged in the PR referenced above.
Environment
Issue Description
I'm trying to use the File Transform (Preview) in my release pipeline. I get an error: TypeError: Cannot read property 'indexOf' of undefined
Task logs
Bug Source
I was able to debug the task and found the bug source.
azure-pipelines-tasks/Tasks/Common/webdeployment-common/xdttransformationutility.ts Line 111
destinationConfig is undefined
Fix
Workaround
I was able to find a workaround by adding *_-result .config_** to Transformation rules.