Skip to content

Commit e727cf2

Browse files
Rename "blazor content" project to "blazor library". Fixes #539
1 parent 2478c16 commit e727cf2

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

Blazor.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks",
9393
EndProject
9494
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Blazor.Performance", "benchmarks\Microsoft.AspNetCore.Blazor.Performance\Microsoft.AspNetCore.Blazor.Performance.csproj", "{50F6820F-D058-4E68-9E15-801F893F514E}"
9595
EndProject
96-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorContent.CSharp", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorContent.CSharp\BlazorContent.CSharp.csproj", "{3A457B14-D91B-4FFF-A81A-8F350BDB911F}"
96+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLibrary.CSharp", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorLibrary.CSharp\BlazorLibrary.CSharp.csproj", "{3A457B14-D91B-4FFF-A81A-8F350BDB911F}"
9797
EndProject
9898
Global
9999
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorContent.CSharp/Component1.cshtml

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"classifications": [
44
"Web",
55
"Blazor",
6-
"Content"
6+
"Library"
77
],
8-
"groupIdentity": "Microsoft.Web.Blazor.Content",
9-
"identity": "Microsoft.Web.Blazor.Content.CSharp",
10-
"name": "Blazor (content)",
8+
"groupIdentity": "Microsoft.Web.Blazor.Library",
9+
"identity": "Microsoft.Web.Blazor.Library.CSharp",
10+
"name": "Blazor Library",
1111
"preferNameDirectory": true,
1212
"primaryOutputs": [
1313
{
14-
"path": "BlazorContent.CSharp.csproj"
14+
"path": "BlazorLibrary.CSharp.csproj"
1515
}
1616
],
17-
"shortName": "blazorcontent",
18-
"sourceName": "BlazorContent.CSharp",
17+
"shortName": "blazorlib",
18+
"sourceName": "BlazorLibrary.CSharp",
1919
"sources": [
2020
{
2121
"source": "./",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="my-component">
2+
This Blazor component is defined in the <strong>BlazorLibrary.CSharp</strong> package.
3+
</div>

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorContent.CSharp/ExampleJsInterop.cs renamed to src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorLibrary.CSharp/ExampleJsInterop.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
using System;
22
using Microsoft.AspNetCore.Blazor.Browser.Interop;
33

4-
namespace BlazorContent.CSharp
4+
namespace BlazorLibrary.CSharp
55
{
66
public class ExampleJsInterop
77
{
88
public static string Prompt(string message)
99
{
1010
return RegisteredFunction.Invoke<string>(
11-
"BlazorContent.CSharp.ExampleJsInterop.Prompt",
11+
"BlazorLibrary.CSharp.ExampleJsInterop.Prompt",
1212
message);
1313
}
1414
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// This file is to show how a content package may provide JavaScript interop features
1+
// This file is to show how a library package may provide JavaScript interop features
22
// wrapped in a .NET API
33

4-
Blazor.registerFunction('BlazorContent.CSharp.ExampleJsInterop.Prompt', function (message) {
4+
Blazor.registerFunction('BlazorLibrary.CSharp.ExampleJsInterop.Prompt', function (message) {
55
return prompt(message, 'Type anything here');
66
});

src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorContent.CSharp/content/styles.css renamed to src/Microsoft.AspNetCore.Blazor.Templates/content/BlazorLibrary.CSharp/content/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is to show how CSS and other static resources (such as images) can be
3-
used from a content project/package.
3+
used from a library project/package.
44
*/
55

66
.my-component {

0 commit comments

Comments
 (0)