VSTest@2 Task expands command line when vstestLocation Argument is used

%3CLINGO-SUB%20id%3D%22lingo-sub-3298560%22%20slang%3D%22en-US%22%3EVSTest%402%20Task%20expands%20command%20line%20when%20vstestLocation%20Argument%20is%20used%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3298560%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20Azure%20Devops%202020%20on%20premise%20installed.%20When%20the%20%3CA%20href%3D%22mailto%3AVSTest%402%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EVSTest%402%3C%2FA%3E%20task%20is%20used%20and%20the%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CFONT%20size%3D%222%22%3EvstestLocation%3C%2FFONT%3E%3C%2FSTRONG%3E%20and%20%3CSTRONG%3E%3CFONT%20size%3D%222%22%3EvstestLocationMethod%3A%20location%3C%2FFONT%3E%20%3C%2FSTRONG%3Earguments%20are%26nbsp%3B%20specified%2C%20instead%20of%20generating%20a%20text%20file%20with%20the%20names%20of%20the%20binaries%20and%20use%20that%20as%20an%20argument%20to%20the%20command%2C%20the%20whole%20list%20is%20expanded%20next%20to%20the%20command.%20This%20causes%20a%26nbsp%3B%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%3CSTRONG%3E%3CFONT%20size%3D%222%22%3E%23%23%5Berror%5DError%3A%20spawn%20ENAMETOOLONG%3C%2FFONT%3E%3C%2FSTRONG%3E%20if%20the%20names%20of%20the%20binaries%20are%20too%20long.%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

We have Azure Devops 2020 on premise installed. When the VSTest@2 task is used and the 

vstestLocation and vstestLocationMethod: location arguments are  specified, instead of generating a text file with the names of the binaries and use that as an argument to the command, the whole list is expanded next to the command. This causes a  ##[error]Error: spawn ENAMETOOLONG if the names of the binaries are too long.

0 Replies