Rename the client service class/file from [Module]Service to Client[Module]Service and the server service to Server[Module]Service. Update Edit.razor and Index.razor to inject Client[Module]Service and adjust all calls accordingly. Update DI registration in ClientStartup to register Client[Module]Service. Also remove the System.Net.Http.Json package reference from the client .csproj. File renames and reference updates keep class names and registrations consistent between client and server templates.
38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Version>1.0.0</Version>
|
|
<Authors>[Owner]</Authors>
|
|
<Company>[Owner]</Company>
|
|
<Description>[Description]</Description>
|
|
<Product>[Owner].Module.[Module]</Product>
|
|
<Copyright>[Owner]</Copyright>
|
|
<AssemblyName>[Owner].Module.[Module].Client.Oqtane</AssemblyName>
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.2" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="10.0.2" />
|
|
<PackageReference Include="Microsoft.Extensions.Localization" Version="10.0.2" />
|
|
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.2" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Shared\[Owner].Module.[Module].Shared.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
[ClientReference]
|
|
[SharedReference]
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- there may be other elements here -->
|
|
<BlazorWebAssemblyEnableLinking>false</BlazorWebAssemblyEnableLinking>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|