Skip to content

Commit 7d96216

Browse files
authored
Merge pull request #456 from mikeedwards83/feature/10.3
Feature/10.3
2 parents f7d3a91 + cd25623 commit 7d96216

34 files changed

+374
-67
lines changed

.github/workflows/Dev-CI.yml

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ jobs:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1919
- uses: actions/checkout@master
2020

21+
- name: Dotnet build Sitecore v10.3.0
22+
run: dotnet build Glass.Mapper.sln --packages .\NuGetv103 --configfile .nuget\NuGet.Config -p:ScVersion=10.3.0
23+
24+
- name: Dotnet build Sitecore v10.2.0
25+
run: dotnet build Glass.Mapper.sln --packages .\NuGetv102 --configfile .nuget\NuGet.Config -p:ScVersion=10.2.0
26+
27+
- name: Dotnet build Sitecore v10.1.0
28+
run: dotnet build Glass.Mapper.sln --packages .\NuGetv101 --configfile .nuget\NuGet.Config -p:ScVersion=10.1.0
29+
2130
- name: Dotnet build Sitecore v10.0
2231
run: dotnet build Glass.Mapper.sln --packages .\NuGetv100 --configfile .nuget\NuGet.Config -p:ScVersion=10.0.0
2332

.github/workflows/Release.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77

88
env:
99
NUGET_PACKAGE_PATH: '.\NuGetPackages' # set this to your nuget package path
10+
11+
SC_V103_VERSION: '10.3.0' # set this to your Sitecore dll version for v10.3.0
12+
NUGET_SC_V103_VERSION: '103' #set this to the Number for the Sitecore version on the NuGet package
13+
14+
SC_V102_VERSION: '10.2.0' # set this to your Sitecore dll version for v10.2.0
15+
NUGET_SC_V102_VERSION: '102' #set this to the Number for the Sitecore version on the NuGet package
16+
17+
SC_V101_VERSION: '10.1.0' # set this to your Sitecore dll version for v10.1.0
18+
NUGET_SC_V101_VERSION: '101' #set this to the Number for the Sitecore version on the NuGet package
1019

1120
SC_V10_VERSION: '10.0.0' # set this to your Sitecore dll version for v10
1221
NUGET_SC_V10_VERSION: '100' #set this to the Number for the Sitecore version on the NuGet package
@@ -41,8 +50,30 @@ jobs:
4150
# Steps represent a sequence of tasks that will be executed as part of the job
4251
steps:
4352
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
44-
- uses: actions/checkout@master
53+
- uses: actions/checkout@master
54+
55+
- name: Dotnet pack Sitecore v10.3.0
56+
run: |
57+
dotnet pack "./Source/Glass.Mapper.Sc/Glass.Mapper.Sc.csproj" --packages .\NuGetv103 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V103_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V103_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
58+
dotnet pack "./Source/Glass.Mapper.Sc.WebForms/Glass.Mapper.Sc.WebForms.csproj" --packages .\NuGetv103 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V103_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V103_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
59+
dotnet pack "./Source/Glass.Mapper.Sc.Mvc/Glass.Mapper.Sc.Mvc.csproj" --packages .\NuGetv103 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V103_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V103_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
60+
dotnet pack "./Source/Glass.Mapper/Glass.Mapper.csproj" --packages .\NuGetv103 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V103_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V103_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
61+
4562

63+
- name: Dotnet pack Sitecore v10.2.0
64+
run: |
65+
dotnet pack "./Source/Glass.Mapper.Sc/Glass.Mapper.Sc.csproj" --packages .\NuGetv102 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V102_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V102_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
66+
dotnet pack "./Source/Glass.Mapper.Sc.WebForms/Glass.Mapper.Sc.WebForms.csproj" --packages .\NuGetv102 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V102_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V102_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
67+
dotnet pack "./Source/Glass.Mapper.Sc.Mvc/Glass.Mapper.Sc.Mvc.csproj" --packages .\NuGetv102 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V102_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V102_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
68+
dotnet pack "./Source/Glass.Mapper/Glass.Mapper.csproj" --packages .\NuGetv102 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V102_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V102_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
69+
70+
- name: Dotnet pack Sitecore v10.1.0
71+
run: |
72+
dotnet pack "./Source/Glass.Mapper.Sc/Glass.Mapper.Sc.csproj" --packages .\NuGetv101 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V101_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V101_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
73+
dotnet pack "./Source/Glass.Mapper.Sc.WebForms/Glass.Mapper.Sc.WebForms.csproj" --packages .\NuGetv101 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V101_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V101_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
74+
dotnet pack "./Source/Glass.Mapper.Sc.Mvc/Glass.Mapper.Sc.Mvc.csproj" --packages .\NuGetv101 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V101_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V101_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
75+
dotnet pack "./Source/Glass.Mapper/Glass.Mapper.csproj" --packages .\NuGetv101 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V101_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V101_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'
76+
4677
- name: Dotnet pack Sitecore v10.0
4778
run: |
4879
dotnet pack "./Source/Glass.Mapper.Sc/Glass.Mapper.Sc.csproj" --packages .\NuGetv100 --configfile .nuget\NuGet.Config -p:Version=${{ github.event.release.tag_name }} -p:ScVersion=${{ env.SC_V10_VERSION }} -p:PackageScVersion=${{ env.NUGET_SC_V10_VERSION }} -p:TargetFramework=net48 -o:'${{ env.NUGET_PACKAGE_PATH }}'

CommonSettings.targets

+61-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,67 @@
11
<Project>
22
<Choose>
3-
<When Condition="'$(Configuration)|$(Platform)' == 'sc100|AnyCPU' Or '$(ScVersion)' == '10.0.0' Or '$(ScVersion)' == '' or
3+
<When Condition="'$(Configuration)|$(Platform)' == 'sc103|AnyCPU' Or '$(ScVersion)' == '10.3.0' Or '$(ScVersion)' == '' or
44
'$(ScVersion)' == '*undefined*'">
5+
<PropertyGroup>
6+
<IncludeContentExtractionDll>true</IncludeContentExtractionDll>
7+
<ScFakeDBVersion>3.0.0-alpha1</ScFakeDBVersion>
8+
<NSubstituteVersion>4.2.1</NSubstituteVersion>
9+
<CastleVersion>4.4.0</CastleVersion>
10+
<TargetFramework Condition="'$(TargetFramework)' == '' ">net48</TargetFramework>
11+
<AspNetMvcVersion>5.2.4</AspNetMvcVersion>
12+
<AspNetRazorWebVersion>3.2.4</AspNetRazorWebVersion>
13+
<DebugSymbols>true</DebugSymbols>
14+
<DefineConstants>SC103</DefineConstants>
15+
<DebugType>full</DebugType>
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<ErrorReport>prompt</ErrorReport>
18+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
19+
<OutputPath>bin\103\</OutputPath>
20+
<ScVersion>10.3.0</ScVersion>
21+
</PropertyGroup>
22+
</When>
23+
24+
<When Condition="'$(Configuration)|$(Platform)' == 'sc102|AnyCPU' Or '$(ScVersion)' == '10.2.0'">
25+
<PropertyGroup>
26+
<IncludeContentExtractionDll>true</IncludeContentExtractionDll>
27+
<ScFakeDBVersion>3.0.0-alpha1</ScFakeDBVersion>
28+
<NSubstituteVersion>4.2.1</NSubstituteVersion>
29+
<CastleVersion>4.4.0</CastleVersion>
30+
<TargetFramework Condition="'$(TargetFramework)' == '' ">net48</TargetFramework>
31+
<AspNetMvcVersion>5.2.4</AspNetMvcVersion>
32+
<AspNetRazorWebVersion>3.2.4</AspNetRazorWebVersion>
33+
<DebugSymbols>true</DebugSymbols>
34+
<DefineConstants>SC102</DefineConstants>
35+
<DebugType>full</DebugType>
36+
<PlatformTarget>AnyCPU</PlatformTarget>
37+
<ErrorReport>prompt</ErrorReport>
38+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
39+
<OutputPath>bin\102\</OutputPath>
40+
<ScVersion>10.2.0</ScVersion>
41+
</PropertyGroup>
42+
</When>
43+
44+
<When Condition="'$(Configuration)|$(Platform)' == 'sc101|AnyCPU' Or '$(ScVersion)' == '10.1.0'">
45+
<PropertyGroup>
46+
<IncludeContentExtractionDll>true</IncludeContentExtractionDll>
47+
<ScFakeDBVersion>3.0.0-alpha1</ScFakeDBVersion>
48+
<NSubstituteVersion>4.2.1</NSubstituteVersion>
49+
<CastleVersion>4.4.0</CastleVersion>
50+
<TargetFramework Condition="'$(TargetFramework)' == '' ">net48</TargetFramework>
51+
<AspNetMvcVersion>5.2.4</AspNetMvcVersion>
52+
<AspNetRazorWebVersion>3.2.4</AspNetRazorWebVersion>
53+
<DebugSymbols>true</DebugSymbols>
54+
<DefineConstants>SC101</DefineConstants>
55+
<DebugType>full</DebugType>
56+
<PlatformTarget>AnyCPU</PlatformTarget>
57+
<ErrorReport>prompt</ErrorReport>
58+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
59+
<OutputPath>bin\101\</OutputPath>
60+
<ScVersion>10.1.0</ScVersion>
61+
</PropertyGroup>
62+
</When>
63+
64+
<When Condition="'$(Configuration)|$(Platform)' == 'sc100|AnyCPU' Or '$(ScVersion)' == '10.0.0'">
565
<PropertyGroup>
666
<IncludeContentExtractionDll>true</IncludeContentExtractionDll>
767
<ScFakeDBVersion>3.0.0-alpha1</ScFakeDBVersion>

0 commit comments

Comments
 (0)