Skip to content

Commit 54d81e5

Browse files
authored
Merge pull request #5 from I-RzR-I/feature/BuildRawScript
Add build raw script
2 parents 7a58e3d + 19ffc1c commit 54d81e5

File tree

18 files changed

+1236
-82
lines changed

18 files changed

+1236
-82
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2024 RzR
3+
Copyright (c) 2022-2025 RzR
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

build/generateNextMajorVersion.bat

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
@echo off
2+
cls
3+
4+
echo Write the source branch name (you current branch name, where were the changes made):
5+
set /p userDefinedSourceBranch=
6+
echo.
7+
echo Write the destination branch name (the branch from which you can get the latest changes, like 'develop' or 'main/master'):
8+
set /p userDefinedDestinationBranch=
9+
echo.
10+
11+
:: Set init params value
12+
set applicationName=DbObjectExecutor
13+
set runVersionIncrement=y
14+
set runGenChangeLog=y
15+
set runBuild=y
16+
set runSolutionTest=y
17+
set runTest=y
18+
set runPack=y
19+
set assemblyPath=$('..\src\shared\GeneralAssemblyInfo.cs')
20+
set genType=0
21+
set setInChangeLogNewVersion=y
22+
set autoCommitAndPush=n
23+
set autoGetLatestDevelop=y
24+
set changeLogPath=$('..\docs\CHANGELOG.MD')
25+
set sourceBranch=%userDefinedSourceBranch%
26+
set destinationBranch=%userDefinedDestinationBranch%
27+
set customVersion=$null
28+
set solutionPath=$('..\src\RzR.Shared.Entity.sln')
29+
set packResultPath=$('..\nuget\')
30+
set packProjectsPath=$('..\src\DbObjectExecutor\DbObjectExecutor.csproj','..\src\DbObjectExecutor.Attribute\DbObjectExecutor.Attribute.csproj','..\src\DbObjectExecutor.Imp.EntityFramework\DbObjectExecutor.Imp.EntityFramework.csproj')
31+
set testProjectsPath=$('..\src\RzR.Shared.Entity.sln')
32+
33+
34+
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
35+
echo ::: Initialize: :::
36+
echo ::: - New application version generation :::
37+
echo ::: - Change log generation :::
38+
echo ::: - Build :::
39+
echo ::: - Test :::
40+
echo ::: - Create package :::
41+
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
42+
echo:
43+
echo:
44+
45+
PowerShell -NoProfile -ExecutionPolicy ByPass -Command ".\GenerateBuildInfo.exe -scriptCommands \"runVersionIncrement=%runVersionIncrement%;runGenChangeLog=%runGenChangeLog%;runBuild=%runBuild%;runSolutionTest=%runSolutionTest%;runTest=%runTest%;runPack=%runPack%;setInChangeLogNewVersion=%setInChangeLogNewVersion%;autoCommitAndPush=%autoCommitAndPush%;autoGetLatestDevelop=%autoGetLatestDevelop%;changeLogPath=%changeLogPath%;sourceBranch=%sourceBranch%;destinationBranch=%destinationBranch%;assemblyPath=%assemblyPath%;customVersion=%customVersion%;genType=%genType%;solutionPath=%solutionPath%;packResultPath=%packResultPath%;packProjectsPath=%packProjectsPath%;testProjectsPath=%testProjectsPath%\"";
46+
47+
echo
48+
pause

build/generateNextMinorVersion.bat

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
@echo off
2+
cls
3+
4+
echo Write the source branch name (you current branch name, where were the changes made):
5+
set /p userDefinedSourceBranch=
6+
echo.
7+
echo Write the destination branch name (the branch from which you can get the latest changes, like 'develop' or 'main/master'):
8+
set /p userDefinedDestinationBranch=
9+
echo.
10+
11+
:: Set init params value
12+
set applicationName=DbObjectExecutor
13+
set runVersionIncrement=y
14+
set runGenChangeLog=y
15+
set runBuild=y
16+
set runSolutionTest=y
17+
set runTest=y
18+
set runPack=y
19+
set assemblyPath=$('..\src\shared\GeneralAssemblyInfo.cs')
20+
set genType=1
21+
set setInChangeLogNewVersion=y
22+
set autoCommitAndPush=n
23+
set autoGetLatestDevelop=y
24+
set changeLogPath=$('..\docs\CHANGELOG.MD')
25+
set sourceBranch=%userDefinedSourceBranch%
26+
set destinationBranch=%userDefinedDestinationBranch%
27+
set customVersion=$null
28+
set solutionPath=$('..\src\RzR.Shared.Entity.sln')
29+
set packResultPath=$('..\nuget\')
30+
set packProjectsPath=$('..\src\DbObjectExecutor\DbObjectExecutor.csproj','..\src\DbObjectExecutor.Attribute\DbObjectExecutor.Attribute.csproj','..\src\DbObjectExecutor.Imp.EntityFramework\DbObjectExecutor.Imp.EntityFramework.csproj')
31+
set testProjectsPath=$('..\src\RzR.Shared.Entity.sln')
32+
33+
34+
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
35+
echo ::: Initialize: :::
36+
echo ::: - New application version generation :::
37+
echo ::: - Change log generation :::
38+
echo ::: - Build :::
39+
echo ::: - Test :::
40+
echo ::: - Create package :::
41+
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
42+
echo:
43+
echo:
44+
45+
PowerShell -NoProfile -ExecutionPolicy ByPass -Command ".\GenerateBuildInfo.exe -scriptCommands \"runVersionIncrement=%runVersionIncrement%;runGenChangeLog=%runGenChangeLog%;runBuild=%runBuild%;runSolutionTest=%runSolutionTest%;runTest=%runTest%;runPack=%runPack%;setInChangeLogNewVersion=%setInChangeLogNewVersion%;autoCommitAndPush=%autoCommitAndPush%;autoGetLatestDevelop=%autoGetLatestDevelop%;changeLogPath=%changeLogPath%;sourceBranch=%sourceBranch%;destinationBranch=%destinationBranch%;assemblyPath=%assemblyPath%;customVersion=%customVersion%;genType=%genType%;solutionPath=%solutionPath%;packResultPath=%packResultPath%;packProjectsPath=%packProjectsPath%;testProjectsPath=%testProjectsPath%\"";
46+
47+
echo
48+
pause

build/generateNextPatchVersion.bat

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
@echo off
2+
cls
3+
4+
echo Write the source branch name (you current branch name, where were the changes made):
5+
set /p userDefinedSourceBranch=
6+
echo.
7+
echo Write the destination branch name (the branch from which you can get the latest changes, like 'develop' or 'main/master'):
8+
set /p userDefinedDestinationBranch=
9+
echo.
10+
11+
:: Set init params value
12+
set applicationName=DbObjectExecutor
13+
set runVersionIncrement=y
14+
set runGenChangeLog=y
15+
set runBuild=y
16+
set runSolutionTest=y
17+
set runTest=y
18+
set runPack=y
19+
set assemblyPath=$('..\src\shared\GeneralAssemblyInfo.cs')
20+
set genType=2
21+
set setInChangeLogNewVersion=y
22+
set autoCommitAndPush=n
23+
set autoGetLatestDevelop=y
24+
set changeLogPath=$('..\docs\CHANGELOG.MD')
25+
set sourceBranch=%userDefinedSourceBranch%
26+
set destinationBranch=%userDefinedDestinationBranch%
27+
set customVersion=$null
28+
set solutionPath=$('..\src\RzR.Shared.Entity.sln')
29+
set packResultPath=$('..\nuget\')
30+
set packProjectsPath=$('..\src\DbObjectExecutor\DbObjectExecutor.csproj','..\src\DbObjectExecutor.Attribute\DbObjectExecutor.Attribute.csproj','..\src\DbObjectExecutor.Imp.EntityFramework\DbObjectExecutor.Imp.EntityFramework.csproj')
31+
set testProjectsPath=$('..\src\RzR.Shared.Entity.sln')
32+
33+
34+
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
35+
echo ::: Initialize: :::
36+
echo ::: - New application version generation :::
37+
echo ::: - Change log generation :::
38+
echo ::: - Build :::
39+
echo ::: - Test :::
40+
echo ::: - Create package :::
41+
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
42+
echo:
43+
echo:
44+
45+
PowerShell -NoProfile -ExecutionPolicy ByPass -Command ".\GenerateBuildInfo.exe -scriptCommands \"runVersionIncrement=%runVersionIncrement%;runGenChangeLog=%runGenChangeLog%;runBuild=%runBuild%;runSolutionTest=%runSolutionTest%;runTest=%runTest%;runPack=%runPack%;setInChangeLogNewVersion=%setInChangeLogNewVersion%;autoCommitAndPush=%autoCommitAndPush%;autoGetLatestDevelop=%autoGetLatestDevelop%;changeLogPath=%changeLogPath%;sourceBranch=%sourceBranch%;destinationBranch=%destinationBranch%;assemblyPath=%assemblyPath%;customVersion=%customVersion%;genType=%genType%;solutionPath=%solutionPath%;packResultPath=%packResultPath%;packProjectsPath=%packProjectsPath%;testProjectsPath=%testProjectsPath%\"";
46+
47+
echo
48+
pause

docs/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v**1.1.0.7092** [[RzR](mailto:108324929+I-RzR-I@users.noreply.github.com)] 11-06-2025
2+
* [5bd2beb] (RzR) -> Add net9 to target framework
3+
* [6346b98] (RzR) -> Adjust year in files
4+
* [3877b90] (RzR) -> Implement raw script generation
5+
16
### **v1.0.3.6555**
27
-> Update lib version for 'Microsoft.Data.SqlClient', with `CVE-2024-29992` fix;<br />
38

@@ -8,4 +13,4 @@
813
### **v1.0.1.8361**
914
-> Change property mapper (map by property/column name);<br />
1015
-> Add EF DbContextExtension (that load neccessary information);<br />
11-
-> Add tests for simple select query and adjust mapper.<br />
16+
-> Add tests for simple select query and adjust mapper.<br />

src/DbObjectExecutor.Attribute/DbObjectExecutor.Attribute.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
66
<Authors>RzR</Authors>
77
<Copyright>RzR</Copyright>
@@ -71,6 +71,11 @@
7171
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
7272
<PackageReference Include="Npgsql" Version="8.0.3" />
7373
</ItemGroup>
74+
75+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
76+
<PackageReference Include="Npgsql" Version="9.0.3" />
77+
</ItemGroup>
78+
7479
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1'">
7580
<PackageReference Include="Npgsql" Version="4.1.13" />
7681
</ItemGroup>
Lines changed: 62 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,73 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
5-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6-
<Authors>RzR</Authors>
7-
<Copyright>RzR</Copyright>
8-
<Owners>RzR</Owners>
9-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
10-
<PackageIcon>PackageIcon.png</PackageIcon>
11-
<NoWarn>$(NoWarn);CS8032</NoWarn>
12-
<EnableNETAnalyzers>false</EnableNETAnalyzers>
13-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
14-
<PackageTags>DataBase;Db;Object;Exec;Execute;Proceudre;Function;Attribute;EntityFramework;</PackageTags>
15-
<RepositoryUrl>https://github.com/I-RzR-I/DbObjectExecutor</RepositoryUrl>
16-
<PackageProjectUrl>https://github.com/I-RzR-I/DbObjectExecutor</PackageProjectUrl>
17-
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
18-
<PackageDescription>The idea to implement the current repository started many years ago and is based on simple ideas and problems that must be solved. The first and the base problem is in the stored procedure or function execution. So practically in every ORM you can find, the method of execution/implementation and execution of an object (mentioned above) is quite difficult and does not allow their execution in a fairly simple and adequate way.</PackageDescription>
19-
<Summary>The idea to implement the current repository started many years ago and is based on simple ideas and problems that must be solved. The first and the base problem is in the stored procedure or function execution. So practically in every ORM you can find, the method of execution/implementation and execution of an object (mentioned above) is quite difficult and does not allow their execution in a fairly simple and adequate way.</Summary>
20-
<PackageTitle>RzR.Shared.Entity (DbObjectExecutor.Imp.EntityFramework)</PackageTitle>
21-
<Title>RzR.Shared.Entity (DbObjectExecutor.Imp.EntityFramework)</Title>
22-
<LangVersion>9.0</LangVersion>
23-
<Language>en-US</Language>
24-
<RepositoryType>GIT</RepositoryType>
25-
<PackageIconUrl />
26-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<Authors>RzR</Authors>
7+
<Copyright>RzR</Copyright>
8+
<Owners>RzR</Owners>
9+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
10+
<PackageIcon>PackageIcon.png</PackageIcon>
11+
<NoWarn>$(NoWarn);CS8032</NoWarn>
12+
<EnableNETAnalyzers>false</EnableNETAnalyzers>
13+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
14+
<PackageTags>DataBase;Db;Object;Exec;Execute;Proceudre;Function;Attribute;EntityFramework;</PackageTags>
15+
<RepositoryUrl>https://github.com/I-RzR-I/DbObjectExecutor</RepositoryUrl>
16+
<PackageProjectUrl>https://github.com/I-RzR-I/DbObjectExecutor</PackageProjectUrl>
17+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
18+
<PackageDescription>The idea to implement the current repository started many years ago and is based on simple ideas and problems that must be solved. The first and the base problem is in the stored procedure or function execution. So practically in every ORM you can find, the method of execution/implementation and execution of an object (mentioned above) is quite difficult and does not allow their execution in a fairly simple and adequate way.</PackageDescription>
19+
<Summary>The idea to implement the current repository started many years ago and is based on simple ideas and problems that must be solved. The first and the base problem is in the stored procedure or function execution. So practically in every ORM you can find, the method of execution/implementation and execution of an object (mentioned above) is quite difficult and does not allow their execution in a fairly simple and adequate way.</Summary>
20+
<PackageTitle>RzR.Shared.Entity (DbObjectExecutor.Imp.EntityFramework)</PackageTitle>
21+
<Title>RzR.Shared.Entity (DbObjectExecutor.Imp.EntityFramework)</Title>
22+
<LangVersion>9.0</LangVersion>
23+
<Language>en-US</Language>
24+
<RepositoryType>GIT</RepositoryType>
25+
<PackageIconUrl />
26+
</PropertyGroup>
2727

28-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
29-
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
30-
</PropertyGroup>
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
29+
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
30+
</PropertyGroup>
3131

32-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
33-
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
34-
</PropertyGroup>
32+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
33+
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
34+
</PropertyGroup>
3535

36-
<ItemGroup>
37-
<Compile Include="..\shared\GeneralAssemblyInfo.cs" Link="Properties\GeneralAssemblyInfo.cs" />
38-
</ItemGroup>
39-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'net5.0' ">
40-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.32" />
41-
</ItemGroup>
36+
<ItemGroup>
37+
<Compile Include="..\shared\GeneralAssemblyInfo.cs" Link="Properties\GeneralAssemblyInfo.cs" />
38+
</ItemGroup>
39+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'net5.0' ">
40+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.32" />
41+
</ItemGroup>
4242

43-
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
44-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.29" />
45-
</ItemGroup>
43+
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
44+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.29" />
45+
</ItemGroup>
4646

47-
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
48-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.18" />
49-
</ItemGroup>
47+
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
48+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.18" />
49+
</ItemGroup>
5050

51-
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
52-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.4" />
53-
</ItemGroup>
51+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
52+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.4" />
53+
</ItemGroup>
5454

55-
<ItemGroup>
56-
<None Include="..\..\LICENSE">
57-
<Pack>True</Pack>
58-
<PackagePath></PackagePath>
59-
</None>
60-
<None Include="..\..\assets\PackageIcon.png">
61-
<Pack>True</Pack>
62-
<PackagePath></PackagePath>
63-
</None>
64-
</ItemGroup>
55+
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
56+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.6" />
57+
</ItemGroup>
6558

66-
<ItemGroup>
67-
<ProjectReference Include="..\DbObjectExecutor.Attribute\DbObjectExecutor.Attribute.csproj" />
68-
</ItemGroup>
59+
<ItemGroup>
60+
<None Include="..\..\LICENSE">
61+
<Pack>True</Pack>
62+
<PackagePath></PackagePath>
63+
</None>
64+
<None Include="..\..\assets\PackageIcon.png">
65+
<Pack>True</Pack>
66+
<PackagePath></PackagePath>
67+
</None>
68+
</ItemGroup>
69+
70+
<ItemGroup>
71+
<ProjectReference Include="..\DbObjectExecutor.Attribute\DbObjectExecutor.Attribute.csproj" />
72+
</ItemGroup>
6973
</Project>

0 commit comments

Comments
 (0)