From f32c163ff8b97543624d1cc36cc207e7c9ae79d5 Mon Sep 17 00:00:00 2001 From: Oleksandr HULYI Date: Fri, 6 Oct 2023 23:32:02 +1300 Subject: [PATCH] Fix for #224 #223 and hopefuly for #220 --- global.json | 6 +++++ nuget/AspectInjector.Package.csproj | 26 ++++++++++++------- nuget/build/AspectInjector.targets | 1 + samples/Directory.Build.props | 4 ++- samples/src/Cache/Aspects.Cache.csproj | 2 +- .../src/Freezable/Aspects.Freezable.csproj | 4 +-- samples/src/Lazy/Aspects.Lazy.csproj | 2 +- samples/src/Logging/Aspects.Logging.csproj | 4 +-- samples/src/Notify/Aspects.Notify.csproj | 4 +-- .../src/Universal/Aspects.Universal.csproj | 4 +-- .../AspectInjector.Broker.csproj | 4 +-- 11 files changed, 39 insertions(+), 22 deletions(-) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 00000000..1354767a --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "6.0.0", + "rollForward": "latestMinor" + } +} \ No newline at end of file diff --git a/nuget/AspectInjector.Package.csproj b/nuget/AspectInjector.Package.csproj index 7a1a72e7..715933a9 100644 --- a/nuget/AspectInjector.Package.csproj +++ b/nuget/AspectInjector.Package.csproj @@ -54,23 +54,25 @@ - + $(TargetDir)../publish_main/ $(TargetDir)../publish_analyzer/ - $(MSBuildThisFileDirectory)../src/AspectInjector.Broker/bin/$(Configuration)/$(TargetFramework) + $(MSBuildThisFileDirectory)../src/AspectInjector.Broker/bin/$(Configuration)/net2.0 + $(MSBuildThisFileDirectory)../src/AspectInjector.Broker/bin/$(Configuration)/netstandard2.0 - + --self-contained -c $(Configuration) -p:Version="$(Version)" -p:InformationalVersion="$(Version):$(CommitSHA)" ../src/AspectInjector/ - + + - + @@ -80,10 +82,16 @@ - lib/$(TargetFramework) + lib/netstandard2.0 - lib/$(TargetFramework) + lib/netstandard2.0 + + + lib/net2.0 + + + lib/net2.0 @@ -97,10 +105,10 @@ - + - + diff --git a/nuget/build/AspectInjector.targets b/nuget/build/AspectInjector.targets index e0708647..01edf36f 100755 --- a/nuget/build/AspectInjector.targets +++ b/nuget/build/AspectInjector.targets @@ -22,6 +22,7 @@ $(MSBuildThisFileDirectory)../../build/_bin/osx-x64/AspectInjector $(MSBuildThisFileDirectory)../../build/_bin/osx-arm64/AspectInjector + $(MSBuildThisFileDirectory)../../build/_bin/osx-x64/AspectInjector $(MSBuildThisFileDirectory)../../build/_bin/win-x64/AspectInjector.exe $(MSBuildThisFileDirectory)../../build/_bin/win-arm64/AspectInjector.exe $(MSBuildThisFileDirectory)../../build/_bin/linux-x64/AspectInjector diff --git a/samples/Directory.Build.props b/samples/Directory.Build.props index 3d21b6ce..2a1a51f8 100755 --- a/samples/Directory.Build.props +++ b/samples/Directory.Build.props @@ -5,7 +5,9 @@ Aspect Injector Contributors Aspect Injector Contributors MIT - package.png + package.png + True + $(MSBuildThisFileDirectory)../src/AspectInjector.Broker/_key.snk diff --git a/samples/src/Cache/Aspects.Cache.csproj b/samples/src/Cache/Aspects.Cache.csproj index 20b03f7f..fab691f3 100755 --- a/samples/src/Cache/Aspects.Cache.csproj +++ b/samples/src/Cache/Aspects.Cache.csproj @@ -1,6 +1,6 @@ - 2.0.3 + 2.0.4 netstandard2.0 8.0 aspect cache memorycache method methodcache diff --git a/samples/src/Freezable/Aspects.Freezable.csproj b/samples/src/Freezable/Aspects.Freezable.csproj index b931cb76..2a840b24 100644 --- a/samples/src/Freezable/Aspects.Freezable.csproj +++ b/samples/src/Freezable/Aspects.Freezable.csproj @@ -1,6 +1,6 @@ - + - 1.0.2 + 1.0.3 netstandard2.0 aspect freezable pattern attribute This package provides simple freezable pattern implementation. Put [Freezable] attribure on your properties or a whole class. Then cast your objects to IFreezable when needed. diff --git a/samples/src/Lazy/Aspects.Lazy.csproj b/samples/src/Lazy/Aspects.Lazy.csproj index a8367271..a5ce0191 100644 --- a/samples/src/Lazy/Aspects.Lazy.csproj +++ b/samples/src/Lazy/Aspects.Lazy.csproj @@ -1,7 +1,7 @@ - 1.0.0 + 1.0.1 netstandard2.0 aspect lazy attribute diff --git a/samples/src/Logging/Aspects.Logging.csproj b/samples/src/Logging/Aspects.Logging.csproj index 0b716261..d0161683 100644 --- a/samples/src/Logging/Aspects.Logging.csproj +++ b/samples/src/Logging/Aspects.Logging.csproj @@ -1,6 +1,6 @@ - + - 1.0.0 + 1.0.1 8.0 netstandard2.0 aspect lazy attribute diff --git a/samples/src/Notify/Aspects.Notify.csproj b/samples/src/Notify/Aspects.Notify.csproj index 73ff7941..8f3f9eb5 100644 --- a/samples/src/Notify/Aspects.Notify.csproj +++ b/samples/src/Notify/Aspects.Notify.csproj @@ -1,6 +1,6 @@ - + - 1.0.2 + 1.0.3 netstandard2.0 aspect notify notifypropertychanged INPC pattern attribute This package provides simple INotifyPropertyChanged aspect. Put [Notify] attribure on your properties or a whole class. You can use [NotifyAlso] attributes to notify other dependant properties. diff --git a/samples/src/Universal/Aspects.Universal.csproj b/samples/src/Universal/Aspects.Universal.csproj index c78c8f95..7caf2aaf 100644 --- a/samples/src/Universal/Aspects.Universal.csproj +++ b/samples/src/Universal/Aspects.Universal.csproj @@ -1,7 +1,7 @@ - + - 1.0.1 + 1.0.2 netstandard2.0 aspect proxy wrapper universal diff --git a/src/AspectInjector.Broker/AspectInjector.Broker.csproj b/src/AspectInjector.Broker/AspectInjector.Broker.csproj index bd91e77e..a7721d25 100644 --- a/src/AspectInjector.Broker/AspectInjector.Broker.csproj +++ b/src/AspectInjector.Broker/AspectInjector.Broker.csproj @@ -1,6 +1,6 @@ - + - netstandard2.0 + netstandard2.0;net2.0 True _key.snk Broker for Aspect Injector operations.