-
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
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/Cogito.Components.Sample1/Cogito.Components.Sample1.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,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>net481;net8.0</TargetFrameworks> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Cogito.Autofac.DependencyInjection" Version="6.0.0" /> | ||
<PackageReference Include="Cogito.Extensions.Logging.Autofac" Version="3.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Cogito.Components\Cogito.Components.csproj" /> | ||
</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,19 @@ | ||
using System.Threading.Tasks; | ||
|
||
using Cogito.Autofac; | ||
using Cogito.Autofac.DependencyInjection; | ||
|
||
using Microsoft.Extensions.Hosting; | ||
|
||
namespace Cogito.Components.Sample1 | ||
{ | ||
|
||
public static class Program | ||
{ | ||
public static async Task Main(string[] args) => await Host.CreateDefaultBuilder(args) | ||
.UseServiceProviderFactory(new AutofacServiceProviderFactory(b => b.RegisterAllAssemblyModules())) | ||
.RunConsoleAsync(); | ||
|
||
} | ||
|
||
} |