Dependous.AutoFac 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dependous.AutoFac --version 1.0.0                
NuGet\Install-Package Dependous.AutoFac -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dependous.AutoFac" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dependous.AutoFac --version 1.0.0                
#r "nuget: Dependous.AutoFac, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dependous.AutoFac as a Cake Addin
#addin nuget:?package=Dependous.AutoFac&version=1.0.0

// Install Dependous.AutoFac as a Cake Tool
#tool nuget:?package=Dependous.AutoFac&version=1.0.0                

IOC Container Integration

Now that we have a list of dependencies what do we do with them? It's time to integrate an IOC container. For this example, I chose AutoFac.

For more info on integrating Autofac into ASP.NET go here

.NET Core 3.1

# Program.cs
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
 public class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
            .UseAutoFacContainer(AssemblyPaths.From("Dependous"), logger: (o) => Console.WriteLine($"{o}"))
                .ConfigureWebHostDefaults(webBuilder =>
                {
                    webBuilder.UseStartup<Startup>();
                });
    }

#Statup.cs

 public void ConfigureServices(IServiceCollection services)
        {
             ...
            services.AddControllers();
            services.AddDependencyScanning();
        }


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Dependous.AutoFac:

Package Downloads
YouReplMe

A lightweight REPL library allowing you to build sentences to invoke actions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.0 119 7/31/2024
7.0.7 240 5/21/2024
7.0.2 401 3/2/2023
7.0.1 293 2/6/2023
6.0.0 534 1/21/2022
1.0.0 2,552 2/1/2021