Compare commits

..

3 Commits

Author SHA1 Message Date
Matija Koželj
ccbff06090 Add connected startup support 2023-01-17 14:12:42 +01:00
Matija Koželj
853e0c5988 Switch Connected.Components dependency from project to package 2023-01-17 14:12:12 +01:00
Matija Koželj
fbab389f66 Add local nuget server to nuget config sources 2023-01-17 13:46:28 +01:00
3 changed files with 29 additions and 5 deletions

View File

@ -9,11 +9,9 @@
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="Local repository" value="%LOCAL_NUGET%" />
<add key="TomPITGit" value="https://git.tompit.com/api/packages/Tom-PIT/nuget/index.json" />
<add key="ConnectedGit" value="https://git.tompit.com/api/packages/Connected/nuget/index.json" />
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
<add key="LocalNugetServer" value="%LOCAL_NUGET_SERVER%" />
<add key="Local file repository" value="%LOCAL_NUGET%" />
</packageSources>
<disabledPackageSources />
</configuration>
</configuration>

View File

@ -0,0 +1,25 @@
using Connected.Startup;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Connected.Services;
namespace Connected.Components.Showcase;
public class ClientStartup : IStartup
{
public static IServiceProvider Services { get; private set; } = default!;
public async Task Configure(WebAssemblyHost host)
{
Services = host.Services;
await Task.CompletedTask;
}
public async Task ConfigureServices(IServiceCollection services)
{
services.AddUIComponentServices();
await Task.CompletedTask;
}
}

View File

@ -21,6 +21,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.*-*" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.*-*" PrivateAssets="all" />
<PackageReference Include="Connected.Components" Version="1.0.*-*"/>
<PackageReference Include="Connected.Client" Version="1.0.*-*"/>
<PackageReference Include="Nerdbank.GitVersioning"
Version="3.5.119"
PrivateAssets="all"