Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add net6.0 as a target framework #616

Merged
merged 15 commits into from May 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions ref/Castle.Core-net6.0.cs
Expand Up @@ -205,6 +205,7 @@ public class DictionaryAdapterInstance
public System.Collections.Generic.IDictionary<string, Castle.Components.DictionaryAdapter.PropertyDescriptor> Properties { get; }
public void AddCopyStrategy(Castle.Components.DictionaryAdapter.IDictionaryCopyStrategy copyStrategy) { }
}
[System.Diagnostics.DebuggerDisplay("Type: {Type.FullName,nq}")]
jonorossi marked this conversation as resolved.
Show resolved Hide resolved
public class DictionaryAdapterMeta
{
public DictionaryAdapterMeta(System.Type type, System.Type implementation, object[] behaviors, Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[] metaInitializers, Castle.Components.DictionaryAdapter.IDictionaryInitializer[] initializers, System.Collections.Generic.IDictionary<string, Castle.Components.DictionaryAdapter.PropertyDescriptor> properties, Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory factory, System.Func<Castle.Components.DictionaryAdapter.DictionaryAdapterInstance, Castle.Components.DictionaryAdapter.IDictionaryAdapter> creator) { }
Expand Down Expand Up @@ -567,6 +568,8 @@ public class KeySubstitutionAttribute : Castle.Components.DictionaryAdapter.Dict
{
public KeySubstitutionAttribute(string oldValue, string newValue) { }
}
[System.Diagnostics.DebuggerDisplay("Count = {Count}, Adapter = {Adapter}")]
[System.Diagnostics.DebuggerTypeProxy(typeof(Castle.Components.DictionaryAdapter.ListProjectionDebugView<T>))]
public class ListProjection<T> : Castle.Components.DictionaryAdapter.IBindingListSource, Castle.Components.DictionaryAdapter.IBindingList<T>, Castle.Components.DictionaryAdapter.ICollectionAdapterObserver<T>, Castle.Components.DictionaryAdapter.ICollectionProjection, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.ICancelAddNew, System.ComponentModel.IChangeTracking, System.ComponentModel.IEditableObject, System.ComponentModel.IRaiseItemChangedEvents, System.ComponentModel.IRevertibleChangeTracking
{
public ListProjection(Castle.Components.DictionaryAdapter.ICollectionAdapter<T> adapter) { }
Expand Down Expand Up @@ -659,6 +662,7 @@ public class PropertyChangingEventArgsEx : System.ComponentModel.PropertyChangin
public object NewValue { get; }
public object OldValue { get; }
}
[System.Diagnostics.DebuggerDisplay("{Property.DeclaringType.FullName,nq}.{PropertyName,nq}")]
public class PropertyDescriptor : Castle.Components.DictionaryAdapter.IDictionaryBehavior, Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder, Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter, Castle.Components.DictionaryAdapter.IDictionaryPropertySetter
{
protected System.Collections.Generic.List<Castle.Components.DictionaryAdapter.IDictionaryBehavior> dictionaryBehaviors;
Expand Down Expand Up @@ -1119,7 +1123,9 @@ public class SysXmlSubtreeIterator : Castle.Components.DictionaryAdapter.Xml.Sys
}
public static class Try
{
[System.Diagnostics.DebuggerHidden]
public static bool Failure<T>(out T result) { }
[System.Diagnostics.DebuggerHidden]
public static bool Success<T>(out T result, T value) { }
}
public static class TypeExtensions
Expand Down Expand Up @@ -1978,6 +1984,7 @@ public class ConsoleLogger : Castle.Core.Logging.LevelFilteredLogger
public override Castle.Core.Logging.ILogger CreateChildLogger(string loggerName) { }
protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { }
}
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public class DiagnosticsLogger : Castle.Core.Logging.LevelFilteredLogger, System.IDisposable
{
public DiagnosticsLogger(string logName) { }
Expand All @@ -1989,6 +1996,7 @@ public class DiagnosticsLogger : Castle.Core.Logging.LevelFilteredLogger, System
protected override void Finalize() { }
protected override void Log(Castle.Core.Logging.LoggerLevel loggerLevel, string loggerName, string message, System.Exception exception) { }
}
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public class DiagnosticsLoggerFactory : Castle.Core.Logging.AbstractLoggerFactory
{
public DiagnosticsLoggerFactory() { }
Expand Down
Expand Up @@ -23,11 +23,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NUnit.Console" Version="3.11.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="NUnitLite" Version="3.12.0" />
<PackageReference Include="NUnitLite" Version="3.13.3" />
<ProjectReference Include="..\Castle.Core\Castle.Core.csproj" />
<ProjectReference Include="..\Castle.Core.Tests\Castle.Core.Tests.csproj" />
<ProjectReference Include="..\Castle.Services.Logging.log4netIntegration\Castle.Services.Logging.log4netIntegration.csproj" />
Expand Down
8 changes: 5 additions & 3 deletions src/Castle.Core.Tests/Castle.Core.Tests.csproj
Expand Up @@ -49,11 +49,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NUnit.Console" Version="3.11.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="NUnitLite" Version="3.12.0" />
<PackageReference Include="NUnitLite" Version="3.13.3" />
<PackageReference Include="log4net" Version="2.0.13" />
<PackageReference Include="NLog" Version="4.5.0" />
<PackageReference Include="Serilog" Version="2.0.0" />
Expand All @@ -66,6 +65,9 @@
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'OR'$(TargetFramework)'=='netcoreapp3.1'">
<PackageReference Include="System.Security.Permissions" Version="4.7.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<PackageReference Include="System.Security.Permissions" Version="6.0.0" />
</ItemGroup>
jonorossi marked this conversation as resolved.
Show resolved Hide resolved
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
Expand Down