commit 8c0d15398ebdc6049ba48205b6152de360b2a2e4 Author: leon.hoppe Date: Mon May 22 17:24:56 2023 +0200 Finished DependencyInjector diff --git a/.idea/.idea.DependencyInjector/.idea/.gitignore b/.idea/.idea.DependencyInjector/.idea/.gitignore new file mode 100644 index 0000000..5fb26ff --- /dev/null +++ b/.idea/.idea.DependencyInjector/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/contentModel.xml +/projectSettingsUpdater.xml +/.idea.DependencyInjector.iml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.DependencyInjector/.idea/discord.xml b/.idea/.idea.DependencyInjector/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/.idea/.idea.DependencyInjector/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/.idea.DependencyInjector/.idea/encodings.xml b/.idea/.idea.DependencyInjector/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.DependencyInjector/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.DependencyInjector/.idea/indexLayout.xml b/.idea/.idea.DependencyInjector/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.DependencyInjector/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.DependencyInjector/.idea/vcs.xml b/.idea/.idea.DependencyInjector/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.DependencyInjector/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DependencyInjector.Test/Config.cs b/DependencyInjector.Test/Config.cs new file mode 100644 index 0000000..9ff7428 --- /dev/null +++ b/DependencyInjector.Test/Config.cs @@ -0,0 +1,8 @@ +namespace DependencyInjector.Test; + +[Dependency(Type = DependencyType.Singleton)] +public class Config { + + public string Message { get; set; } = Dependency.Inject().CreateMessage("Hello World!"); + +} \ No newline at end of file diff --git a/DependencyInjector.Test/DependencyInjector.Test.csproj b/DependencyInjector.Test/DependencyInjector.Test.csproj new file mode 100644 index 0000000..638edf1 --- /dev/null +++ b/DependencyInjector.Test/DependencyInjector.Test.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + + diff --git a/DependencyInjector.Test/IMessageCreator.cs b/DependencyInjector.Test/IMessageCreator.cs new file mode 100644 index 0000000..e32cbf4 --- /dev/null +++ b/DependencyInjector.Test/IMessageCreator.cs @@ -0,0 +1,5 @@ +namespace DependencyInjector.Test; + +public interface IMessageCreator { + public string CreateMessage(string message); +} \ No newline at end of file diff --git a/DependencyInjector.Test/MessageCreator.cs b/DependencyInjector.Test/MessageCreator.cs new file mode 100644 index 0000000..a2393c4 --- /dev/null +++ b/DependencyInjector.Test/MessageCreator.cs @@ -0,0 +1,11 @@ +namespace DependencyInjector.Test; + +public class MessageCreator : IMessageCreator { + + public string CreateMessage(string message) => message; + + public MessageCreator() { + Console.WriteLine(1); + } + +} \ No newline at end of file diff --git a/DependencyInjector.Test/Program.cs b/DependencyInjector.Test/Program.cs new file mode 100644 index 0000000..40121b4 --- /dev/null +++ b/DependencyInjector.Test/Program.cs @@ -0,0 +1,11 @@ +// See https://aka.ms/new-console-template for more information + +using DependencyInjector; +using DependencyInjector.Test; + +Dependency.Provide(); + +var config = Dependency.Inject(); +var creator = Dependency.Inject(); +Console.WriteLine(config.Message); +Console.WriteLine(creator.CreateMessage("Test")); diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.deps.json b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.deps.json new file mode 100644 index 0000000..500690b --- /dev/null +++ b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.deps.json @@ -0,0 +1,36 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v7.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v7.0": { + "DependencyInjector.Test/1.0.0": { + "dependencies": { + "DependencyInjector": "1.0.0" + }, + "runtime": { + "DependencyInjector.Test.dll": {} + } + }, + "DependencyInjector/1.0.0": { + "runtime": { + "DependencyInjector.dll": {} + } + } + } + }, + "libraries": { + "DependencyInjector.Test/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "DependencyInjector/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.dll b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.dll new file mode 100644 index 0000000..2222f81 Binary files /dev/null and b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.dll differ diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.exe b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.exe new file mode 100644 index 0000000..9a423f6 Binary files /dev/null and b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.exe differ diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.pdb b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.pdb new file mode 100644 index 0000000..c9fc8d5 Binary files /dev/null and b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.pdb differ diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.runtimeconfig.json b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.runtimeconfig.json new file mode 100644 index 0000000..184be8b --- /dev/null +++ b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.Test.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net7.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "7.0.0" + } + } +} \ No newline at end of file diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.dll b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.dll new file mode 100644 index 0000000..e3565ee Binary files /dev/null and b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.dll differ diff --git a/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.pdb b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.pdb new file mode 100644 index 0000000..0c937c0 Binary files /dev/null and b/DependencyInjector.Test/bin/Debug/net7.0/DependencyInjector.pdb differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/DependencyInjector.Test/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs new file mode 100644 index 0000000..4257f4b --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.AssemblyInfo.cs b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.AssemblyInfo.cs new file mode 100644 index 0000000..33d7c54 --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("DependencyInjector.Test")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("DependencyInjector.Test")] +[assembly: System.Reflection.AssemblyTitleAttribute("DependencyInjector.Test")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.AssemblyInfoInputs.cache b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.AssemblyInfoInputs.cache new file mode 100644 index 0000000..4484ba1 --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +9e7536b734331a1c5a9d4ba12cfcecc8656cf6b3 diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.GeneratedMSBuildEditorConfig.editorconfig b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..eaaafed --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.TargetFramework = net7.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = DependencyInjector.Test +build_property.ProjectDir = D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.GlobalUsings.g.cs b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.assets.cache b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.assets.cache new file mode 100644 index 0000000..c015eff Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.assets.cache differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.AssemblyReference.cache b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.AssemblyReference.cache new file mode 100644 index 0000000..4640300 Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.AssemblyReference.cache differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.CopyComplete b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.CoreCompileInputs.cache b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..e77f60d --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +735a44281e7b7d6ccf05f017a8cd863c4a96b821 diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.FileListAbsolute.txt b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a71e31a --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.csproj.FileListAbsolute.txt @@ -0,0 +1,18 @@ +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.Test.exe +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.Test.deps.json +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.Test.runtimeconfig.json +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.Test.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.Test.pdb +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\bin\Debug\net7.0\DependencyInjector.pdb +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.csproj.AssemblyReference.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.GeneratedMSBuildEditorConfig.editorconfig +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.AssemblyInfoInputs.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.AssemblyInfo.cs +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.csproj.CoreCompileInputs.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.csproj.CopyComplete +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\refint\DependencyInjector.Test.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.pdb +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\DependencyInjector.Test.genruntimeconfig.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector.Test\obj\Debug\net7.0\ref\DependencyInjector.Test.dll diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.dll b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.dll new file mode 100644 index 0000000..2222f81 Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.dll differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.genruntimeconfig.cache b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.genruntimeconfig.cache new file mode 100644 index 0000000..375aef6 --- /dev/null +++ b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.genruntimeconfig.cache @@ -0,0 +1 @@ +389892aac11c74f04978d55185713c074a56c160 diff --git a/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.pdb b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.pdb new file mode 100644 index 0000000..c9fc8d5 Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/DependencyInjector.Test.pdb differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/apphost.exe b/DependencyInjector.Test/obj/Debug/net7.0/apphost.exe new file mode 100644 index 0000000..9a423f6 Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/apphost.exe differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/ref/DependencyInjector.Test.dll b/DependencyInjector.Test/obj/Debug/net7.0/ref/DependencyInjector.Test.dll new file mode 100644 index 0000000..862ce6a Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/ref/DependencyInjector.Test.dll differ diff --git a/DependencyInjector.Test/obj/Debug/net7.0/refint/DependencyInjector.Test.dll b/DependencyInjector.Test/obj/Debug/net7.0/refint/DependencyInjector.Test.dll new file mode 100644 index 0000000..862ce6a Binary files /dev/null and b/DependencyInjector.Test/obj/Debug/net7.0/refint/DependencyInjector.Test.dll differ diff --git a/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.dgspec.json b/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.dgspec.json new file mode 100644 index 0000000..5abb30e --- /dev/null +++ b/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.dgspec.json @@ -0,0 +1,122 @@ +{ + "format": 1, + "restore": { + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj": {} + }, + "projects": { + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj", + "projectName": "DependencyInjector.Test", + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj", + "packagesPath": "C:\\Users\\leon\\.nuget\\packages\\", + "outputPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\leon\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": { + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj": { + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json" + } + } + }, + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "projectName": "DependencyInjector", + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "packagesPath": "C:\\Users\\leon\\.nuget\\packages\\", + "outputPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\leon\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.g.props b/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.g.props new file mode 100644 index 0000000..6a8a019 --- /dev/null +++ b/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\leon\.nuget\packages\ + PackageReference + 6.4.0 + + + + + \ No newline at end of file diff --git a/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.g.targets b/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/DependencyInjector.Test/obj/DependencyInjector.Test.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/DependencyInjector.Test/obj/project.assets.json b/DependencyInjector.Test/obj/project.assets.json new file mode 100644 index 0000000..766c56b --- /dev/null +++ b/DependencyInjector.Test/obj/project.assets.json @@ -0,0 +1,91 @@ +{ + "version": 3, + "targets": { + "net7.0": { + "DependencyInjector/1.0.0": { + "type": "project", + "framework": ".NETCoreApp,Version=v7.0", + "compile": { + "bin/placeholder/DependencyInjector.dll": {} + }, + "runtime": { + "bin/placeholder/DependencyInjector.dll": {} + } + } + } + }, + "libraries": { + "DependencyInjector/1.0.0": { + "type": "project", + "path": "../DependencyInjector/DependencyInjector.csproj", + "msbuildProject": "../DependencyInjector/DependencyInjector.csproj" + } + }, + "projectFileDependencyGroups": { + "net7.0": [ + "DependencyInjector >= 1.0.0" + ] + }, + "packageFolders": { + "C:\\Users\\leon\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj", + "projectName": "DependencyInjector.Test", + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj", + "packagesPath": "C:\\Users\\leon\\.nuget\\packages\\", + "outputPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\leon\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": { + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj": { + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/DependencyInjector.Test/obj/project.nuget.cache b/DependencyInjector.Test/obj/project.nuget.cache new file mode 100644 index 0000000..3fbab45 --- /dev/null +++ b/DependencyInjector.Test/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "q/1ZU+0izLraOoAvbu+VJPuWBb0H9hPumfa4ExatbuKFc230h4Awrws9Qcj5LH4vWVRhu/VwhfXb+Io2Z/sNeg==", + "success": true, + "projectFilePath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/DependencyInjector.Test/obj/project.packagespec.json b/DependencyInjector.Test/obj/project.packagespec.json new file mode 100644 index 0000000..13a5f1c --- /dev/null +++ b/DependencyInjector.Test/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj","projectName":"DependencyInjector.Test","projectPath":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\DependencyInjector.Test.csproj","outputPath":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector.Test\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj":{"projectPath":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj"}}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/DependencyInjector.Test/obj/rider.project.restore.info b/DependencyInjector.Test/obj/rider.project.restore.info new file mode 100644 index 0000000..facbaf4 --- /dev/null +++ b/DependencyInjector.Test/obj/rider.project.restore.info @@ -0,0 +1 @@ +16846935440339462 \ No newline at end of file diff --git a/DependencyInjector.sln b/DependencyInjector.sln new file mode 100644 index 0000000..e23175a --- /dev/null +++ b/DependencyInjector.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DependencyInjector", "DependencyInjector\DependencyInjector.csproj", "{C63EC797-C495-437E-B561-905CE800A54A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DependencyInjector.Test", "DependencyInjector.Test\DependencyInjector.Test.csproj", "{6C166061-9EDB-4D16-BBA4-C2BF747363F8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C63EC797-C495-437E-B561-905CE800A54A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C63EC797-C495-437E-B561-905CE800A54A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C63EC797-C495-437E-B561-905CE800A54A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C63EC797-C495-437E-B561-905CE800A54A}.Release|Any CPU.Build.0 = Release|Any CPU + {6C166061-9EDB-4D16-BBA4-C2BF747363F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C166061-9EDB-4D16-BBA4-C2BF747363F8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C166061-9EDB-4D16-BBA4-C2BF747363F8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C166061-9EDB-4D16-BBA4-C2BF747363F8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/DependencyInjector/Dependency.cs b/DependencyInjector/Dependency.cs new file mode 100644 index 0000000..de76b06 --- /dev/null +++ b/DependencyInjector/Dependency.cs @@ -0,0 +1,13 @@ +using DependencyInjector.Providers; + +namespace DependencyInjector; + +public static class Dependency { + private static IDependencyProvider _provider = new DefaultProvider(); + + public static T Inject(params object[] args) => _provider.Inject(args); + public static void Provide(params object[] args) => _provider.Provide(args); + public static void Provide(params object[] args) where TImplementor : TAccessor => _provider.Provide(args); + + public static void UseProvider(params object[] args) where T : IDependencyProvider => _provider = (IDependencyProvider)Activator.CreateInstance(typeof(T), args)!; +} \ No newline at end of file diff --git a/DependencyInjector/DependencyAttribute.cs b/DependencyInjector/DependencyAttribute.cs new file mode 100644 index 0000000..50113e0 --- /dev/null +++ b/DependencyInjector/DependencyAttribute.cs @@ -0,0 +1,13 @@ +namespace DependencyInjector; + +[AttributeUsage(validOn: AttributeTargets.Class)] +public sealed class DependencyAttribute : Attribute { + + public DependencyType Type { get; set; } = DependencyType.Singleton; + +} + +public enum DependencyType : byte { + Singleton = 0x00, + Scoped = 0x01 +} diff --git a/DependencyInjector/DependencyInjector.csproj b/DependencyInjector/DependencyInjector.csproj new file mode 100644 index 0000000..6836c68 --- /dev/null +++ b/DependencyInjector/DependencyInjector.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/DependencyInjector/IDependencyProvider.cs b/DependencyInjector/IDependencyProvider.cs new file mode 100644 index 0000000..8035f12 --- /dev/null +++ b/DependencyInjector/IDependencyProvider.cs @@ -0,0 +1,9 @@ +namespace DependencyInjector; + +public interface IDependencyProvider { + protected IDictionary Dependencies { get; } + + public T Inject(params object[] args); + public T Provide(params object[] args); + public TAccessor Provide(params object[] args) where TImplementor : TAccessor; +} \ No newline at end of file diff --git a/DependencyInjector/Providers/DefaultProvider.cs b/DependencyInjector/Providers/DefaultProvider.cs new file mode 100644 index 0000000..f99fde3 --- /dev/null +++ b/DependencyInjector/Providers/DefaultProvider.cs @@ -0,0 +1,44 @@ +using System.Reflection; + +namespace DependencyInjector.Providers; + +internal class DefaultProvider : IDependencyProvider { + public IDictionary Dependencies { get; } = new Dictionary(); + + public T Inject(params object[] args) { + var type = typeof(T); + if (Dependencies.ContainsKey(type)) + return (T)Dependencies[type]; + + return Provide(args); + } + + public T Provide(params object[] args) { + return Provide(args); + } + + public TAccessor Provide(params object[] args) where TImplementor : TAccessor { + var type = typeof(TAccessor); + if (Dependencies.ContainsKey(type)) { + throw new ArgumentException("Dependency already registered"); + } + + var instance = Activator.CreateInstance(typeof(TImplementor), args)!; + + var dependencyType = DependencyType.Singleton; + if (type.GetCustomAttributes().SingleOrDefault(attr => attr is DependencyAttribute) is DependencyAttribute attribute) + dependencyType = attribute.Type; + + switch (dependencyType) { + case DependencyType.Scoped: + break; + + case DependencyType.Singleton: + default: + Dependencies.Add(type, instance); + break; + } + + return (TAccessor)instance; + } +} \ No newline at end of file diff --git a/DependencyInjector/bin/Debug/net7.0/DependencyInjector.deps.json b/DependencyInjector/bin/Debug/net7.0/DependencyInjector.deps.json new file mode 100644 index 0000000..4dd814a --- /dev/null +++ b/DependencyInjector/bin/Debug/net7.0/DependencyInjector.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v7.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v7.0": { + "DependencyInjector/1.0.0": { + "runtime": { + "DependencyInjector.dll": {} + } + } + } + }, + "libraries": { + "DependencyInjector/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/DependencyInjector/bin/Debug/net7.0/DependencyInjector.dll b/DependencyInjector/bin/Debug/net7.0/DependencyInjector.dll new file mode 100644 index 0000000..e3565ee Binary files /dev/null and b/DependencyInjector/bin/Debug/net7.0/DependencyInjector.dll differ diff --git a/DependencyInjector/bin/Debug/net7.0/DependencyInjector.pdb b/DependencyInjector/bin/Debug/net7.0/DependencyInjector.pdb new file mode 100644 index 0000000..0c937c0 Binary files /dev/null and b/DependencyInjector/bin/Debug/net7.0/DependencyInjector.pdb differ diff --git a/DependencyInjector/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/DependencyInjector/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs new file mode 100644 index 0000000..4257f4b --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.AssemblyInfo.cs b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.AssemblyInfo.cs new file mode 100644 index 0000000..12d7aea --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("DependencyInjector")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("DependencyInjector")] +[assembly: System.Reflection.AssemblyTitleAttribute("DependencyInjector")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.AssemblyInfoInputs.cache b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.AssemblyInfoInputs.cache new file mode 100644 index 0000000..f0a136b --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +0cb73fe4c2934ff721581ba7976d38aab432c687 diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.GeneratedMSBuildEditorConfig.editorconfig b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..955970a --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.TargetFramework = net7.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = DependencyInjector +build_property.ProjectDir = D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\ diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.GlobalUsings.g.cs b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.assets.cache b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.assets.cache new file mode 100644 index 0000000..168771b Binary files /dev/null and b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.assets.cache differ diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.AssemblyReference.cache b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.AssemblyReference.cache new file mode 100644 index 0000000..c89e8d7 Binary files /dev/null and b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.AssemblyReference.cache differ diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.CoreCompileInputs.cache b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..2c5ba44 --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +9262ed829083078fca87b50ffae18ed46195f3f6 diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.FileListAbsolute.txt b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..daa1edf --- /dev/null +++ b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\bin\Debug\net7.0\DependencyInjector.deps.json +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\bin\Debug\net7.0\DependencyInjector.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\bin\Debug\net7.0\DependencyInjector.pdb +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.csproj.AssemblyReference.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.GeneratedMSBuildEditorConfig.editorconfig +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.AssemblyInfoInputs.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.AssemblyInfo.cs +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.csproj.CoreCompileInputs.cache +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\refint\DependencyInjector.dll +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\DependencyInjector.pdb +D:\Programmierstuff\C#\DependencyInjector\DependencyInjector\obj\Debug\net7.0\ref\DependencyInjector.dll diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.dll b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.dll new file mode 100644 index 0000000..e3565ee Binary files /dev/null and b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.dll differ diff --git a/DependencyInjector/obj/Debug/net7.0/DependencyInjector.pdb b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.pdb new file mode 100644 index 0000000..0c937c0 Binary files /dev/null and b/DependencyInjector/obj/Debug/net7.0/DependencyInjector.pdb differ diff --git a/DependencyInjector/obj/Debug/net7.0/ref/DependencyInjector.dll b/DependencyInjector/obj/Debug/net7.0/ref/DependencyInjector.dll new file mode 100644 index 0000000..693ae4a Binary files /dev/null and b/DependencyInjector/obj/Debug/net7.0/ref/DependencyInjector.dll differ diff --git a/DependencyInjector/obj/Debug/net7.0/refint/DependencyInjector.dll b/DependencyInjector/obj/Debug/net7.0/refint/DependencyInjector.dll new file mode 100644 index 0000000..693ae4a Binary files /dev/null and b/DependencyInjector/obj/Debug/net7.0/refint/DependencyInjector.dll differ diff --git a/DependencyInjector/obj/DependencyInjector.csproj.nuget.dgspec.json b/DependencyInjector/obj/DependencyInjector.csproj.nuget.dgspec.json new file mode 100644 index 0000000..2e293e0 --- /dev/null +++ b/DependencyInjector/obj/DependencyInjector.csproj.nuget.dgspec.json @@ -0,0 +1,63 @@ +{ + "format": 1, + "restore": { + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj": {} + }, + "projects": { + "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "projectName": "DependencyInjector", + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "packagesPath": "C:\\Users\\leon\\.nuget\\packages\\", + "outputPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\leon\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/DependencyInjector/obj/DependencyInjector.csproj.nuget.g.props b/DependencyInjector/obj/DependencyInjector.csproj.nuget.g.props new file mode 100644 index 0000000..6a8a019 --- /dev/null +++ b/DependencyInjector/obj/DependencyInjector.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\leon\.nuget\packages\ + PackageReference + 6.4.0 + + + + + \ No newline at end of file diff --git a/DependencyInjector/obj/DependencyInjector.csproj.nuget.g.targets b/DependencyInjector/obj/DependencyInjector.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/DependencyInjector/obj/DependencyInjector.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/DependencyInjector/obj/project.assets.json b/DependencyInjector/obj/project.assets.json new file mode 100644 index 0000000..73a2ca1 --- /dev/null +++ b/DependencyInjector/obj/project.assets.json @@ -0,0 +1,68 @@ +{ + "version": 3, + "targets": { + "net7.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net7.0": [] + }, + "packageFolders": { + "C:\\Users\\leon\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "projectName": "DependencyInjector", + "projectPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "packagesPath": "C:\\Users\\leon\\.nuget\\packages\\", + "outputPath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\leon\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/DependencyInjector/obj/project.nuget.cache b/DependencyInjector/obj/project.nuget.cache new file mode 100644 index 0000000..aee80ef --- /dev/null +++ b/DependencyInjector/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "HP3eskJr8QpaFlQAMoGNI9wtStoxRNgylnvAfzqK7vPxG+Dcw7rji6bV/Ddc/gpv8fRGu8QP6FGz/ByR0t4hZw==", + "success": true, + "projectFilePath": "D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/DependencyInjector/obj/project.packagespec.json b/DependencyInjector/obj/project.packagespec.json new file mode 100644 index 0000000..335f16e --- /dev/null +++ b/DependencyInjector/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj","projectName":"DependencyInjector","projectPath":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\DependencyInjector.csproj","outputPath":"D:\\Programmierstuff\\C#\\DependencyInjector\\DependencyInjector\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/DependencyInjector/obj/rider.project.restore.info b/DependencyInjector/obj/rider.project.restore.info new file mode 100644 index 0000000..864d737 --- /dev/null +++ b/DependencyInjector/obj/rider.project.restore.info @@ -0,0 +1 @@ +16846914047365657 \ No newline at end of file