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)
Release | Yes/No |
---|---|
1.2 |
RDBMS | Yes/No |
---|---|
CSS3 | |
CSS2 |
- Package the source code
- Run the analysis
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 <GeneratedAssembly> tag for those analysis units. If the element is something like this <GeneratedAssembly>Email-$(Version.Replace(".", "-"))</GeneratedAssembly>.
- 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.
- Repackage the source code again
- Run the analysis.
- 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