diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-12-01 12:47:55 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-12-01 12:47:55 +0300 |
commit | ab32048dab6d3167129a819e1dbb2a88e6216a78 (patch) | |
tree | 1d60673cbcf5bf6cf7ff4b4cb25632a4815916bc /main/src/addins/VBNetBinding | |
parent | bf6f75cb0e4366365dad6d1a037fb1aabc34ac66 (diff) |
Introduced the ConfigurationSelector class to all methods that
previously took a configuration name as string. This eliminates the
ambiguity between solution configuration names and project
configuration names.
svn path=/trunk/monodevelop/; revision=147198
Diffstat (limited to 'main/src/addins/VBNetBinding')
-rw-r--r-- | main/src/addins/VBNetBinding/ChangeLog | 9 | ||||
-rw-r--r-- | main/src/addins/VBNetBinding/VBBindingCompilerServices.cs | 4 | ||||
-rw-r--r-- | main/src/addins/VBNetBinding/VBLanguageBinding.cs | 4 |
3 files changed, 13 insertions, 4 deletions
diff --git a/main/src/addins/VBNetBinding/ChangeLog b/main/src/addins/VBNetBinding/ChangeLog index e1020f9fd9..bd1b2d6304 100644 --- a/main/src/addins/VBNetBinding/ChangeLog +++ b/main/src/addins/VBNetBinding/ChangeLog @@ -1,3 +1,12 @@ +2009-12-01 Lluis Sanchez Gual <lluis@novell.com> + + * VBLanguageBinding.cs: + * VBBindingCompilerServices.cs: Introduced the + ConfigurationSelector class to all methods that previously + took a configuration name as string. This eliminates the + ambiguity between solution configuration names and project + configuration names. + 2009-11-24 Rolf Bjarne Kvinge <RKvinge@novell.com> * VBBindingCompilerServices.cs: When setting the doc file, use quotes diff --git a/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs b/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs index 2c93c1bd18..5ee3d089d9 100644 --- a/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs +++ b/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs @@ -191,7 +191,7 @@ namespace MonoDevelop.VBNetBinding { return sb.ToString(); } - public BuildResult Compile (ProjectItemCollection items, DotNetProjectConfiguration configuration, IProgressMonitor monitor) + public BuildResult Compile (ProjectItemCollection items, DotNetProjectConfiguration configuration, ConfigurationSelector configSelector, IProgressMonitor monitor) { VBCompilerParameters compilerparameters = (VBCompilerParameters) configuration.CompilationParameters; if (compilerparameters == null) @@ -209,7 +209,7 @@ namespace MonoDevelop.VBNetBinding { // Write references foreach (ProjectReference lib in items.GetAll<ProjectReference> ()) { - foreach (string fileName in lib.GetReferencedFileNames(configuration.Id)) { + foreach (string fileName in lib.GetReferencedFileNames (configSelector)) { writer.Write ("\"-r:"); writer.Write (fileName); writer.WriteLine ("\""); diff --git a/main/src/addins/VBNetBinding/VBLanguageBinding.cs b/main/src/addins/VBNetBinding/VBLanguageBinding.cs index a26a6f50ae..c94b1ad2b7 100644 --- a/main/src/addins/VBNetBinding/VBLanguageBinding.cs +++ b/main/src/addins/VBNetBinding/VBLanguageBinding.cs @@ -65,10 +65,10 @@ namespace MonoDevelop.VBNetBinding return Path.GetExtension(fileName) == ".vb"; } - public BuildResult Compile (ProjectItemCollection items, DotNetProjectConfiguration configuration, IProgressMonitor monitor) + public BuildResult Compile (ProjectItemCollection items, DotNetProjectConfiguration configuration, ConfigurationSelector configSelector, IProgressMonitor monitor) { Debug.Assert(compilerServices != null); - return compilerServices.Compile (items, configuration, monitor); + return compilerServices.Compile (items, configuration, configSelector, monitor); } public ConfigurationParameters CreateCompilationParameters (XmlElement projectOptions) |