-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
a11eb9d
commit 0c94f8d
Showing
7 changed files
with
129 additions
and
4 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
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
77 changes: 77 additions & 0 deletions
77
src/Blazor.LocalStorage.Server/Blazor.LocalStorage.Server.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,77 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>true</ImplicitUsings> | ||
<Description>Source generated JavaScript interop for the browser's localStorage API compatible with Blazor Server.</Description> | ||
<Copyright>Copyright © David Pine. All rights reserved. Licensed under the MIT License.</Copyright> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd))</CurrentDate> | ||
<ClientVersion Condition=" '$(IsPreview)' != 'true' ">$(ClientOfficialVersion)</ClientVersion> | ||
<ClientVersion Condition=" '$(IsPreview)' == 'true' ">$(ClientPreviewVersion)</ClientVersion> | ||
<VersionSuffix Condition=" '$(IsNightly)' == 'true' ">nightly-$(CurrentDate)</VersionSuffix> | ||
<VersionSuffix Condition=" '$(IsPreview)' == 'true' ">preview</VersionSuffix> | ||
<Version Condition=" '$(VersionSuffix)' == '' ">$(ClientVersion)</Version> | ||
<Version Condition=" '$(VersionSuffix)' != '' ">$(ClientVersion)-$(VersionSuffix)</Version> | ||
<FileVersion>$(ClientVersion)</FileVersion> | ||
<Authors>David Pine</Authors> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<AssemblyName>Blazor.LocalStorage.Server</AssemblyName> | ||
<Title>A C# source-generated class library implementation of the native browser's localStorage API available as IJSRuntime extension methods.</Title> | ||
<PackageId>Blazor.LocalStorage.Server</PackageId> | ||
<PackageTags>dotnet;dotnetcore;csharp;blazor;generators;sourcegen;roslyn;</PackageTags> | ||
<PackageReleaseNotes></PackageReleaseNotes> | ||
<PackageProjectUrl>https://github.com/IEvangelist/blazorators</PackageProjectUrl> | ||
<PublishRepositoryUrl Condition=" '$(ProjectRef)' != 'True' ">true</PublishRepositoryUrl> | ||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo> | ||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<ShippingScope>External</ShippingScope> | ||
<SigningType>Product</SigningType> | ||
<DebugType>embedded</DebugType> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
<IncludeSource>false</IncludeSource> | ||
<RootNamespace>Blazor.LocalStorage.Server</RootNamespace> | ||
<NoWarn>NU5125;NU5039</NoWarn> | ||
<Optimize Condition="'$(Configuration)'=='Release'">true</Optimize> | ||
<RepositoryUrl>https://github.com/IEvangelist/blazorators</RepositoryUrl> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<RepositoryType>git</RepositoryType> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<IsPackable>true</IsPackable> | ||
<PackageIcon>logo.png</PackageIcon> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="MinVer" Version="2.5.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Primitives" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.JSInterop" Version="6.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Blazor.SourceGenerators\Blazor.SourceGenerators.csproj" | ||
OutputItemType="Analyzer" | ||
SetTargetFramework="TargetFramework=netstandard2.0" | ||
ReferenceOutputAssembly="false" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Label="Files"> | ||
<None Include="..\..\LICENSE" Pack="true" PackagePath="\" /> | ||
<None Include="..\..\README.md" Pack="true" PackagePath="\" /> | ||
<None Include="..\..\logo.png" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,17 @@ | ||
// Copyright (c) David Pine. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.JSInterop; | ||
|
||
/// <summary> | ||
/// Source generated extension methods on the <see cref="IJSRuntime"/> implementation. | ||
/// </summary> | ||
[JSAutoInterop( | ||
TypeName = "Storage", | ||
PathFromWindow = "window.localStorage", | ||
HostingModel = BlazorHostingModel.Server, | ||
OnlyGeneratePureJS = true, | ||
Url = "https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage")] | ||
public static partial class LocalStorageExtensions | ||
{ | ||
} |
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
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