Skip to content

Commit 7886d3b

Browse files
committed
Update platform
1 parent 570283f commit 7886d3b

File tree

17 files changed

+39
-38
lines changed

17 files changed

+39
-38
lines changed

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ This repository contains `dotnet new` templates for Virto Commerce Modules.
44

55
## Templates
66
* vc-module - Creates a new Virto Commerce module.
7-
* vc-module-xapi - Creates a new Virto Commerce module with XAPI support.
87
* vc-module-dba - Creates a new Virto Commerce module with DB Agnostic support.
9-
8+
* vc-module-xapi - Creates a new Virto Commerce module with XAPI support.
109

1110
## Getting Started
1211

@@ -34,7 +33,7 @@ where `--ModuleName` is your module name, `--Author` is your name, and `--Compan
3433
* You can pass PlatformVersion attribute to create a new module for specific version of Virto Commerce.
3534

3635
### How to create a new XAPI module from template
37-
There is a seprate template named `vc-module-xapi` for an XAPI module.
36+
There is a separate template named `vc-module-xapi` for an XAPI module.
3837

3938
* Open Windows PowerShell CMD
4039
* Navigate to your sources folder
@@ -46,14 +45,14 @@ dotnet new vc-module-xapi --ModuleName QuoteExperienceApi --Author "Jon Doe" --C
4645

4746
## Parameters description
4847

49-
Default values based on latest [Stable 8 Release](https://www.virtocommerce.org/t/stable-bundle-6-release-notes/643/4)
48+
Default values based on latest [Stable 10 Release](https://www.virtocommerce.org/t/virtos-release-notes-december-2024/747#p-1340-platform-stable-bundle-10httpsgithubcomvirtocommercevc-modulesblobmasterbundlesv10packagejson-1)
5049

5150
| Options | Description | Type | Required | Default value |
5251
|--------|-------------|------|----------|---------------|
5352
| --Author (or -A) | Your name | string | Optional| John Doe |
5453
| --CompanyName (or -C) | Your company name| string | Optional | VirtoCommerce |
55-
| --ModuleName (or -M) | Your module name | string | Optional | newModule |
56-
| --PlatformVersion (or -P) | Virto Commerce platform version | string | Optional | 3.800.0 |
54+
| --ModuleName (or -M) | Your module name | string | Optional | NewModule |
55+
| --PlatformVersion (or -P) | Virto Commerce platform version | string | Optional | 3.876.0 |
5756
| --XapiVersion (or -X) | XAPI module version | string | Optional | 3.800.0 |
5857

5958
## How to uninstall
@@ -91,7 +90,7 @@ dotnet new uninstall <full or relative path to the templates directory>
9190

9291
## License
9392

94-
Copyright (c) Virtosoftware Ltd. All rights reserved.
93+
Copyright (c) Virto Solutions LTD. All rights reserved.
9594

9695
Licensed under the Virto Commerce Open Software License (the "License"); you
9796
may not use this file except in compliance with the License. You may

templates/vc-module-dba-template/.template.config/template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"type": "parameter",
5757
"dataType": "string",
5858
"description": "Required Platform Version",
59-
"defaultValue": "3.832.3",
59+
"defaultValue": "3.876.0",
6060
"replaces": "{PlatformVersion}"
6161
},
6262
"CoreVersion": {
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
Microsoft.Data.SqlClient.SNI.dll
2-
Nager.Country.dll

templates/vc-module-dba-template/vc-module-{KebabModuleName}/src/{Namespace}.Data.MySql/DesignTimeDbContextFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<{ModuleNam
99
public {ModuleName}DbContext CreateDbContext(string[] args)
1010
{
1111
var builder = new DbContextOptionsBuilder<{ModuleName}DbContext>();
12-
var connectionString = args.Any() ? args[0] : "Server=localhost;User=virto;Password=virto;Database=VirtoCommerce3;";
12+
var connectionString = args.Length != 0 ? args[0] : "Server=localhost;User=virto;Password=virto;Database=VirtoCommerce3;";
1313

1414
builder.UseMySql(
1515
connectionString,

templates/vc-module-dba-template/vc-module-{KebabModuleName}/src/{Namespace}.Data.MySql/{Namespace}.Data.MySql.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<SonarQubeTestProject>false</SonarQubeTestProject>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0">
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>

templates/vc-module-dba-template/vc-module-{KebabModuleName}/src/{Namespace}.Data.PostgreSql/DesignTimeDbContextFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<{ModuleNam
99
public {ModuleName}DbContext CreateDbContext(string[] args)
1010
{
1111
var builder = new DbContextOptionsBuilder<{ModuleName}DbContext>();
12-
var connectionString = args.Any() ? args[0] : "Server=localhost;Username=virto;Password=virto;Database=VirtoCommerce3;";
12+
var connectionString = args.Length != 0 ? args[0] : "Server=localhost;Username=virto;Password=virto;Database=VirtoCommerce3;";
1313

1414
builder.UseNpgsql(
1515
connectionString,

templates/vc-module-dba-template/vc-module-{KebabModuleName}/src/{Namespace}.Data.PostgreSql/{Namespace}.Data.PostgreSql.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<SonarQubeTestProject>false</SonarQubeTestProject>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0">
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>

templates/vc-module-dba-template/vc-module-{KebabModuleName}/src/{Namespace}.Data.SqlServer/{Namespace}.Data.SqlServer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<SonarQubeTestProject>false</SonarQubeTestProject>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0">
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>

templates/vc-module-dba-template/vc-module-{KebabModuleName}/src/{Namespace}.Data/Repositories/{ModuleName}DbContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
2121
base.OnModelCreating(modelBuilder);
2222

2323
//modelBuilder.Entity<{ModuleName}Entity>().ToTable("{ModuleName}").HasKey(x => x.Id);
24-
//modelBuilder.Entity<{ModuleName}Entity>().Property(x => x.Id).HasMaxLength(128).ValueGeneratedOnAdd();
24+
//modelBuilder.Entity<{ModuleName}Entity>().Property(x => x.Id).HasMaxLength(IdLength).ValueGeneratedOnAdd();
2525

2626
switch (Database.ProviderName)
2727
{

templates/vc-module-dba-template/vc-module-{KebabModuleName}/tests/{Namespace}.Tests/{Namespace}.Tests.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<SonarQubeTestProject>true</SonarQubeTestProject>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="coverlet.collector" Version="6.0.2">
11+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
16-
<PackageReference Include="xunit" Version="2.6.6" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
16+
<PackageReference Include="xunit" Version="2.9.3" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1" />
1818
</ItemGroup>
1919
<ItemGroup>
2020
<ProjectReference Include="..\..\src\{Namespace}.Core\{Namespace}.Core.csproj" />

templates/vc-module-template/.template.config/template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"type": "parameter",
5454
"dataType": "string",
5555
"description": "Required Platform Version",
56-
"defaultValue": "3.832.3",
56+
"defaultValue": "3.876.0",
5757
"replaces": "{PlatformVersion}"
5858
},
5959
"CoreVersion": {
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
Microsoft.Data.SqlClient.SNI.dll
2-
Nager.Country.dll

templates/vc-module-template/vc-module-{KebabModuleName}/src/{Namespace}.Data/{Namespace}.Data.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<SonarQubeTestProject>false</SonarQubeTestProject>
88
</PropertyGroup>
99
<ItemGroup>
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0">
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="[8.0.11,9)">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>

templates/vc-module-template/vc-module-{KebabModuleName}/tests/{Namespace}.Tests/{Namespace}.Tests.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<SonarQubeTestProject>true</SonarQubeTestProject>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="coverlet.collector" Version="6.0.2">
11+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
16-
<PackageReference Include="xunit" Version="2.6.6" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
16+
<PackageReference Include="xunit" Version="2.9.3" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1" />
1818
</ItemGroup>
1919
<ItemGroup>
2020
<ProjectReference Include="..\..\src\{Namespace}.Core\{Namespace}.Core.csproj" />

templates/vc-module-xapi-template/.template.config/template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"type": "parameter",
5454
"dataType": "string",
5555
"description": "Required Platform Version",
56-
"defaultValue": "3.841.0",
56+
"defaultValue": "3.876.0",
5757
"replaces": "{PlatformVersion}"
5858
},
5959
"XapiVersion": {

templates/vc-module-xapi-template/vc-module-{KebabModuleName}/module.ignore

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
AutoMapper.dll
22
AutoMapper.Extensions.Microsoft.DependencyInjection.dll
3-
FluentAssertions.dll
43
GraphQL.dll
54
GraphQL.Authorization.dll
65
GraphQL.DataLoader.dll
@@ -15,12 +14,19 @@ GraphQL.SystemReactive.dll
1514
GraphQL-Parser.dll
1615
MediatR.dll
1716
MediatR.Extensions.Microsoft.DependencyInjection.dll
18-
Microsoft.Data.SqlClient.SNI.dll
19-
Nager.Country.dll
17+
Microsoft.AI.DependencyCollector.dll
18+
Microsoft.AI.EventCounterCollector.dll
19+
Microsoft.AI.PerfCounterCollector.dll
20+
Microsoft.AI.ServerTelemetryChannel.dll
21+
Microsoft.AI.WindowsServer.dll
22+
Microsoft.ApplicationInsights.dll
23+
Microsoft.ApplicationInsights.AspNetCore.dll
24+
Microsoft.Extensions.Logging.ApplicationInsights.dll
2025
PipelineNet.dll
21-
System.Reactive.Core.dll
26+
System.Diagnostics.PerformanceCounter.dll
2227
System.Reactive.dll
23-
System.Reactive.Linq.dll
2428
System.Reactive.xml
29+
System.Reactive.Core.dll
30+
System.Reactive.Linq.dll
2531
TimeZoneConverter.dll
2632
VirtoCommerce.Xapi.Core.dll

templates/vc-module-xapi-template/vc-module-{KebabModuleName}/tests/{Namespace}.Tests/{Namespace}.Tests.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<SonarQubeTestProject>true</SonarQubeTestProject>
99
</PropertyGroup>
1010
<ItemGroup>
11-
<PackageReference Include="coverlet.collector" Version="6.0.2">
11+
<PackageReference Include="coverlet.collector" Version="6.0.4">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
16-
<PackageReference Include="xunit" Version="2.6.6" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
16+
<PackageReference Include="xunit" Version="2.9.3" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1" />
1818
</ItemGroup>
1919
<ItemGroup>
2020
<ProjectReference Include="..\..\src\{Namespace}.Core\{Namespace}.Core.csproj" />

0 commit comments

Comments
 (0)