~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/OutputOptionsPanel.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
                                string dir = outputPathEntry.Path;
146
146
                                dir = dir.Replace ("$(Configuration)", conf.Name);
147
147
                                dir = dir.Replace ("$(Platform)", conf.Platform);
148
 
                                if (!FileService.IsValidPath (dir)) {
 
148
                                if (!string.IsNullOrEmpty (dir) && !FileService.IsValidPath (dir)) {
149
149
                                        MessageService.ShowError (GettextCatalog.GetString ("Invalid output directory: {0}", dir));
150
150
                                        return false;
151
151
                                }
165
165
                                string dir = outputPathEntry.Path;
166
166
                                dir = dir.Replace ("$(Configuration)", conf.Name);
167
167
                                dir = dir.Replace ("$(Platform)", conf.Platform);
168
 
                                conf.OutputDirectory = dir;
 
168
                                if (!string.IsNullOrEmpty (dir))
 
169
                                        conf.OutputDirectory = dir;
169
170
                        }
170
171
                }
171
172
        }