diff --git a/Euonia.sln b/Euonia.sln
index 9b59f38..9d017a5 100644
--- a/Euonia.sln
+++ b/Euonia.sln
@@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{CC
ProjectSection(SolutionItems) = preProject
Directory.Packages.props = Directory.Packages.props
NuGet.config = NuGet.config
+ project.props = project.props
README.md = README.md
EndProjectSection
EndProject
diff --git a/Samples/common.props b/Samples/common.props
index e927210..1a4bbcb 100644
--- a/Samples/common.props
+++ b/Samples/common.props
@@ -1,17 +1,12 @@
+
+
- net7.0;net8.0
+ net8.0
Nerosoft.Euonia.Sample
- 8.0.0
- damon
- Nerosoft Co., Ltd.
- Euonia
- © 2018-2023 Nerosoft. All Rights Reserved.
- enable
- disable
- latest
Euonia development framework and toolkit library for .NET application/service. Powered by Nerosoft.
Debug;Release;Product
+ false
diff --git a/Source/Euonia.Bus.Abstract/Properties/AssemblyInfo.cs b/Source/Euonia.Bus.Abstract/Properties/AssemblyInfo.cs
index 39b6d52..15d4fe3 100644
--- a/Source/Euonia.Bus.Abstract/Properties/AssemblyInfo.cs
+++ b/Source/Euonia.Bus.Abstract/Properties/AssemblyInfo.cs
@@ -3,4 +3,5 @@
[assembly: InternalsVisibleTo("Euonia.Bus")]
+// ReSharper disable once EmptyNamespace
namespace Nerosoft.Euonia.Bus.Properties;
\ No newline at end of file
diff --git a/Source/Euonia.Bus.InMemory/Messages/AsyncCollectionRequestMessage.cs b/Source/Euonia.Bus.InMemory/Messages/AsyncCollectionRequestMessage.cs
index 822b907..4ac9ccf 100644
--- a/Source/Euonia.Bus.InMemory/Messages/AsyncCollectionRequestMessage.cs
+++ b/Source/Euonia.Bus.InMemory/Messages/AsyncCollectionRequestMessage.cs
@@ -38,7 +38,7 @@ public class AsyncCollectionRequestMessage : IAsyncEnumerable
///
/// If we also want to control the cancellation of the token passed to each subscriber to the message,
/// we can do so by passing a token we control to the returned message before starting the enumeration
- /// ().
+ /// ().
/// The previous snippet with this additional change looks as follows:
///
/// await foreach (var document in Messenger.Default.Send<OpenDocumentsRequestMessage>().WithCancellation(cts.Token))
@@ -52,7 +52,7 @@ public class AsyncCollectionRequestMessage : IAsyncEnumerable
/// itself will automatically be linked and canceled with the one passed to the enumerator.
///
public CancellationToken CancellationToken => _cancellationTokenSource.Token;
-
+
///
/// Replies to the current request message.
///
diff --git a/Source/Euonia.Bus.RabbitMq/RabbitMqQueueConsumer.cs b/Source/Euonia.Bus.RabbitMq/RabbitMqQueueConsumer.cs
index 3a11a0f..bb5ec1e 100644
--- a/Source/Euonia.Bus.RabbitMq/RabbitMqQueueConsumer.cs
+++ b/Source/Euonia.Bus.RabbitMq/RabbitMqQueueConsumer.cs
@@ -1,12 +1,11 @@
-using System.Threading.Channels;
-using Microsoft.Extensions.Options;
+using Microsoft.Extensions.Options;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace Nerosoft.Euonia.Bus.RabbitMq;
///
-///
+/// The RabbitMQ implementation of .
///
public class RabbitMqQueueConsumer : RabbitMqQueueRecipient, IQueueConsumer
{
diff --git a/Source/Euonia.Bus/Messages/MessageBusException.cs b/Source/Euonia.Bus/Messages/MessageBusException.cs
index 523de40..7ed7576 100644
--- a/Source/Euonia.Bus/Messages/MessageBusException.cs
+++ b/Source/Euonia.Bus/Messages/MessageBusException.cs
@@ -1,4 +1,6 @@
-using System.Runtime.Serialization;
+#if !NET8_0_OR_GREATER
+using System.Runtime.Serialization;
+#endif
namespace Nerosoft.Euonia.Bus;
@@ -10,7 +12,7 @@ namespace Nerosoft.Euonia.Bus;
[Serializable]
public class MessageBusException : Exception
{
- private object _message;
+ private readonly object _message;
///
/// Initializes a new instance of the class.
@@ -50,6 +52,7 @@ public MessageBusException(object messageContext, string message, Exception inne
/// The type of the message.
public virtual object MessageContext => _message;
+#if !NET8_0_OR_GREATER
///
public MessageBusException(SerializationInfo info, StreamingContext context)
: base(info, context)
@@ -63,4 +66,5 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
base.GetObjectData(info, context);
info.AddValue(nameof(MessageContext), _message, MessageContext.GetType());
}
+#endif
}
\ No newline at end of file
diff --git a/Source/Euonia.Core/Euonia.Core.csproj b/Source/Euonia.Core/Euonia.Core.csproj
index e5e158d..d8b40da 100644
--- a/Source/Euonia.Core/Euonia.Core.csproj
+++ b/Source/Euonia.Core/Euonia.Core.csproj
@@ -33,4 +33,7 @@
+
+
+
\ No newline at end of file
diff --git a/Source/Euonia.Core/Exceptions/BadGatewayException.cs b/Source/Euonia.Core/Exceptions/BadGatewayException.cs
index 2fd437e..609ea1e 100644
--- a/Source/Euonia.Core/Exceptions/BadGatewayException.cs
+++ b/Source/Euonia.Core/Exceptions/BadGatewayException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -18,11 +17,13 @@ public BadGatewayException()
{
}
- ///
- protected BadGatewayException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public BadGatewayException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public BadGatewayException(string message)
diff --git a/Source/Euonia.Core/Exceptions/BadRequestException.cs b/Source/Euonia.Core/Exceptions/BadRequestException.cs
index eec328e..d809cb5 100644
--- a/Source/Euonia.Core/Exceptions/BadRequestException.cs
+++ b/Source/Euonia.Core/Exceptions/BadRequestException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,11 +16,13 @@ public BadRequestException()
{
}
- ///
- protected BadRequestException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public BadRequestException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public BadRequestException(string message)
diff --git a/Source/Euonia.Core/Exceptions/BusinessException.cs b/Source/Euonia.Core/Exceptions/BusinessException.cs
index 4a206f1..3bd7b0e 100644
--- a/Source/Euonia.Core/Exceptions/BusinessException.cs
+++ b/Source/Euonia.Core/Exceptions/BusinessException.cs
@@ -1,6 +1,4 @@
-using System.Runtime.Serialization;
-
-namespace Nerosoft.Euonia.Core;
+namespace Nerosoft.Euonia.Core;
///
/// Represents errors that occur during business logic execution.
@@ -8,61 +6,63 @@ namespace Nerosoft.Euonia.Core;
[Serializable]
public class BusinessException : Exception
{
- private readonly string _code;
+ private readonly string _code;
- ///
- /// Gets the business error code.
- ///
- public virtual string Code => _code;
+ ///
+ /// Gets the business error code.
+ ///
+ public virtual string Code => _code;
- ///
- public BusinessException()
- {
- }
+ ///
+ public BusinessException()
+ {
+ }
- ///
- /// Initialize a new instance of the with error code.
- ///
- /// The error code.
- public BusinessException(string code)
- {
- _code = code;
- }
+ ///
+ /// Initialize a new instance of the with error code.
+ ///
+ /// The error code.
+ public BusinessException(string code)
+ {
+ _code = code;
+ }
- ///
- /// Initialize a new instance of the with error code and message.
- ///
- /// The error code.
- /// The error message.
- public BusinessException(string code, string message)
- : base(message)
- {
- _code = code;
- }
+ ///
+ /// Initialize a new instance of the with error code and message.
+ ///
+ /// The error code.
+ /// The error message.
+ public BusinessException(string code, string message)
+ : base(message)
+ {
+ _code = code;
+ }
- ///
- /// Initialize a new instance of the with error code, message and inner exception.
- ///
- /// The error code.
- /// The error message that explains the reason for the exception.
- /// The exception that is the cause of the current exception.
- public BusinessException(string code, string message, Exception innerException)
- : base(message, innerException)
- {
- _code = code;
- }
+ ///
+ /// Initialize a new instance of the with error code, message and inner exception.
+ ///
+ /// The error code.
+ /// The error message that explains the reason for the exception.
+ /// The exception that is the cause of the current exception.
+ public BusinessException(string code, string message, Exception innerException)
+ : base(message, innerException)
+ {
+ _code = code;
+ }
- ///
- protected BusinessException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- _code = info.GetString(nameof(Code));
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public BusinessException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ _code = info.GetString(nameof(Code));
+ }
- ///
- public override void GetObjectData(SerializationInfo info, StreamingContext context)
- {
- base.GetObjectData(info, context);
- info.AddValue(nameof(Code), _code, typeof(string));
- }
-}
+ ///
+ public override void GetObjectData(SerializationInfo info, StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue(nameof(Code), _code, typeof(string));
+ }
+#endif
+}
\ No newline at end of file
diff --git a/Source/Euonia.Core/Exceptions/ConfigurationException.cs b/Source/Euonia.Core/Exceptions/ConfigurationException.cs
index 6dc131b..8e0fa4c 100644
--- a/Source/Euonia.Core/Exceptions/ConfigurationException.cs
+++ b/Source/Euonia.Core/Exceptions/ConfigurationException.cs
@@ -1,6 +1,4 @@
-using System.Runtime.Serialization;
-
-namespace Nerosoft.Euonia.Core;
+namespace Nerosoft.Euonia.Core;
///
/// Represents errors that occur during application configuration.
@@ -34,9 +32,11 @@ public ConfigurationException(string message, Exception innerException)
{
}
- ///
- protected ConfigurationException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public ConfigurationException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
}
diff --git a/Source/Euonia.Core/Exceptions/ConflictException.cs b/Source/Euonia.Core/Exceptions/ConflictException.cs
index d357c88..b688818 100644
--- a/Source/Euonia.Core/Exceptions/ConflictException.cs
+++ b/Source/Euonia.Core/Exceptions/ConflictException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,11 +16,13 @@ public ConflictException()
{
}
- ///
- protected ConflictException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public ConflictException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public ConflictException(string message)
diff --git a/Source/Euonia.Core/Exceptions/ForbiddenException.cs b/Source/Euonia.Core/Exceptions/ForbiddenException.cs
index d72f6d0..88f9fd2 100644
--- a/Source/Euonia.Core/Exceptions/ForbiddenException.cs
+++ b/Source/Euonia.Core/Exceptions/ForbiddenException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,11 +16,13 @@ public ForbiddenException()
{
}
- ///
- protected ForbiddenException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public ForbiddenException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public ForbiddenException(string message)
diff --git a/Source/Euonia.Core/Exceptions/GatewayTimeoutException.cs b/Source/Euonia.Core/Exceptions/GatewayTimeoutException.cs
index 9720126..83ccc2b 100644
--- a/Source/Euonia.Core/Exceptions/GatewayTimeoutException.cs
+++ b/Source/Euonia.Core/Exceptions/GatewayTimeoutException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,14 +16,16 @@ public GatewayTimeoutException()
{
}
- ///
- protected GatewayTimeoutException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public GatewayTimeoutException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
- ///
- public GatewayTimeoutException(string message)
+ ///
+ public GatewayTimeoutException(string message)
: base(message)
{
}
diff --git a/Source/Euonia.Core/Exceptions/HttpStatusException.cs b/Source/Euonia.Core/Exceptions/HttpStatusException.cs
index 00f2b4a..8206dc3 100644
--- a/Source/Euonia.Core/Exceptions/HttpStatusException.cs
+++ b/Source/Euonia.Core/Exceptions/HttpStatusException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -21,19 +20,21 @@ public HttpStatusException(HttpStatusCode statusCode)
_statusCode = statusCode;
}
- ///
- protected HttpStatusException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- _statusCode = (HttpStatusCode)info.GetInt32(nameof(StatusCode));
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public HttpStatusException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ _statusCode = (HttpStatusCode)info.GetInt32(nameof(StatusCode));
+ }
+#endif
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- ///
- public HttpStatusException(HttpStatusCode statusCode, string message)
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ ///
+ public HttpStatusException(HttpStatusCode statusCode, string message)
: base(message)
{
_statusCode = statusCode;
@@ -51,15 +52,17 @@ public HttpStatusException(HttpStatusCode statusCode, string message, Exception
_statusCode = statusCode;
}
- ///
- public override void GetObjectData(SerializationInfo info, StreamingContext context)
- {
- base.GetObjectData(info, context);
- info.AddValue(nameof(StatusCode), (int)_statusCode, typeof(int));
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public override void GetObjectData(SerializationInfo info, StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue(nameof(StatusCode), (int)_statusCode, typeof(int));
+ }
+#endif
- ///
- /// Gets the HTTP status code.
- ///
- public virtual HttpStatusCode StatusCode => _statusCode;
+ ///
+ /// Gets the HTTP status code.
+ ///
+ public virtual HttpStatusCode StatusCode => _statusCode;
}
\ No newline at end of file
diff --git a/Source/Euonia.Core/Exceptions/InternalServerErrorException.cs b/Source/Euonia.Core/Exceptions/InternalServerErrorException.cs
index fb49d1b..60488c4 100644
--- a/Source/Euonia.Core/Exceptions/InternalServerErrorException.cs
+++ b/Source/Euonia.Core/Exceptions/InternalServerErrorException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,14 +16,16 @@ public InternalServerErrorException()
{
}
- ///
- protected InternalServerErrorException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public InternalServerErrorException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
- ///
- public InternalServerErrorException(string message)
+ ///
+ public InternalServerErrorException(string message)
: base(message)
{
}
diff --git a/Source/Euonia.Core/Exceptions/InvalidValueException.cs b/Source/Euonia.Core/Exceptions/InvalidValueException.cs
index eb77481..fe260ae 100644
--- a/Source/Euonia.Core/Exceptions/InvalidValueException.cs
+++ b/Source/Euonia.Core/Exceptions/InvalidValueException.cs
@@ -1,6 +1,4 @@
-using System.Runtime.Serialization;
-
-namespace Nerosoft.Euonia.Core;
+namespace Nerosoft.Euonia.Core;
///
/// Represents the errors occurring when a value is invalid.
@@ -34,13 +32,15 @@ public InvalidValueException(string message, Exception innerException)
{
}
- ///
- /// Initializes a new instance of the class with serialized data.
- ///
- /// The exception data serialize information.
- ///
- protected InvalidValueException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ /// Initializes a new instance of the class with serialized data.
+ ///
+ /// The exception data serialize information.
+ ///
+ public InvalidValueException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
}
diff --git a/Source/Euonia.Core/Exceptions/MethodNotAllowedException.cs b/Source/Euonia.Core/Exceptions/MethodNotAllowedException.cs
index a9818ed..56f1fc7 100644
--- a/Source/Euonia.Core/Exceptions/MethodNotAllowedException.cs
+++ b/Source/Euonia.Core/Exceptions/MethodNotAllowedException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,14 +16,16 @@ public MethodNotAllowedException()
{
}
- ///
- protected MethodNotAllowedException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public MethodNotAllowedException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
- ///
- public MethodNotAllowedException(string message)
+ ///
+ public MethodNotAllowedException(string message)
: base(message)
{
}
diff --git a/Source/Euonia.Core/Exceptions/NotFoundException.cs b/Source/Euonia.Core/Exceptions/NotFoundException.cs
index 8ee335f..b89ba02 100644
--- a/Source/Euonia.Core/Exceptions/NotFoundException.cs
+++ b/Source/Euonia.Core/Exceptions/NotFoundException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -29,9 +28,11 @@ public NotFoundException(string message, Exception innerException)
{
}
- ///
- protected NotFoundException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public NotFoundException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
}
\ No newline at end of file
diff --git a/Source/Euonia.Core/Exceptions/RequestTimeoutException.cs b/Source/Euonia.Core/Exceptions/RequestTimeoutException.cs
index aa5356f..7b529eb 100644
--- a/Source/Euonia.Core/Exceptions/RequestTimeoutException.cs
+++ b/Source/Euonia.Core/Exceptions/RequestTimeoutException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,11 +16,13 @@ public RequestTimeoutException()
{
}
- ///
- protected RequestTimeoutException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public RequestTimeoutException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public RequestTimeoutException(string message)
diff --git a/Source/Euonia.Core/Exceptions/ServiceUnavailableException.cs b/Source/Euonia.Core/Exceptions/ServiceUnavailableException.cs
index 8dc9260..26d77dd 100644
--- a/Source/Euonia.Core/Exceptions/ServiceUnavailableException.cs
+++ b/Source/Euonia.Core/Exceptions/ServiceUnavailableException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,14 +16,16 @@ public ServiceUnavailableException()
{
}
- ///
- protected ServiceUnavailableException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public ServiceUnavailableException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
- ///
- public ServiceUnavailableException(string message)
+ ///
+ public ServiceUnavailableException(string message)
: base(message)
{
}
diff --git a/Source/Euonia.Core/Exceptions/TooManyRequestsException.cs b/Source/Euonia.Core/Exceptions/TooManyRequestsException.cs
index cedba02..6e1ef61 100644
--- a/Source/Euonia.Core/Exceptions/TooManyRequestsException.cs
+++ b/Source/Euonia.Core/Exceptions/TooManyRequestsException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,11 +16,13 @@ public TooManyRequestsException()
{
}
- ///
- protected TooManyRequestsException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public TooManyRequestsException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public TooManyRequestsException(string message)
diff --git a/Source/Euonia.Core/Exceptions/UpgradeRequiredException.cs b/Source/Euonia.Core/Exceptions/UpgradeRequiredException.cs
index b07c438..fda8a82 100644
--- a/Source/Euonia.Core/Exceptions/UpgradeRequiredException.cs
+++ b/Source/Euonia.Core/Exceptions/UpgradeRequiredException.cs
@@ -1,5 +1,4 @@
using System.Net;
-using System.Runtime.Serialization;
namespace Nerosoft.Euonia.Core;
@@ -17,11 +16,13 @@ public UpgradeRequiredException()
{
}
- ///
- protected UpgradeRequiredException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public UpgradeRequiredException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+#endif
///
public UpgradeRequiredException(string message)
diff --git a/Source/Euonia.Core/Exceptions/ValidationException.cs b/Source/Euonia.Core/Exceptions/ValidationException.cs
index de95d79..b92eee6 100644
--- a/Source/Euonia.Core/Exceptions/ValidationException.cs
+++ b/Source/Euonia.Core/Exceptions/ValidationException.cs
@@ -1,6 +1,4 @@
-using System.Runtime.Serialization;
-
-namespace Nerosoft.Euonia.Core;
+namespace Nerosoft.Euonia.Core;
///
/// Represents the exception that is thrown when given data is not valid.
@@ -34,19 +32,21 @@ public ValidationException(string message, IEnumerable errors)
_errors = errors;
}
- ///
- protected ValidationException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- _errors = info.GetValue(nameof(Errors), typeof(IEnumerable)) as IEnumerable;
- }
+#if !NET8_0_OR_GREATER
+ ///
+ public ValidationException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ _errors = info.GetValue(nameof(Errors), typeof(IEnumerable)) as IEnumerable;
+ }
- ///
- public override void GetObjectData(SerializationInfo info, StreamingContext context)
- {
- base.GetObjectData(info, context);
- info.AddValue(nameof(Errors), _errors, typeof(IEnumerable));
- }
+ ///
+ public override void GetObjectData(SerializationInfo info, StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue(nameof(Errors), _errors, typeof(IEnumerable));
+ }
+#endif
///
///
diff --git a/Source/common.props b/Source/common.props
index ccd2d53..5e96878 100644
--- a/Source/common.props
+++ b/Source/common.props
@@ -1,15 +1,9 @@
+
+
net6.0;net7.0;net8.0
Nerosoft.$(MSBuildProjectName.Replace(" ", "_"))
- 8.0.0
- damon
- Nerosoft Co., Ltd.
- Euonia
- © 2018-2023 Nerosoft. All Rights Reserved.
- enable
- disable
- latest
Euonia development framework and toolkit library for .NET application/service. Powered by Nerosoft.
https://github.com/NerosoftDev/Euonia/
.net, asp.net, core, framework, ddd, distributed, architecture, EventBus, ServiceBug, EF, EFCore, Caching, Redis, Mapping, Mapper, ObjectMap, DistributedLock, OOP, RPC, Grpc, proto, Validate, Validation, FluentValidation
@@ -21,21 +15,21 @@
full
true
true
- CS2002
+ CS2002;IDE0290
pdbonly
true
true
- 1591;CS2002
+ 1591;CS2002;IDE0290
pdbonly
true
true
- 1591;CS2002
+ 1591;CS2002;IDE0290
diff --git a/Tests/common.props b/Tests/common.props
index e6f325b..1524d76 100644
--- a/Tests/common.props
+++ b/Tests/common.props
@@ -1,15 +1,9 @@
+
+
net6.0;net7.0;net8.0
Nerosoft.$(MSBuildProjectName.Replace(" ", "_"))
- 8.0.0
- damon
- Nerosoft Co., Ltd.
- Euonia
- © 2018-2023 Nerosoft. All Rights Reserved.
- enable
- disable
- latest
false
diff --git a/project.props b/project.props
new file mode 100644
index 0000000..97f961a
--- /dev/null
+++ b/project.props
@@ -0,0 +1,12 @@
+
+
+ 8.0.1
+ damon
+ Nerosoft Ltd.
+ Euonia
+ © 2018-2023 Nerosoft. All Rights Reserved.
+ enable
+ disable
+ latest
+
+
\ No newline at end of file