Modifying csproj generator to not add references to shared projects

This commit is contained in:
Pranav K 2014-03-17 13:58:37 -07:00
parent 5a10bb338b
commit 07465158c2
1 changed files with 5 additions and 1 deletions

View File

@ -538,8 +538,9 @@ functions
var sb = new StringBuilder(); var sb = new StringBuilder();
foreach (var reference in projectReferences) for(var i = 0; i < projectReferences.Count; i++)
{ {
var reference = projectReferences[i];
var info = GetObject(projectMapping, reference); var info = GetObject(projectMapping, reference);
if (info == null) if (info == null)
@ -587,6 +588,9 @@ functions
</Compile>", fullPath, relativePath); </Compile>", fullPath, relativePath);
} }
} }
projectReferences.RemoveAt(i);
i--;
} }
return sb.ToString(); return sb.ToString();