Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private static ProjectReferenceInformation GetProjectInformation(Project project
{
ProjectName = name,
AssemblyName = assemblyName,
CompilationItems = compileItems,
CompilationItems = compileItems.ToList(),
FullPath = fullPath
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Outputs the Project Information needed for CodeGeneration to a file.
<EvaluateProjectInfoForCodeGenerationDependsOn>
$(EvaluateProjectInfoForCodeGenerationDependsOn);
ResolveReferences;
ResolveProjectReferences;
</EvaluateProjectInfoForCodeGenerationDependsOn>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public RoslynWorkspace(IProjectContext projectInformation,
var id = AddProject(projectInformation, configuration);
// Since we have resolved all references, we can directly use them as MetadataReferences.
// Trying to get ProjectReferences manually might lead to problems when the projects have circular dependency.
var projReferenceInformation = RoslynWorkspaceHelper.GetProjectReferenceInformation(projectInformation.ProjectReferences);
var projReferenceInformation = projectInformation.ProjectReferenceInformation;

if (projReferenceInformation != null && projReferenceInformation.Any())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal static ProjectReferenceInformation GetProjectInformation(Project projec
{
ProjectName = name,
AssemblyName = assemblyName,
CompilationItems = compileItems,
CompilationItems = compileItems.ToList(),
FullPath = fullPath
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public static IProjectContext AddPackageDependencies(this IProjectContext projec
TargetFramework = projectInformation.TargetFramework,
TargetFrameworkMoniker = projectInformation.TargetFrameworkMoniker,
GeneratedImplicitNamespaceImportFile = projectInformation.GeneratedImplicitNamespaceImportFile,
Nullable = projectInformation.Nullable
Nullable = projectInformation.Nullable,
ProjectReferenceInformation = projectInformation.ProjectReferenceInformation
};
return newProjectContext;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public class ProjectReferenceInformation
/// Items included in the project reference for compilation
/// &lt;Compile Include="" /&gt;
/// </summary>
public IEnumerable<string> CompilationItems { get; set; }
public List<string> CompilationItems { get; set; }
}
}