Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectAnalyzer throws when solution is not in a project parent directory #175

Closed
psfinaki opened this issue Apr 13, 2021 · 0 comments · Fixed by #176
Closed

ProjectAnalyzer throws when solution is not in a project parent directory #175

psfinaki opened this issue Apr 13, 2021 · 0 comments · Fixed by #176

Comments

@psfinaki
Copy link
Contributor

psfinaki commented Apr 13, 2021

I have a big database so I don't have a common solution and instead use SlnGen for those purposes. So I basically have temp solution files in test projects rather than one solution file in the root.

Turns out, in this case ProjectAnalyzer throws an error in the ctor when doing some string manipulation.

System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex')
   at System.String.Substring(Int32 startIndex, Int32 length)
   at System.String.Substring(Int32 startIndex)
   at Buildalyzer.ProjectAnalyzer..ctor(AnalyzerManager manager, String projectFilePath, ProjectInSolution projectInSolution)
   at Buildalyzer.AnalyzerManager.GetProject(String projectFilePath, ProjectInSolution projectInSolution)
   at Buildalyzer.AnalyzerManager.GetProject(String projectFilePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant