Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit caa39a6

Browse files
Merge branch 'master' of github.com:icsharpcode/SharpDevelop
2 parents acd5d10 + 8ec9f9d commit caa39a6

7 files changed

Lines changed: 38 additions & 16 deletions

File tree

data/resources/StringResources.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6054,6 +6054,10 @@ Removed the end part of the original message ", reason '${Message}'" since this
60546054
<data name="ProjectComponent.ContextMenu.AddReference" xml:space="preserve">
60556055
<value>Add Reference</value>
60566056
</data>
6057+
<data name="ProjectComponent.ContextMenu.AddServiceReference" xml:space="preserve">
6058+
<value>Add Service Reference</value>
6059+
<comment>Right click context menu option to add a service reference to the project.</comment>
6060+
</data>
60576061
<data name="ProjectComponent.ContextMenu.AddWebReference" xml:space="preserve">
60586062
<value>Add Web Reference</value>
60596063
<comment>Right click context menu option to add a web reference to the project.</comment>

doc/Dependencies.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
<td style="padding-right: 8px;">.NET Framework 3.5 SP1 and below</td>
6464
<td>Included with .NET framework</td>
6565
</tr>
66+
<tr>
67+
<td>.NET Portable Class Libraries</td>
68+
<td><a href="http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981/">Portable Library Tools - Install with the /buildmachine switch</a></td>
69+
</tr>
6670
</table>
6771

6872
<p>

src/AddIns/Analysis/UnitTesting/Model/ITest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public interface ITest
5454
string DisplayName { get; }
5555

5656
/// <summary>
57-
/// Raised when the <see cref="Name"/> property changes.
57+
/// Raised when the <see cref="DisplayName"/> property changes.
5858
/// </summary>
5959
event EventHandler DisplayNameChanged;
6060

src/AddIns/Analysis/UnitTesting/Pad/UnitTestNode.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public override void ActivateItem(RoutedEventArgs e)
8484
public override bool ShowExpander {
8585
get { return test.CanExpandNestedTests && base.ShowExpander; }
8686
}
87+
88+
public override bool CanExpandRecursively {
89+
get { return true; }
90+
}
8791
#endregion
8892

8993
#region Icon + Text

src/Main/Base/Project/ICSharpCode.SharpDevelop.addin

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
label = "${res:ProjectComponent.ContextMenu.AddReference}"
367367
class = "ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject"/>
368368
<MenuItem id = "AddServiceReference"
369-
label = "Add Service Reference"
369+
label = "${res:ProjectComponent.ContextMenu.AddServiceReference}"
370370
class = "ICSharpCode.SharpDevelop.Project.Commands.AddServiceReferenceToProject"/>
371371
<MenuItem id = "AddWebReference"
372372
label = "${res:ProjectComponent.ContextMenu.AddWebReference}"
@@ -437,7 +437,7 @@
437437
label = "${res:ProjectComponent.ContextMenu.AddReference}"
438438
class = "ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject"/>
439439
<MenuItem id = "AddServiceReference"
440-
label = "Add Service Reference"
440+
label = "${res:ProjectComponent.ContextMenu.AddServiceReference}"
441441
class = "ICSharpCode.SharpDevelop.Project.Commands.AddServiceReferenceToProject"/>
442442
<MenuItem id = "AddWebReference"
443443
label = "${res:ProjectComponent.ContextMenu.AddWebReference}"
@@ -773,7 +773,7 @@
773773

774774
<Path name = "/SharpDevelop/Pads/ProjectBrowser/ContextMenu/ServiceReferencesFolderNode">
775775
<MenuItem id = "AddServiceReference"
776-
label = "Add Service Reference"
776+
label = "${res:ProjectComponent.ContextMenu.AddServiceReference}"
777777
class = "ICSharpCode.SharpDevelop.Project.Commands.AddServiceReferenceToProject"/>
778778
<Condition name = "Ownerstate" ownerstate = "Missing">
779779
<MenuItem id = "RemoveMissing"
@@ -1655,6 +1655,9 @@
16551655
<MenuItem id = "AddReference"
16561656
label = "${res:ProjectComponent.ContextMenu.AddReference}"
16571657
class = "ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject"/>
1658+
<MenuItem id = "AddServiceReference"
1659+
label = "${res:ProjectComponent.ContextMenu.AddServiceReference}"
1660+
class = "ICSharpCode.SharpDevelop.Project.Commands.AddServiceReferenceToProject"/>
16581661
<MenuItem id = "AddWebReference"
16591662
label = "${res:ProjectComponent.ContextMenu.AddWebReference}"
16601663
class = "ICSharpCode.SharpDevelop.Project.Commands.AddWebReferenceToProject"/>

src/Main/Base/Project/Project/PortableLibrary/CheckPortableLibraryInstalled.cs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
// DEALINGS IN THE SOFTWARE.
1818

1919
using System;
20-
using System.Collections;
21-
using System.Collections.Generic;
22-
using System.IO;
2320
using ICSharpCode.Core;
2421
using ICSharpCode.SharpDevelop.Gui;
2522

@@ -30,15 +27,22 @@ namespace ICSharpCode.SharpDevelop.Project.PortableLibrary
3027
/// </summary>
3128
public class CheckPortableLibraryInstalled : AbstractCommand
3229
{
30+
public static string CouldNotFindToolsDescription {
31+
get {
32+
return StringParser.Parse(
33+
"${res:PortableLibrary.CouldNotFindTools}" + Environment.NewLine + Environment.NewLine
34+
+ "${res:PortableLibrary.ToolsInstallationHelp}");
35+
}
36+
}
37+
38+
public static string DownloadUrl {
39+
get { return "http://go.microsoft.com/fwlink/?LinkId=210823"; }
40+
}
41+
3342
public override void Run()
3443
{
3544
if (!ProfileList.IsPortableLibraryInstalled()) {
36-
using (ToolNotFoundDialog dlg = new ToolNotFoundDialog(
37-
StringParser.Parse(
38-
"${res:PortableLibrary.CouldNotFindTools}" + Environment.NewLine + Environment.NewLine +
39-
"${res:PortableLibrary.ToolsInstallationHelp}"),
40-
"http://go.microsoft.com/fwlink/?LinkId=210823"
41-
)) {
45+
using (ToolNotFoundDialog dlg = new ToolNotFoundDialog(CouldNotFindToolsDescription, DownloadUrl)) {
4246
// our message is long, so make the window bigger than usual
4347
dlg.Width += 70;
4448
dlg.Height += 70;

src/Main/Base/Project/Src/Project/MSBuildBasedProject.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
using Microsoft.Build.Construction;
3535
using Microsoft.Build.Evaluation;
3636
using Microsoft.Build.Exceptions;
37+
using ICSharpCode.SharpDevelop.Project.PortableLibrary;
3738
using MSBuild = Microsoft.Build.Evaluation;
3839

3940
namespace ICSharpCode.SharpDevelop.Project
@@ -1243,12 +1244,14 @@ public MSBuildBasedProject(ProjectLoadInformation loadInformation)
12431244
} else {
12441245
throw;
12451246
}
1247+
} else if (ex.ErrorCode == "MSB4019" && ex.BaseMessage.Contains("Microsoft.Portable.") && !ProfileList.IsPortableLibraryInstalled()) {
1248+
throw new ToolNotFoundProjectLoadException(ex.Message, ex) {
1249+
Description = CheckPortableLibraryInstalled.CouldNotFindToolsDescription,
1250+
LinkTarget = CheckPortableLibraryInstalled.DownloadUrl
1251+
};
12461252
} else {
12471253
throw;
12481254
}
1249-
if (!(ex.ErrorCode == "MSB4132" && UpgradeToolsVersion(loadInformation))) {
1250-
throw;
1251-
}
12521255
}
12531256
success = true;
12541257
} catch (InvalidProjectFileException ex) {

0 commit comments

Comments
 (0)