You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `{ASSEMBLY NAME}` placeholder is the project's assembly name.
80
+
The `{PACKAGE ID/ASSEMBLY NAME}` placeholder is the project's package ID (`<PackageId>` in the project file) for a library or assembly name for an app.
81
81
82
82
:::moniker range="< aspnetcore-8.0"
83
83
@@ -95,7 +95,7 @@ Within the bundled file, each component is associated with a scope identifier. F
95
95
<h1b-3xxtam6d07>
96
96
```
97
97
98
-
The `{ASSEMBLY NAME}.styles.css` file uses the scope identifier to group a style declaration with its component. The following example provides the style for the preceding `<h1>` element:
98
+
The `{PACKAGE ID/ASSEMBLY NAME}.styles.css` file uses the scope identifier to group a style declaration with its component. The following example provides the style for the preceding `<h1>` element:
99
99
100
100
```css
101
101
/* /Components/Pages/Counter.razor.rz.scp.css */
@@ -104,11 +104,11 @@ h1[b-3xxtam6d07] {
104
104
}
105
105
```
106
106
107
-
At build time, a project bundle is created with the convention `obj/{CONFIGURATION}/{TARGET FRAMEWORK}/scopedcss/projectbundle/{ASSEMBLY NAME}.bundle.scp.css`, where the placeholders are:
107
+
At build time, a project bundle is created with the convention `obj/{CONFIGURATION}/{TARGET FRAMEWORK}/scopedcss/projectbundle/{PACKAGE ID/ASSEMBLY NAME}.bundle.scp.css`, where the placeholders are:
108
108
109
109
*`{CONFIGURATION}`: The app's build configuration (for example, `Debug`, `Release`).
110
110
*`{TARGET FRAMEWORK}`: The target framework (for example, `net6.0`).
111
-
*`{ASSEMBLY NAME}`: The app's assembly name (for example, `BlazorSample`).
111
+
*`{PACKAGE ID/ASSEMBLY NAME}`: The project's package ID (`<PackageId>` in the project file) for a library or assembly name for an app (for example, `BlazorSample`).
Copy file name to clipboardExpand all lines: aspnetcore/blazor/fundamentals/startup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ Both callbacks can return a `Promise`, and the promise is awaited before the sta
205
205
For the file name:
206
206
207
207
* If the JS initializers are consumed as a static asset in the project, use the format `{ASSEMBLY NAME}.lib.module.js`, where the `{ASSEMBLY NAME}` placeholder is the app's assembly name. For example, name the file `BlazorSample.lib.module.js` for a project with an assembly name of `BlazorSample`. Place the file in the app's `wwwroot` folder.
208
-
* If the JS initializers are consumed from an RCL, use the format `{LIBRARY NAME/PACKAGE ID}.lib.module.js`, where the `{LIBRARY NAME/PACKAGE ID}` placeholder is the project's library name or package identifier. For example, name the file `RazorClassLibrary1.lib.module.js` for an RCL with a package identifier of `RazorClassLibrary1`. Place the file in the library's `wwwroot` folder.
208
+
* If the JS initializers are consumed from an RCL, use the format `{LIBRARY NAME/PACKAGE ID}.lib.module.js`, where the `{LIBRARY NAME/PACKAGE ID}` placeholder is the project's library name or package identifier (`<PackageId>` value in the library's project file). For example, name the file `RazorClassLibrary1.lib.module.js` for an RCL with a package identifier of `RazorClassLibrary1`. Place the file in the library's `wwwroot` folder.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/javascript-interoperability/call-dotnet-from-javascript.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,12 @@ Pass in the name of the assembly containing the method, the identifier of the st
33
33
34
34
In the following example:
35
35
36
-
* The `{ASSEMBLY NAME}` placeholder is the app's assembly name.
36
+
* The `{PACKAGE ID/ASSEMBLY NAME}` placeholder is the project's package ID (`<PackageId>` in the project file) for a library or assembly name for an app.
37
37
* The `{.NET METHOD ID}` placeholder is the .NET method identifier.
38
38
* The `{ARGUMENTS}` placeholder are optional, comma-separated arguments to pass to the method, each of which must be JSON-serializable.
`DotNet.invokeMethodAsync` returns a [JS `Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise) representing the result of the operation. `DotNet.invokeMethod` (client-side components) returns the result of the operation.
@@ -239,7 +239,7 @@ In the call to `DotNet.invokeMethodAsync` (server-side or client-side components
239
239
Call `DotNet.createJSObjectReference(jsObject)` toconstructaJSobjectreferencesothatitcanbepassedto .NET, where `jsObject` isthe [JS `Object`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) used to create the JS object reference. The following example passes a reference to the non-serializable `window` object to .NET, which receives it in the `ReceiveWindowObject` C# method as an <xref:Microsoft.JSInterop.IJSObjectReference>:
Intheprecedingexample, the `{ASSEMBLYNAME}` placeholderistheapp'snamespace.
269
+
In the preceding example, the `{PACKAGE ID/ASSEMBLY NAME}` placeholder is the project's package ID (`<PackageId>` in the project file) for a library or assembly name for an app.
270
270
271
271
Call `DotNet.createJSStreamReference(streamReference)` to construct a JS stream reference so that it can be passed to .NET, where `streamReference` is an [`ArrayBuffer`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), [`Blob`](https://developer.mozilla.org/docs/Web/API/Blob), or any [typed array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), such as [`Uint8Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) or [`Float32Array`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float32Array), used to create the JS stream reference.
@@ -433,7 +433,7 @@ public class WeatherForecastClient(HttpClient http)
433
433
}
434
434
```
435
435
436
-
Intheprecedingexample, the `WeatherForecast` typeisastaticclassthatholdsweatherforecastdata. The `{ASSEMBLYNAME}` placeholderistheapp'sassemblyname (forexample, `usingstaticBlazorSample.Data;`).
436
+
Intheprecedingexample, the `WeatherForecast` typeisastaticclassthatholdsweatherforecastdata. The `{PACKAGEID/ASSEMBLYNAME}` placeholderistheproject'spackageID (`<PackageId>` intheprojectfile) foralibraryorassemblynameforanapp (forexample, `usingstaticBlazorSample.Data;`).
437
437
438
438
Inthefollowingexample, <xref:Microsoft.Extensions.DependencyInjection.HttpClientFactoryServiceCollectionExtensions.AddHttpClient%2A?displayProperty=nameWithType>isanextensionin <xref:Microsoft.Extensions.Http?displayProperty=fullName>. Addthepackagetoanappthatdoesn't already reference it.
0 commit comments