Skip to content

Commit 0f8fdad

Browse files
Further 0.5.0 tweaks (#1191)
* Clarify debug instructions further * Fix error message * Add "using Microsoft.JSInterop" in templates * Clarify template descriptions
1 parent b5ff6db commit 0f8fdad

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

src/Microsoft.AspNetCore.Blazor.Server/MonoDebugProxy/MonoDebugProxyAppBuilderExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ private static string GetLaunchChromeInstructions(string appRootUrl)
138138
{
139139
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
140140
{
141-
return $@"<p>Close this browser, then press Win+R and enter the following:</p>
141+
return $@"<p>Close all Chrome instances, then press Win+R and enter the following:</p>
142142
<p><strong><code>""%programfiles(x86)%\Google\Chrome\Application\chrome.exe"" --remote-debugging-port=9222 {appRootUrl}</code></strong></p>";
143143
}
144144
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
145145
{
146-
return $@"<p>Close this browser, then in a terminal window execute the following:</p>
146+
return $@"<p>Close all Chrome instances, then in a terminal window execute the following:</p>
147147
<p><strong><code>google-chrome --remote-debugging-port=9222 {appRootUrl}</code></strong></p>";
148148
}
149149
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
150150
{
151-
return $@"<p>Close this browser, then in a terminal window execute the following:</p>
151+
return $@"<p>Close all Chrome instances, then in a terminal window execute the following:</p>
152152
<p><strong><code>open /Applications/Google\ Chrome.app --args --remote-debugging-port=9222 {appRootUrl}</code></strong></p>";
153153
}
154154
else

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorHosted-CSharp/.template.config.src/vs-2017.3.host.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"id": "1050"
77
},
88
"description": {
9-
"text": "A project template for creating an ASP.NET Core Blazor application",
9+
"text": "A project template for creating a Blazor application that runs on WebAssembly and is hosted on an ASP.NET Core server.",
1010
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
1111
"id": "1051"
1212
},
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@using System.Net.Http
1+
@using System.Net.Http
22
@using Microsoft.AspNetCore.Blazor.Layouts
33
@using Microsoft.AspNetCore.Blazor.Routing
4+
@using Microsoft.JSInterop
45
@using BlazorHosted_CSharp.Client
56
@using BlazorHosted_CSharp.Client.Shared

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorServerSide-CSharp/.template.config.src/vs-2017.3.host.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"id": "1050"
77
},
88
"description": {
9-
"text": "A project template for creating an ASP.NET Core Blazor application",
9+
"text": "A project template for creating a Blazor application that runs server-side inside an ASP.NET Core application.",
1010
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
1111
"id": "1051"
1212
},
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@using System.Net.Http
1+
@using System.Net.Http
22
@using Microsoft.AspNetCore.Blazor.Layouts
33
@using Microsoft.AspNetCore.Blazor.Routing
4+
@using Microsoft.JSInterop
45
@using BlazorServerSide_CSharp.App
56
@using BlazorServerSide_CSharp.App.Shared

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorStandalone-CSharp/.template.config.src/vs-2017.3.host.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"id": "1050"
77
},
88
"description": {
9-
"text": "A project template for creating an ASP.NET Core Blazor application",
9+
"text": "A project template for creating a standalone Blazor application that runs on WebAssembly.",
1010
"package": "{0CD94836-1526-4E85-87D3-FB5274C5AFC9}",
1111
"id": "1051"
1212
},
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
@using System.Net.Http
1+
@using System.Net.Http
22
@using Microsoft.AspNetCore.Blazor.Layouts
33
@using Microsoft.AspNetCore.Blazor.Routing
4+
@using Microsoft.JSInterop
45
@using BlazorStandalone_CSharp
56
@using BlazorStandalone_CSharp.Shared

src/Microsoft.JSInterop/JavaScriptRuntime/src/Microsoft.JSInterop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module DotNet {
6262
const resultJson = dispatcher.invokeDotNetFromJS(assemblyName, methodIdentifier, dotNetObjectId, argsJson);
6363
return resultJson ? parseJsonWithRevivers(resultJson) : null;
6464
} else {
65-
throw new Error('The current dispatcher does not support synchronous calls from JS to .NET. Use invokeAsync instead.');
65+
throw new Error('The current dispatcher does not support synchronous calls from JS to .NET. Use invokeMethodAsync instead.');
6666
}
6767
}
6868

0 commit comments

Comments
 (0)