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
| Release | Yes/No |
|---|---|
| 1.2 | ✅ |
Observed in RDBMS
| RDBMS | Yes/No |
|---|---|
| CSS3 | ✅ |
| CSS2 | ✅ |
Step by Step Scenario
- Package the source code
- Run the analysis
Action Plan
Perform the below actions
- Check in the analysis log for the warnings and the analysis units impacted due to this warning.
- Goto the LISA folder and search for the Dotnetcmd.xml file.
- 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(".", “-”)) . - 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. - Repackage the source code again
- Run the analysis.
- 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