CMS Snapshot Analysis - Run Analyzer - Warnings - DOTNet with extension - DotNet Analyzer - SystemArgumentException Illegal characters in path

Problem Description

While running the .NET analysis you may get the below type of warnings in your analysis log:

2020-04-09 13:44:57.661939    Information    MODULMSG ; Job execution    System.ArgumentException: Illegal characters in path.
  at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
  at System.IO.Path.GetFileName(String path)
  at Roslyn.DotNet.ProjectBuilders.RawProjectBuilder.AddProjectToSolution(Solution& solution, DotNetProject projectDesc, List1 loadedProjects)   at Roslyn.DotNet.ProjectBuilders.WorkspaceBuilder.LoadAtSolutionLevel(Solution& solution, IEnumerable1 projectsToLoad, List`1 loadedProjects)

Observed in CAST Extension Version

ReleaseYes/No
1.2

Observed in RDBMS

RDBMSYes/No
CSS3
CSS2

Step by Step Scenario

  1. Package the source code
  2. Run the analysis

Action Plan

Perform the below actions

  1. Check in the analysis log for the warnings and the analysis units impacted due to this warning.
  2. Goto the LISA folder and search for the Dotnetcmd.xml file.
  3. Open the above file and check for the failed analysis units. See the tag for those analysis units. If the element is something like this Email-$(Version.Replace(".", “-”)).
  4. Goto the corresponding project file and change the tag element from **Email$(OuputSuffix)**to Email(Here Email.cspoj has been taken as an example) save the file.
  5. Repackage the source code again
  6. Run the analysis.
  7. Even after manipulating the tag from the project file, you are getting the warnings,  then contact CAST Technical Support. with the following Relevant Input for the reproduction of the issue

Notes/comments

Related Pages