-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65c1a5a
commit a856c05
Showing
11 changed files
with
109 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<LangVersion>preview</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
</PropertyGroup> | ||
|
||
<!-- Common Package Settings --> | ||
<PropertyGroup> | ||
<Version>1.0.2.0</Version> | ||
<RepositoryType>GitHub</RepositoryType> | ||
<Company>Marimer LLC</Company> | ||
<Product>Blazor Render Mode Detection</Product> | ||
<Copyright>Copyright © 2002-$([System.DateTime]::Now.ToString('yyyy')) Marimer LLC</Copyright> | ||
<Authors>Marimer LLC</Authors> | ||
<Title>Blazor Render Mode Detection</Title> | ||
<PackageProjectUrl>https://github.com/MarimerLLC/Marimer.Blazor.RenderMode</PackageProjectUrl> | ||
<PackageReadmeFile>../readme.md</PackageReadmeFile> | ||
<RepositoryUrl>https://github.com/MarimerLLC/Marimer.Blazor.RenderMode</RepositoryUrl> | ||
<PackageTags>aspnetcore;blazor</PackageTags> | ||
<PackageLicenseExpression> MIT</PackageLicenseExpression> | ||
<IncludeSymbols>True</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
</Project> |
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
Marimer.Blazor.RenderMode.WebAssembly/ConfigurationExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="ConfigurationExtensions.cs" company="Marimer LLC"> | ||
// Copyright (c) Marimer LLC. All rights reserved. | ||
// Website: https://cslanet.com | ||
// </copyright> | ||
// <summary>Extension methods for the RenderMode enum</summary> | ||
//----------------------------------------------------------------------- | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Marimer.Blazor.RenderMode.WebAssembly | ||
{ | ||
/// <summary> | ||
/// Extension methods for the RenderMode enum | ||
/// </summary> | ||
public static class ConfigurationExtensions | ||
{ | ||
/// <summary> | ||
/// Adds services required for render mode detection | ||
/// </summary> | ||
/// <param name="services">IServiceCollection instance</param> | ||
/// <returns></returns> | ||
public static IServiceCollection AddRenderModeDetection(this IServiceCollection services) | ||
{ | ||
services.AddTransient<RenderModeProvider>(); | ||
services.AddScoped<ActiveCircuitState>(); | ||
return services; | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Marimer.Blazor.RenderMode.WebAssembly/Marimer.Blazor.RenderMode.WebAssembly.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
<PropertyGroup> | ||
<PackageReadmeFile>readme.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="..\readme.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<SupportedPlatform Include="browser" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.8" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="readme.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@using Microsoft.AspNetCore.Components.Web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 9 additions & 25 deletions
34
Marimer.Blazor.RenderMode/Marimer.Blazor.RenderMode.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
param( | ||
[Parameter(Mandatory=$True, Position=0, ValueFromPipeline=$false)] | ||
[System.String] | ||
$apiKey | ||
) | ||
|
||
dotnet nuget push .\Marimer.Blazor.RenderMode\bin\Release\Marimer.Blazor.RenderMode.1.0.2.nupkg --source https://api.nuget.org/v3/index.json --api-key $apiKey | ||
dotnet nuget push .\Marimer.Blazor.RenderMode.WebAssembly\bin\Release\Marimer.Blazor.RenderMode.WebAssembly.1.0.2.nupkg --source https://api.nuget.org/v3/index.json --api-key $apiKey |