Skip to content

Commit a2e679a

Browse files
authored
VCST-631: Update vc-storefront to NET8 (#678)
feat: Update vc-storefront to NET8
1 parent 357d0eb commit a2e679a

File tree

20 files changed

+139
-263
lines changed

20 files changed

+139
-263
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
with:
141141
tag: ${{ steps.image.outputs.taggedVersion }}
142142
imageName: ${{ env.IMAGE_NAME }}
143-
dockerFiles: 'https://raw.githubusercontent.com/VirtoCommerce/vc-docker/feat/net6/linux/storefront/Dockerfile'
143+
dockerFiles: 'https://raw.githubusercontent.com/VirtoCommerce/vc-docker/feat/net8/linux/storefront/Dockerfile'
144144

145145
- name: Publish Github Release
146146
if: ${{ github.ref == 'refs/heads/master' }}

.github/workflows/pr-ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v3.200.3
1+
# v3.800.4
22
name: PR build
33

44
on:
@@ -15,15 +15,15 @@ on:
1515

1616
jobs:
1717
test:
18-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.2
18+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.4
1919
secrets:
2020
sonarToken: ${{ secrets.SONAR_TOKEN }}
2121

2222
build:
23-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.2
23+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.4
2424
with:
2525
uploadDocker: 'true'
2626
imageName: 'storefront'
27-
dockerFiles: 'https://raw.githubusercontent.com/VirtoCommerce/vc-docker/feat/net6/linux/storefront/Dockerfile'
27+
dockerFiles: 'https://raw.githubusercontent.com/VirtoCommerce/vc-docker/feat/net8/linux/storefront/Dockerfile'
2828
secrets:
2929
envPAT: ${{ secrets.REPO_TOKEN }}

.github/workflows/pr-deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v3.200.7
1+
# v3.800.4
22
name: PR deploy
33

44
on:
@@ -47,7 +47,7 @@ jobs:
4747
publish:
4848
needs:
4949
get-deployment-data
50-
uses: VirtoCommerce/.github/.github/workflows/publish-docker.yml@v3.800.2
50+
uses: VirtoCommerce/.github/.github/workflows/publish-docker.yml@v3.800.4
5151
with:
5252
fullKey: ${{ needs.get-deployment-data.outputs.dockerFullKey }}
5353
shortKey: '${{ needs.get-deployment-data.outputs.dockerShortKey }}-'
@@ -60,7 +60,7 @@ jobs:
6060
deploy:
6161
needs:
6262
[publish, get-deployment-data]
63-
uses: VirtoCommerce/.github/.github/workflows/deploy.yml@v3.800.2
63+
uses: VirtoCommerce/.github/.github/workflows/deploy.yml@v3.800.4
6464
with:
6565
argoServer: 'argo.govirto.com'
6666
artifactUrl: ${{ needs.publish.outputs.imagePath }}

.github/workflows/release-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v3.200.5
1+
# v3.800.5
22
name: Release - branch
33

44
on:
@@ -25,7 +25,7 @@ jobs:
2525
uploadDocker: 'true'
2626
eventName: ${{ github.event_name }}
2727
imageName: 'storefront'
28-
dockerFiles: 'https://raw.githubusercontent.com/VirtoCommerce/vc-docker/feat/net6/linux/storefront/Dockerfile'
28+
dockerFiles: 'https://raw.githubusercontent.com/VirtoCommerce/vc-docker/feat/net8/linux/storefront/Dockerfile'
2929
forceVersionSuffix: 'false'
3030
secrets:
3131
envPAT: ${{ secrets.REPO_TOKEN }}

Directory.Build.props

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<?xml version="1.0" encoding="utf-8"?><Project>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
23
<!-- These properties will be shared for all projects -->
3-
44
<PropertyGroup>
55
<Product>VirtoCommerce</Product>
6-
<Copyright>Copyright © VirtoCommerce 2011-2022</Copyright>
6+
<Copyright>Copyright © 2011-2024 Virto Commerce. All rights reserved</Copyright>
77
<Authors>VirtoCommerce</Authors>
88
</PropertyGroup>
9-
<PropertyGroup>
10-
<VersionPrefix>6.43.0</VersionPrefix>
11-
<VersionSuffix></VersionSuffix>
9+
<PropertyGroup>
10+
<VersionPrefix>8.0.0</VersionPrefix>
11+
<VersionSuffix>
12+
</VersionSuffix>
1213
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
1314
</PropertyGroup>
14-
15-
</Project>
15+
</Project>

README.md

+29-131
Original file line numberDiff line numberDiff line change
@@ -1,155 +1,46 @@
11
# Virto Commerce Storefront Kit
22

3-
[![Share on Facebook](https://img.shields.io/badge/facebook--blue.svg?style=social&label=Share&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNjYuODkzcHgiIGhlaWdodD0iMjY2Ljg5NXB4IiB2aWV3Qm94PSIwIDAgMjY2Ljg5MyAyNjYuODk1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNjYuODkzIDI2Ni44OTUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGlkPSJCbHVlXzFfIiBmaWxsPSIjM0M1QTk5IiBkPSJNMjQ4LjA4MiwyNjIuMzA3YzcuODU0LDAsMTQuMjIzLTYuMzY5LDE0LjIyMy0xNC4yMjVWMTguODEyYzAtNy44NTctNi4zNjgtMTQuMjI0LTE0LjIyMy0xNC4yMjRIMTguODEyYy03Ljg1NywwLTE0LjIyNCw2LjM2Ny0xNC4yMjQsMTQuMjI0djIyOS4yN2MwLDcuODU1LDYuMzY2LDE0LjIyNSwxNC4yMjQsMTQuMjI1SDI0OC4wODJ6Ii8%2BPHBhdGggaWQ9ImYiIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xODIuNDA5LDI2Mi4zMDd2LTk5LjgwM2gzMy40OTlsNS4wMTYtMzguODk1aC0zOC41MTVWOTguNzc3YzAtMTEuMjYxLDMuMTI3LTE4LjkzNSwxOS4yNzUtMTguOTM1bDIwLjU5Ni0wLjAwOVY0NS4wNDVjLTMuNTYyLTAuNDc0LTE1Ljc4OC0xLjUzMy0zMC4wMTItMS41MzNjLTI5LjY5NSwwLTUwLjAyNSwxOC4xMjYtNTAuMDI1LDUxLjQxM3YyOC42ODRoLTMzLjU4NXYzOC44OTVoMzMuNTg1djk5LjgwM0gxODIuNDA5eiIvPjwvc3ZnPg%3D%3D)](https://www.facebook.com/sharer.php?u=https://virtocommerce.com)&nbsp;[![Tweet](https://img.shields.io/twitter/url/https/virtocommerce.com.svg?style=social)](https://twitter.com/intent/tweet?text=%23VirtoCommerce%20puts%20the%20best%20of%20MS%20Azure%20Cloud%2C%20open%20source%20.Net%20code%20and%20agile%20development%20in%20a%20single%20enterprise%20%23ecommerce%20platform.) [![Latest release](https://img.shields.io/github/release/VirtoCommerce/vc-storefront.svg)](https://github.com/VirtoCommerce/vc-storefront/releases/latest) [![Total downloads](https://img.shields.io/github/downloads/VirtoCommerce/vc-storefront/total.svg?colorB=007ec6)](https://github.com/VirtoCommerce/vc-storefront/releases) [![License](https://img.shields.io/badge/license-VC%20OSL-blue.svg)](https://virtocommerce.com/open-source-license)
4-
53
[![CI status](https://github.com/VirtoCommerce/vc-storefront/workflows/Storefront%20CI/badge.svg?branch=dev)](https://github.com/VirtoCommerce/vc-storefront/actions?query=workflow%3A"Storefront+CI") [![Quality gate](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-storefront&metric=alert_status&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-storefront) [![Reliability rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-storefront&metric=reliability_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-storefront) [![Security rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-storefront&metric=security_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-storefront) [![Sqale rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-storefront&metric=sqale_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-storefront) [![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-storefront&branch=dev&metric=ncloc)](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-storefront&branch=dev&metric=ncloc)&emsp;
64

7-
[![Documentation](https://img.shields.io/badge/docs-read-brightgreen.svg)](https://virtocommerce.com/docs/latest/)&nbsp;[![Discourse topics](https://img.shields.io/discourse/topics?label=community&logo=community&server=http%3A%2F%2Fwww.virtocommerce.org)](https://www.virtocommerce.org) [![Contributors](https://img.shields.io/github/contributors/VirtoCommerce/vc-storefront.svg)](https://github.com/VirtoCommerce/vc-storefront/graphs/contributors)
8-
95
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FVirtoCommerce%2Fvc-storefront%2Fmaster%2Fazuredeploy.json)
106

11-
Official online shopping website based on [Virto Commerce Platform written on ASP.NET Core](https://virtocommerce.com/microsoft-ecommerce-platform). The website is a client application for VC Platform and uses only public APIs while communicating.
7+
The Virto Commerce Storefront Kit is the official online shopping website based on the Virto Commerce Platform, written on ASP.NET 8. The website serves as a client application for the VC Platform and communicates solely through public APIs.
128

13-
It is possible to run multiple different stores (web sites) on top of Virto Commerce. Each store (website) might have its own theme with a specific layout still being based on the same catalog and customer data.
9+
The Storefront Kit enables the creation of multiple distinct stores (websites) on top of the Virto Commerce Platform. Each store may have its own theme with specific layouts, yet still be based on the same catalog and customer data. This allows for versatile store configurations, such as:
1410

15-
It is possible, for example, to create sites with a different design for different product categories still having all products in the same backend.
11+
* Different designs for various product categories.
12+
* Regional-specific sites offering tailored product sets.
13+
* Integration with multiple touchpoints for a true omnichannel experience.
1614

17-
Another option is to create different sites for different regions so that a specific product set will be available to a specific region, is still based on one product data.
18-
19-
It is also possible to connect Virto Commerce to multiple touchpoints so that customers will get a real omnichannel experience.
2015

2116
## Key features
17+
- Launch and host e-commerce themes on top of the Virto Commerce Platform.
18+
- XAPI Gateway.
19+
- Caching mechanism.
20+
- Multi-store support.
21+
- Multi-theme support.
22+
- Server-side rendering.
23+
And more.
2224

23-
- Multi-Store support
24-
- Multi-Language support
25-
- Multi-Currency support
26-
- Multi-Themes support
27-
- Faceted search support
28-
- SEO friendly routing
29-
- Server-side rendering
30-
- Client-side rendering
31-
- Optimization for Desktop
32-
- Optimization for Tables
33-
- Optimization for Mobile
34-
35-
## Business Requirements
36-
37-
- Home page
38-
- Catalog browsing
39-
- Product page
40-
- Cart
41-
- Bulk add to cart
42-
- Multiple Whish lists and Mark favorites
43-
- Product compare
44-
- Anonymous Checkout process
45-
- Checkout process
46-
- Address verification
47-
- Integration with Tax providers
48-
- Integration Shippment and Payment methods
49-
- Place orders
50-
- Order Approve process
51-
- Offers
52-
- My Account
53-
- My Orders History
54-
- Reorder
55-
- New Account verification
56-
- Self-registration
57-
- Forgot password
58-
- User permissions to manage their own account page
59-
- Catalog personalization
60-
- Price personalization (List and Sales prices)
61-
- Promotions
62-
- Coupons
63-
- Recommended products
64-
- Banner and dynamic content
65-
- User Groups - to build personalization
66-
- Configurable Branding and customization
67-
- Configurable navigation
68-
- CMS to build Static, Landing, Blog pages
69-
70-
## References
71-
72-
- [Public Demo](https://st-storefront.demo.govirto.com/)
73-
- Virto Commerce Documentation: <https://www.virtocommerce.com/docs/latest/>
74-
- Home: <https://virtocommerce.com>
75-
- Community: <https://www.virtocommerce.org>
76-
- [Download Latest Release](https://github.com/VirtoCommerce/vc-storefront/releases/latest)
77-
78-
## Sample themes
79-
80-
### [B2B theme](https://github.com/VirtoCommerce/vc-theme-b2b-vue)
81-
82-
View [B2B theme on GitHub](https://github.com/VirtoCommerce/vc-theme-b2b-vue).
83-
84-
![image](https://user-images.githubusercontent.com/7639413/170992875-fbfa2093-ebbf-4404-8140-c952d9f0f0f4.png)
25+
## Architecture
26+
For detailed information about the Virto Storefront Architecture, please refer to our [developer guide](https://docs.virtocommerce.org/storefront/developer-guide/)
8527

8628
## Technologies and frameworks used
29+
- ASP.NET 8
30+
- ASP.NET Identity Core
8731

88-
- ASP.NET MVC Core 6.0 on .NET 60
89-
- ASP.NET Identity Core 3.1.0
90-
- GraphQL
91-
92-
## Prerequisites
93-
- Install `vc-platform` 3.x the latest version. [Deploy on Windows](https://github.com/VirtoCommerce/vc-platform/blob/master/docs/getting-started/deploy-from-precompiled-binaries-windows.md) or [Deploy on Linux](https://github.com/VirtoCommerce/vc-platform/blob/master/docs/getting-started/deploy-from-precompiled-binaries-linux.md)
94-
- Install `vc-module-experience-api` module. [Getting started](https://github.com/VirtoCommerce/vc-module-experience-api/blob/dev/docs/getting-started.md)
95-
- Install [vc-module-profile-experience-api](https://github.com/VirtoCommerce/vc-module-profile-experience-api) module.
96-
- Install [Node](https://nodejs.org/en/download/) v.16.X
97-
- Install [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable) package manager
98-
```
99-
npm install --global yarn
100-
```
101-
102-
## Continuous Integration Supported by Browserstack
32+
## Setup
33+
For detailed setup information, please refer to [Quick Start](https://docs.virtocommerce.org/storefront/developer-guide/getting-started/quickstart-on-windows/) to deploy and run.
10334

104-
Cross-browser compatibility of the storefront is generously provided by [Browserstack](https://www.browserstack.com/).
10535

106-
[![Browserstack](https://images.techhive.com/images/article/2014/12/browserstack-logo-100538202-medium.idge.png)](http://browserstack.com/)
36+
## Themes
10737

108-
## Deploy Storefront
38+
### B2B Theme
10939

110-
> If Platform and Storefront are deployed in the same on-premises environment, Storefront should be deployed on different port then Platform. You can do it by `dotnet run CLI`
111-
112-
### Install the `vc-storefront`
113-
114-
- Download [latest release](https://github.com/VirtoCommerce/vc-storefront/releases/latest) and unpack in to a local folder
115-
- Or Clone [https://github.com/VirtoCommerce/vc-storefront](https://github.com/VirtoCommerce/vc-storefront) in to a local folder
116-
117-
- Open the **appsettings.json** file in a text editor.
118-
- In the **Endpoint** section change **Url**, **UserName**, **Password** with correct path and credentials for Virto Commerce Platform:
119-
120-
```json
121-
...
122-
"Endpoint": {
123-
"Url": "https://localhost:5001",
124-
"UserName": "admin",
125-
"Password": "store",
126-
```
127-
128-
### Setup `B2B Mercury theme`
129-
130-
```bash
131-
# Clone repo into the folder where storefront is installed
132-
git clone https://github.com/VirtoCommerce/vc-theme-b2b-vue.git "C:\vc-storefront\VirtoCommerce.Storefront\wwwroot\cms-content\themes\{store-name}\default"
133-
# Change the current directory
134-
cd C:\vc-storefront\VirtoCommerce.Storefront\wwwroot\cms-content\themes\{store-name}\default
135-
# install dependencies
136-
yarn
137-
# Start theme in development mode with HMR support
138-
yarn dev
139-
# or build theme to get installable artifact
140-
yarn compress
141-
```
40+
View [B2B theme on GitHub](https://github.com/VirtoCommerce/vc-theme-b2b-vue).
14241

143-
### Run `vc-storefront` application
42+
![image](https://user-images.githubusercontent.com/7639413/170992875-fbfa2093-ebbf-4404-8140-c952d9f0f0f4.png)
14443

145-
```bash
146-
# change the current directory
147-
cd C:\vc-storefront\VirtoCommerce.Storefront
148-
# build and run storefront application
149-
dotnet run
150-
# In future, if you don't need to rebuild you can use that
151-
dotnet run --no-build
152-
```
15344

15445
### FAQ
15546

@@ -187,6 +78,13 @@ To forward the scheme from the proxy in non-IIS scenarios, set `ASPNETCORE_FORWA
18778

18879
For more details on how it works, see the Microsoft [documentation](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-5.0#forward-the-scheme-for-linux-and-non-iis-reverse-proxies).
18980

81+
## References
82+
- Virto Commerce Documentation: https://docs.virtocommerce.org
83+
- Home: https://virtocommerce.com
84+
- Community: https://www.virtocommerce.org
85+
- [Download Latest Release](https://github.com/VirtoCommerce/vc-storefront/releases/latest)
86+
87+
19088
## License
19189

19290
Copyright (c) Virto Solutions LTD. All rights reserved.

VirtoCommerce.LiquidThemeEngine/Exceptions/SaasCompileException.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace DotLiquid.ViewEngine.Exceptions
77
[Serializable]
88
public class SaasCompileException : Exception
99
{
10-
protected SaasCompileException(SerializationInfo info,
11-
StreamingContext context) : base(info, context)
10+
[Obsolete(DiagnosticId = "SYSLIB0051")]
11+
protected SaasCompileException(SerializationInfo info, StreamingContext context) : base(info, context)
1212
{
1313
SassLine = info.GetString("SassLine");
1414
}
@@ -62,6 +62,7 @@ private static string ReadLine(string text, int lineNumber)
6262
return (currentLineNumber == lineNumber) ? line : string.Empty;
6363
}
6464

65+
[Obsolete(DiagnosticId = "SYSLIB0051")]
6566
public override void GetObjectData(SerializationInfo info, StreamingContext context)
6667
{
6768
base.GetObjectData(info, context);
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
54
<Description>The storefront implementation of the Virto Commerce platform.</Description>
65
<PackageLicenseUrl>https://virtocommerce.com/open-source-license</PackageLicenseUrl>
76
<PackageProjectUrl>https://github.com/VirtoCommerce/vc-storefront-core</PackageProjectUrl>
@@ -10,30 +9,23 @@
109
<IsPackable>False</IsPackable>
1110
<OutputType>Library</OutputType>
1211
</PropertyGroup>
13-
14-
1512
<ItemGroup>
1613
<FrameworkReference Include="Microsoft.AspNetCore.App" />
17-
<PackageReference Include="GraphQL.Client" Version="4.0.2" />
18-
<PackageReference Include="LibSassHost" Version="1.3.3" />
19-
<PackageReference Include="LibSassHost.Native.linux-x64" Version="1.3.3" />
20-
<PackageReference Include="LibSassHost.Native.osx-x64" Version="1.3.3" />
21-
<PackageReference Include="LibSassHost.Native.win-x64" Version="1.3.3" />
22-
<PackageReference Include="LibSassHost.Native.win-x86" Version="1.3.3" />
14+
<PackageReference Include="GraphQL.Client" Version="6.0.3" />
15+
<PackageReference Include="LibSassHost" Version="1.4.0" />
16+
<PackageReference Include="LibSassHost.Native.linux-x64" Version="1.4.0" />
17+
<PackageReference Include="LibSassHost.Native.osx-x64" Version="1.4.0" />
18+
<PackageReference Include="LibSassHost.Native.win-x64" Version="1.4.0" />
19+
<PackageReference Include="LibSassHost.Native.win-x86" Version="1.4.0" />
2320
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
2421
<PackageReference Include="PagedList.Core" Version="1.17.4" />
25-
<PackageReference Include="Scriban" Version="5.5.1" />
22+
<PackageReference Include="Scriban" Version="5.9.0" />
2623
</ItemGroup>
27-
28-
2924
<ItemGroup>
3025
<ProjectReference Include="..\VirtoCommerce.Storefront.Model\VirtoCommerce.Storefront.Model.csproj" />
3126
</ItemGroup>
32-
33-
3427
<ItemGroup>
3528
<Folder Include="Properties\" />
3629
<Folder Include="Util\" />
3730
</ItemGroup>
38-
39-
</Project>
31+
</Project>

VirtoCommerce.Storefront.Model/Common/Exceptions/StorefrontException.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class StorefrontException : Exception
88
{
99
public string View { get; set; }
1010

11-
protected StorefrontException(SerializationInfo info,
12-
StreamingContext context) : base(info, context)
11+
[Obsolete(DiagnosticId = "SYSLIB0051")]
12+
protected StorefrontException(SerializationInfo info, StreamingContext context) : base(info, context)
1313
{
1414
View = info.GetString("View");
1515
}
@@ -34,6 +34,7 @@ public StorefrontException(string message, Exception innerException, string view
3434
View = view;
3535
}
3636

37+
[Obsolete(DiagnosticId = "SYSLIB0051")]
3738
public override void GetObjectData(SerializationInfo info, StreamingContext context)
3839
{
3940
base.GetObjectData(info, context);

VirtoCommerce.Storefront.Model/Features/Exceptions/FeaturesException.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace VirtoCommerce.Storefront.Model.Features.Exceptions
66
[Serializable]
77
public class FeaturesException : Exception
88
{
9-
protected FeaturesException(SerializationInfo info,
10-
StreamingContext context) : base(info, context)
9+
[Obsolete(DiagnosticId = "SYSLIB0051")]
10+
protected FeaturesException(SerializationInfo info, StreamingContext context) : base(info, context)
1111
{
1212
}
1313

0 commit comments

Comments
 (0)