-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor versioning strategy to use csproj
- Loading branch information
support
committed
Sep 3, 2023
1 parent
ebaecc6
commit a0e2ad9
Showing
19 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
src/Core/Grand.Infrastructure/Plugins/PluginInfoAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
namespace Grand.Infrastructure.Plugins | ||
using System.Reflection; | ||
|
||
namespace Grand.Infrastructure.Plugins | ||
{ | ||
[AttributeUsage(AttributeTargets.Assembly)] | ||
public class PluginInfoAttribute : Attribute | ||
{ | ||
public PluginInfoAttribute() | ||
{ | ||
Assembly assembly = Assembly.GetExecutingAssembly(); | ||
Version fullVersion = assembly.GetName().Version; | ||
SupportedVersion = $"{fullVersion?.Minor}.{fullVersion?.Major}"; | ||
|
||
} | ||
public string Group { get; set; } = string.Empty; | ||
public string FriendlyName { get; set; } = string.Empty; | ||
public string SystemName { get; set; } = string.Empty; | ||
public string Author { get; set; } = string.Empty; | ||
|
||
public string SupportedVersion { get; set; } | ||
|
||
public string Version { get; set; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Authentication.Facebook; | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Facebook authentication", | ||
Group = "Authentication methods", | ||
SystemName = FacebookAuthenticationDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Authentication.Google; | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Google authentication", | ||
Group = "Authentication methods", | ||
SystemName = GoogleAuthenticationDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Standard discount requirements", | ||
Group = "Discount requirements", | ||
SystemName = "DiscountRules.Standard", | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Money converter exchange rate provider (from EUR: ECB, from PLN: NBP)", | ||
Group = "Exchange rate providers", | ||
SystemName = "CurrencyExchange.MoneyConverter", | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Payments.BrainTree; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "BrainTree", | ||
Group = "Payment methods", | ||
SystemName = BrainTreeDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Payments.CashOnDelivery; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Cash On Delivery (COD)", | ||
Group = "Payment methods", | ||
SystemName = CashOnDeliveryPaymentDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Payments.PayPalStandard; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "PayPal Standard", | ||
Group = "Payment methods", | ||
SystemName = PayPalStandardPaymentDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Shipping.ByWeight; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Shipping by weight", | ||
Group = "Shipping rate", | ||
SystemName = ByWeightShippingDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Shipping.FixedRateShipping; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Fixed Rate Shipping", | ||
Group = "Shipping rate", | ||
SystemName = FixedRateShippingDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Shipping.ShippingPoint; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Shipping Point", | ||
Group = "Shipping rate", | ||
SystemName = ShippingPointRateDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Tax.CountryStateZip; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Tax By Country & State & Zip", | ||
Group = "Tax providers", | ||
SystemName = CountryStateZipTaxDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Tax.FixedRate; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Fixed tax rate provider", | ||
Group = "Tax providers", | ||
SystemName = FixedRateTaxDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Widgets.FacebookPixel; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Facebook Pixel", | ||
Group = "Widgets", | ||
SystemName = FacebookPixelDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Widgets.GoogleAnalytics; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Google Analytics or Universal Analytics", | ||
Group = "Widgets", | ||
SystemName = GoogleAnalyticDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.1" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
using Grand.Infrastructure; | ||
using Grand.Infrastructure.Plugins; | ||
using Grand.Infrastructure.Plugins; | ||
using Widgets.Slider; | ||
|
||
[assembly: PluginInfo( | ||
FriendlyName = "Bootstrap Slider", | ||
Group = "Widgets", | ||
SystemName = SliderWidgetDefaults.ProviderSystemName, | ||
SupportedVersion = GrandVersion.SupportedPluginVersion, | ||
Author = "grandnode team", | ||
Version = "2.1.2" | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters