logic: vs plugin fixes

Can now deal with single projects and solutions with non-c/c++ projects

bug id = 32
This commit is contained in:
wrongway88
2016-03-05 18:18:54 +01:00
parent c9f1f65ba4
commit 5cdaafc6de
8 changed files with 247 additions and 18 deletions
@@ -26,6 +26,10 @@ std::string SolutionParserVisualStudio::getSolutionName()
if (m_solutionName.size() > 0)
{
size_t pos = m_solutionName.find(".sln");
if (pos == std::string::npos)
{
pos = m_solutionName.find(".vcxproj");
}
if (pos != std::string::npos)
{
@@ -44,6 +48,12 @@ std::vector<std::string> SolutionParserVisualStudio::getProjects()
{
std::vector<std::string> projectFiles;
if (m_solutionName.size() > 0 && m_solutionName.find(".vcxproj") != std::string::npos)
{
projectFiles.push_back(m_solutionName);
return projectFiles;
}
if (m_solution.size() > 0)
{
std::vector<std::string> blocks = getProjectBlocks(m_solution);