Skip to content

Advanced C# compiler options - PathMap: separator should be a comma instead of a semicolon #31376

@chadsugithub

Description

@chadsugithub
To specify multiple mapped source paths, separate each with a semicolon.

XML
<PathMap>path1=sourcePath1;path2=sourcePath2</PathMap>

Using a semicolon will cause the following error.

CSC : error CS8101: The pathmap option was incorrectly formatted.

It should be a comma.

To specify multiple mapped source paths, separate each with a comma.

XML
<PathMap>path1=sourcePath1,path2=sourcePath2</PathMap>

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions