Rename "blazor content" project to "blazor library". Fixes #539

This commit is contained in:
Steve Sanderson 2018-04-11 14:13:42 +01:00
parent 2478c164b5
commit e727cf2419
11 changed files with 16 additions and 16 deletions

View File

@ -93,7 +93,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks",
EndProject EndProject
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}" 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}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorContent.CSharp", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorContent.CSharp\BlazorContent.CSharp.csproj", "{3A457B14-D91B-4FFF-A81A-8F350BDB911F}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLibrary.CSharp", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorLibrary.CSharp\BlazorLibrary.CSharp.csproj", "{3A457B14-D91B-4FFF-A81A-8F350BDB911F}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -1,3 +0,0 @@
<div class="my-component">
This Blazor component is defined in the <strong>BlazorContent.CSharp</strong> package.
</div>

View File

@ -3,19 +3,19 @@
"classifications": [ "classifications": [
"Web", "Web",
"Blazor", "Blazor",
"Content" "Library"
], ],
"groupIdentity": "Microsoft.Web.Blazor.Content", "groupIdentity": "Microsoft.Web.Blazor.Library",
"identity": "Microsoft.Web.Blazor.Content.CSharp", "identity": "Microsoft.Web.Blazor.Library.CSharp",
"name": "Blazor (content)", "name": "Blazor Library",
"preferNameDirectory": true, "preferNameDirectory": true,
"primaryOutputs": [ "primaryOutputs": [
{ {
"path": "BlazorContent.CSharp.csproj" "path": "BlazorLibrary.CSharp.csproj"
} }
], ],
"shortName": "blazorcontent", "shortName": "blazorlib",
"sourceName": "BlazorContent.CSharp", "sourceName": "BlazorLibrary.CSharp",
"sources": [ "sources": [
{ {
"source": "./", "source": "./",

View File

@ -0,0 +1,3 @@
<div class="my-component">
This Blazor component is defined in the <strong>BlazorLibrary.CSharp</strong> package.
</div>

View File

@ -1,14 +1,14 @@
using System; using System;
using Microsoft.AspNetCore.Blazor.Browser.Interop; using Microsoft.AspNetCore.Blazor.Browser.Interop;
namespace BlazorContent.CSharp namespace BlazorLibrary.CSharp
{ {
public class ExampleJsInterop public class ExampleJsInterop
{ {
public static string Prompt(string message) public static string Prompt(string message)
{ {
return RegisteredFunction.Invoke<string>( return RegisteredFunction.Invoke<string>(
"BlazorContent.CSharp.ExampleJsInterop.Prompt", "BlazorLibrary.CSharp.ExampleJsInterop.Prompt",
message); message);
} }
} }

View File

@ -1,6 +1,6 @@
// This file is to show how a content package may provide JavaScript interop features // This file is to show how a library package may provide JavaScript interop features
// wrapped in a .NET API // wrapped in a .NET API
Blazor.registerFunction('BlazorContent.CSharp.ExampleJsInterop.Prompt', function (message) { Blazor.registerFunction('BlazorLibrary.CSharp.ExampleJsInterop.Prompt', function (message) {
return prompt(message, 'Type anything here'); return prompt(message, 'Type anything here');
}); });

View File

@ -1,6 +1,6 @@
/* /*
This file is to show how CSS and other static resources (such as images) can be This file is to show how CSS and other static resources (such as images) can be
used from a content project/package. used from a library project/package.
*/ */
.my-component { .my-component {