Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2015-05-15 20:38:38 +0300
committerLluis Sanchez Gual <lluis@xamarin.com>2015-05-15 22:57:19 +0300
commitee51624a9b7e6114ff637a9db2ae95418da29d0b (patch)
tree352905f75058b3a94ca4a1df58ef6c5b81f30676 /main/src/addins/MonoDevelop.Autotools
parent91ecf0e28437b3bc9b08230936d2a66e559a3781 (diff)
Improved the API of ProjectReference
Added static methods for creating the different kinds of references. This is more convenient than a constructor that takes a few strings without a clear indication of what each string should be for each type of reference.
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools')
-rw-r--r--main/src/addins/MonoDevelop.Autotools/MakefileData.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/MakefileData.cs b/main/src/addins/MonoDevelop.Autotools/MakefileData.cs
index 6f7803c4a7..452b56c66e 100644
--- a/main/src/addins/MonoDevelop.Autotools/MakefileData.cs
+++ b/main/src/addins/MonoDevelop.Autotools/MakefileData.cs
@@ -1191,7 +1191,7 @@ namespace MonoDevelop.Autotools
ProjectReference AddNewPackageReference (DotNetProject project, SystemAssembly sa)
{
- ProjectReference pref = new ProjectReference (sa);
+ ProjectReference pref = ProjectReference.CreateAssemblyReference (sa);
project.References.Add (pref);
newPackageRefs [sa.Location] = pref;
@@ -1237,7 +1237,7 @@ namespace MonoDevelop.Autotools
} else {
// Try as a project ref
if (projects.ContainsKey (refstr)) {
- sproj.References.Add (new ProjectReference (projects [refstr]));
+ sproj.References.Add (ProjectReference.CreateProjectReference (projects [refstr]));
toRemove.Add (refstr);
}
}
@@ -1248,7 +1248,7 @@ namespace MonoDevelop.Autotools
// Add all remaining unresolved refs as Assembly refs
foreach (string s in mdata.UnresolvedReferences.Keys)
- sproj.References.Add (new ProjectReference (ReferenceType.Assembly, s));
+ sproj.References.Add (ProjectReference.CreateAssemblyFileReference (s));
// Remove asm/project refs not found in UnresolvedReferences
foreach (ProjectReference pr in asmProjectRefs.Values)