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, List`1 loadedProjects)
  at Roslyn.DotNet.ProjectBuilders.WorkspaceBuilder.LoadAtSolutionLevel(Solution& solution, IEnumerable`1 projectsToLoad, List`1 loadedProjects)

Observed in CAST Extension Version


Release

Yes/No

1.2(tick) 
Observed in RDBMS

RDBMS

Yes/No

CSS3 (tick) 
CSS2 (tick) 
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 <GeneratedAssembly> tag for those analysis units. If the element is something like this <GeneratedAssembly>Email-$(Version.Replace(".", "-"))</GeneratedAssembly>.
  4. Goto the corresponding project file and change the <AssemblyName> 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 <AssemblyName> 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