Team Foundation Error with the / in the path

2019-02-28 07:29发布

问题:

After installing some packages using npm or jspm, I see errors like the following. Is there some settings for TFS to accept these invalid characters.

TF10122: The path '$/$.core.js' contains a '$' at the beginning of a path component. Remove the '$' and try again.
TF10122: The path '$/$.invoke.js' contains a '$' at the beginning of a path component. Remove the '$' and try again.
TF10122: The path '$/$.partial.js' contains a '$' at the beginning of a path component. Remove the '$' and try again.
TF10122: The path '$/$.to-object.js' contains a '$' at the beginning of a path component. Remove the '$' and try again.
TF10122: The path '$/$.to-iobject.js' contains a '$' at the beginning of a path component. Remove the '$' and try again.
TF10122: The path '$/$.object-to-array.js' contains a '$' at the beginning of a path component. Remove the '$' and try again.

回答1:

You cannot have a $ in your server path.

If you really must have a $ in a filename then you can set up a working folder mapping from $/acceptable-filename to a local path of c:/$.to-object.js.

(Note also that you should not just put files at the root of a repository. Put them inside a team project.)



标签: tfs