mirror of
https://github.com/RRQM/TouchSocket.git
synced 2025-12-19 01:46:44 +08:00
同步企业版代码
This commit is contained in:
@@ -89,8 +89,8 @@ namespace TouchSocket.Core.AspNetCore
|
||||
{
|
||||
fromType = fromType.GetGenericTypeDefinition();
|
||||
}
|
||||
ServiceDescriptor[] array = this.m_services.ToArray();
|
||||
foreach (ServiceDescriptor item in array)
|
||||
var array = this.m_services.ToArray();
|
||||
foreach (var item in array)
|
||||
{
|
||||
if (item.ServiceType == fromType)
|
||||
{
|
||||
@@ -154,8 +154,8 @@ namespace TouchSocket.Core.AspNetCore
|
||||
/// <param name="key"></param>
|
||||
public void Unregister(DependencyDescriptor descriptor, string key = "")
|
||||
{
|
||||
ServiceDescriptor[] array = this.m_services.ToArray();
|
||||
foreach (ServiceDescriptor item in array)
|
||||
var array = this.m_services.ToArray();
|
||||
foreach (var item in array)
|
||||
{
|
||||
if (item.ServiceType == descriptor.FromType)
|
||||
{
|
||||
|
||||
@@ -1,53 +1,26 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net461;netstandard2.0;netcoreapp3.1;net7.0</TargetFrameworks>
|
||||
<ApplicationIcon>logo.ico</ApplicationIcon>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile></AssemblyOriginatorKeyFile>
|
||||
<Version>2.0.0-beta</Version>
|
||||
<NoPackageAnalysis>true</NoPackageAnalysis>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
|
||||
<Company>若汝棋茗</Company>
|
||||
<Copyright>Copyright © 2023 若汝棋茗</Copyright>
|
||||
<TargetFrameworks>net461;netstandard2.0;net6.0;net7.0</TargetFrameworks>
|
||||
<PackageTags>IOC;DependencyInjection</PackageTags>
|
||||
<Description>这是为TouchSocket.Core基于IServiceCollection构建的容器扩展包。
|
||||
|
||||
说明文档:http://rrqm_home.gitee.io/touchsocket</Description>
|
||||
<PackageProjectUrl>https://gitee.com/rrqm_home/touchsocket</PackageProjectUrl>
|
||||
<PackageIconUrl></PackageIconUrl>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<PackageIcon>logo.png</PackageIcon>
|
||||
<Authors>若汝棋茗</Authors>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
|
||||
<Title>TouchSocket.Core.DependencyInjection</Title>
|
||||
<BaseOutputPath>..\Build</BaseOutputPath>
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<RepositoryUrl>https://gitee.com/rrqm_home/touchsocket</RepositoryUrl>
|
||||
<PackageOutputPath>..\Build\NugetPackages\TouchSocket.Core.DependencyInjection</PackageOutputPath>
|
||||
<PackageOutputPath>..\..\Build\NugetPackages\TouchSocket.Core.DependencyInjection</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="LICENSE.txt">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
<None Include="logo.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'PackageReference'!='PackageReference'">
|
||||
<PackageReference Include="TouchSocket.Core" Version="2.0.0-beta" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'ProjectReference'=='ProjectReference'">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\TouchSocket.Core\TouchSocket.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<EmbedAllSources>True</EmbedAllSources>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user