Commit 75d1257d authored by Marc Gravell's avatar Marc Gravell

we should probably release SE.Redis.StrongName as a type-forwarding assembly,...

we should probably release SE.Redis.StrongName as a type-forwarding assembly, to make the aspnet folks not hate us
parent f923aead
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
<Description>High performance Redis client, incorporating both synchronous and asynchronous usage.</Description>
<AssemblyTitle>StackExchange.Redis.StrongName</AssemblyTitle>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>StackExchange.Redis.StrongName</AssemblyName>
<PackageId>StackExchange.Redis.StrongName</PackageId>
<PackageTags>Async;Redis;Cache;PubSub;Messaging</PackageTags>
<OutputTypeEx>Library</OutputTypeEx>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\StackExchange.Redis\StackExchange.Redis.csproj" />
</ItemGroup>
</Project>
\ No newline at end of file
using System.Runtime.CompilerServices;
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.Aggregate))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.Bitwise))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ClientFlags))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ClientInfo))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ClientType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ClusterConfiguration))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ClusterNode))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.CommandFlags))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.CommandMap))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.CommandStatus))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.CommandTrace))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.Condition))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConditionResult))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConfigurationOptions))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConnectionCounters))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConnectionFailedEventArgs))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConnectionFailureType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConnectionMultiplexer))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ConnectionType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.EndPointCollection))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.EndPointEventArgs))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.Exclude))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ExponentialRetry))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ExportOptions))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ExtensionMethods))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.GeoEntry))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.GeoPosition))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.GeoRadiusOptions))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.GeoRadiusResult))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.GeoUnit))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.HashEntry))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.HashSlotMovedEventArgs))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IBatch))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IConnectionMultiplexer))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IDatabase))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IDatabaseAsync))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IProfiledCommand))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IProfiler))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IReconnectRetryPolicy))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IRedis))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IRedisAsync))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IScanningCursor))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.IServer))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ISubscriber))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ITransaction))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.InternalErrorEventArgs))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.KeyspaceIsolation.DatabaseExtensions))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.LinearRetry))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.LoadedLuaScript))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.LuaScript))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.MigrateOptions))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.Order))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ProfiledCommandEnumerable))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.Proxy))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisChannel))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisCommandException))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisConnectionException))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisErrorEventArgs))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisException))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisFeatures))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisKey))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisResult))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisServerException))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisTimeoutException))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisValue))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RedisValueWithExpiry))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ReplicationChangeOptions))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.RetransmissionReasonType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.SaveType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ServerCounters))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ServerType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.SetOperation))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.ShutdownMode))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.SlotRange))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.SocketManager))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.SortType))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.SortedSetEntry))]
[assembly: TypeForwardedTo(typeof(global::StackExchange.Redis.When))]
...@@ -69,7 +69,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BasicTestBaseline", "BasicT ...@@ -69,7 +69,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BasicTestBaseline", "BasicT
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pipelines.Sockets.Unofficial", "..\Pipelines.Sockets.Unofficial\src\Pipelines.Sockets.Unofficial\Pipelines.Sockets.Unofficial.csproj", "{6BE847CC-5615-4C72-A304-3DB29725FC76}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pipelines.Sockets.Unofficial", "..\Pipelines.Sockets.Unofficial\src\Pipelines.Sockets.Unofficial\Pipelines.Sockets.Unofficial.csproj", "{6BE847CC-5615-4C72-A304-3DB29725FC76}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestConsole", "TestConsole\TestConsole.csproj", "{651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestConsole", "TestConsole\TestConsole.csproj", "{651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StackExchange.Redis.StrongName", "StackExchange.Redis.StrongName\StackExchange.Redis.StrongName.csproj", "{769640F3-889C-4E8A-A7DF-916AE9B432A6}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
...@@ -143,6 +145,14 @@ Global ...@@ -143,6 +145,14 @@ Global
{651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}.Release|Any CPU.Build.0 = Release|Any CPU {651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}.Release|Any CPU.Build.0 = Release|Any CPU
{651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}.Verbose|Any CPU.ActiveCfg = Debug|Any CPU {651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}.Verbose|Any CPU.ActiveCfg = Debug|Any CPU
{651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}.Verbose|Any CPU.Build.0 = Debug|Any CPU {651FDB97-9DE3-4BD9-9A05-827AF8F1A94A}.Verbose|Any CPU.Build.0 = Debug|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Log Output|Any CPU.ActiveCfg = Debug|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Log Output|Any CPU.Build.0 = Debug|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Release|Any CPU.Build.0 = Release|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Verbose|Any CPU.ActiveCfg = Debug|Any CPU
{769640F3-889C-4E8A-A7DF-916AE9B432A6}.Verbose|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
......
...@@ -7,7 +7,19 @@ ...@@ -7,7 +7,19 @@
class Program class Program
{ {
static int Main() static void Main()
{
var arr = typeof(ConnectionMultiplexer).Assembly.GetTypes();
Array.Sort(arr, (x, y) => string.CompareOrdinal(x.FullName, y.FullName));
foreach (var type in arr)
{
if (type.IsPublic)
{
Console.WriteLine($"[assembly:TypeForwardedTo(typeof(global::{type.FullName}))]");
}
}
}
static int Main2()
{ {
var s = new StringWriter(); var s = new StringWriter();
try try
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment