Skip to content

Commit

Permalink
StrongApiStringLocalizer - project references consolidation; test mov…
Browse files Browse the repository at this point in the history
…ed to new TestApp
  • Loading branch information
hakenr committed Feb 11, 2025
1 parent 7a4d3d2 commit d0cfa11
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 18 deletions.
6 changes: 0 additions & 6 deletions BlazorAppTest/BlazorAppTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@
<ProjectReference Include="..\Havit.Blazor.Components.Web.Bootstrap\Havit.Blazor.Components.Web.Bootstrap.csproj" />
<ProjectReference Include="..\Havit.Blazor.Components.Web\Havit.Blazor.Components.Web.csproj" />
<ProjectReference Include="..\Havit.Blazor.GoogleTagManager\Havit.Blazor.GoogleTagManager.csproj" />
<ProjectReference Include="..\Havit.Extensions.Localization\Havit.Extensions.Localization.csproj" />
<ProjectReference Include="..\Havit.SourceGenerators.StrongApiStringLocalizers\Havit.SourceGenerators.StrongApiStringLocalizers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\Havit.Blazor.Documentation\DemoData\**\*.*">
<Link>DemoData\%(RecursiveDir)%(FileName)%(Extension)</Link>
</Compile>
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="**\*.resx" />
</ItemGroup>
</Project>
3 changes: 0 additions & 3 deletions BlazorAppTest/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;
using BlazorAppTest.Resources;
using Havit.Blazor.Components.Web;
using Havit.Blazor.Documentation.DemoData;
using Havit.Blazor.GoogleTagManager;

Expand All @@ -22,7 +20,6 @@ public void ConfigureServices(IServiceCollection services)
services.AddLogging();

services.AddLocalization();
services.AddGeneratedResourceWrappers();

services.AddRazorPages();
services.AddServerSideBlazor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3306,7 +3306,7 @@
</member>
<member name="P:Havit.Blazor.Components.Web.Bootstrap.HxAutosuggest`2.Delay">
<summary>
The debounce delay in milliseconds.
The debounce delay in milliseconds. Default is 300 ms.
</summary>
</member>
<member name="P:Havit.Blazor.Components.Web.Bootstrap.HxAutosuggest`2.Placeholder">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using Havit.Blazor.Components.Web;

namespace Havit.Blazor.TestApp.Client;
namespace Havit.Blazor.TestApp.Client;

public static class DependencyInjectionExtensions
{
public static IServiceCollection AddClientServices(this IServiceCollection services)
{
services.AddHxServices();

services.AddTransient<IDemoDataService, DemoDataService>();
services.AddGeneratedResourceWrappers();


return services;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<ItemGroup>
<ProjectReference Include="..\..\Havit.Blazor.Components.Web.Bootstrap\Havit.Blazor.Components.Web.Bootstrap.csproj" />
<ProjectReference Include="..\..\Havit.SourceGenerators.StrongApiStringLocalizers\Havit.SourceGenerators.StrongApiStringLocalizers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
Expand All @@ -24,4 +25,8 @@
</Compile>
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="**\*.resx" />
</ItemGroup>

</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/StrongApiStringLocalizerTest"
@page "/StrongApiStringLocalizer"
@inject Resources.IGlobalLocalizer GlobalLocalizer

@GlobalLocalizer.HelloWorld
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Havit.Extensions.Localization\Havit.Extensions.Localization.csproj" />
</ItemGroup>

<Target Name="AddAnalyzerToNugetPackage" AfterTargets="Build" BeforeTargets="GenerateNuspec">
<ItemGroup>
<!-- Package the generator in the analyzer directory of the nuget package -->
Expand Down

0 comments on commit d0cfa11

Please sign in to comment.