first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Devart.Data.PostgreSql" Version="8.4.235" />
|
||||||
|
<PackageReference Include="dotConnect.Express.for.PostgreSQL" Version="8.4.235" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.0-preview.5.25277.114" />
|
||||||
|
<PackageReference Include="System.Configuration.ConfigurationManager" Version="10.0.0-preview.5.25277.114" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
+192
@@ -0,0 +1,192 @@
|
|||||||
|
using System.IO.Compression;
|
||||||
|
using System.Collections.Specialized;
|
||||||
|
using ConfigurationManager = System.Configuration.ConfigurationManager;
|
||||||
|
|
||||||
|
/*using Microsoft.Extensions.Configuration;
|
||||||
|
using System.Configuration;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Net.Mime;
|
||||||
|
using System.Text;
|
||||||
|
using Devart.Data.PostgreSql;
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
namespace backup_file;
|
||||||
|
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
|
||||||
|
private static string ticketNumber;
|
||||||
|
public static string FolderPath;
|
||||||
|
|
||||||
|
|
||||||
|
//static void CompressFolder(string sourceFolder,string destinationFolder, string sourceTarget, string filenameTarget)
|
||||||
|
static void CompressFolder(string sourceFolder,string destinationFolder, Dictionary<string,string> sourceTargets)
|
||||||
|
{
|
||||||
|
|
||||||
|
//string compressionTarget = Path.Combine(sourceFolder, sourceTarget);
|
||||||
|
//string destinationPath = Path.Combine(destinationFolder, filenameTarget);
|
||||||
|
string destinationPath = Path.Combine(destinationFolder, "artefacts-"+ticketNumber+".zip");
|
||||||
|
|
||||||
|
|
||||||
|
//for debug pruposes
|
||||||
|
/*
|
||||||
|
Console.WriteLine("compressionTarget"+compressionTarget);
|
||||||
|
Console.WriteLine("destinationPath"+destinationPath);
|
||||||
|
Console.WriteLine("destinationFolder"+destinationFolder);
|
||||||
|
Console.WriteLine("sourceFolder"+sourceFolder);
|
||||||
|
Console.WriteLine("sourceTarget"+sourceTarget);
|
||||||
|
*/
|
||||||
|
|
||||||
|
//creation of the zip file
|
||||||
|
using (ZipArchive archive = ZipFile.Open(destinationPath, ZipArchiveMode.Update))
|
||||||
|
{
|
||||||
|
///////////////////////////////
|
||||||
|
/// loop on every files and compress them
|
||||||
|
///////////////////////////////
|
||||||
|
|
||||||
|
foreach (KeyValuePair<string, string> file in sourceTargets)
|
||||||
|
{
|
||||||
|
string filePath = Path.Combine(sourceFolder,file.Value );
|
||||||
|
|
||||||
|
//basic check if the file or folder exist
|
||||||
|
if (Path.Exists(filePath))
|
||||||
|
{
|
||||||
|
Console.WriteLine("==================================================");
|
||||||
|
Console.WriteLine("Compression of " + filePath + " to " + destinationPath);
|
||||||
|
|
||||||
|
|
||||||
|
//Check if we deal with a directory
|
||||||
|
if (Directory.Exists(filePath))
|
||||||
|
{
|
||||||
|
Console.WriteLine("This is a folder");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
//get folder info
|
||||||
|
DirectoryInfo directoryInfoFromDirectory = new DirectoryInfo(filePath);
|
||||||
|
|
||||||
|
//get info of every files inside the folder
|
||||||
|
FileInfo[] filesFromDirectory = directoryInfoFromDirectory.GetFiles("*");
|
||||||
|
foreach (FileInfo fileInfoFromDirectory in filesFromDirectory)
|
||||||
|
{
|
||||||
|
//compress every individual files based on the info provided above
|
||||||
|
archive.CreateEntryFromFile(fileInfoFromDirectory.FullName, file.Key+"/"+fileInfoFromDirectory.Name);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Compression not possible for " + file.Key);
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.WriteLine("This is a file");
|
||||||
|
|
||||||
|
var fileInfo = new FileInfo(filePath);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
//append the file into the archive
|
||||||
|
archive.CreateEntryFromFile(fileInfo.FullName, fileInfo.Name);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Compression not possible for " + file.Key);
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//closing the loop if the file doesn't exist
|
||||||
|
Console.WriteLine("================= ERROR =========================");
|
||||||
|
Console.WriteLine(file.Value+" doesn't exist");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
static void BackupDatabase(string databaseName, string localDatabasePath)
|
||||||
|
{
|
||||||
|
var process = new Process();
|
||||||
|
var startInfo = new ProcessStartInfo();
|
||||||
|
startInfo.FileName = Path.Combine("PostgreSQL", "postgresql-restore.bat");
|
||||||
|
var database = databaseName;
|
||||||
|
var outputPath = localDatabasePath;
|
||||||
|
|
||||||
|
// use pg_dump, specifying the host, port, user, database to back up, and the output path.
|
||||||
|
// the host, port, user, and database must be an exact match with what's inside your pgpass.conf (Windows)
|
||||||
|
startInfo.Arguments = $@"{host} {port} {user} {database} ""{outputPath}""";
|
||||||
|
startInfo.CreateNoWindow = true;
|
||||||
|
startInfo.UseShellExecute = false;
|
||||||
|
process.StartInfo = startInfo;
|
||||||
|
process.Start();
|
||||||
|
process.WaitForExit();
|
||||||
|
process.Close();
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
|
||||||
|
//https://blog.danskingdom.com/adding-and-accessing-custom-sections-in-your-c-app-config/
|
||||||
|
var Initialconfiguration = ConfigurationManager.GetSection("settings") as NameValueCollection;
|
||||||
|
string backupPath = Initialconfiguration["backupPath"];
|
||||||
|
string applicationPath = Initialconfiguration["applicationPath"];
|
||||||
|
|
||||||
|
var SourceFiles = ConfigurationManager.GetSection("SourceFiles") as NameValueCollection;
|
||||||
|
Dictionary<string,string> SoftwareList = SourceFiles.AllKeys.ToDictionary(k => k, k => SourceFiles[k]);
|
||||||
|
|
||||||
|
///////////////////////////////
|
||||||
|
//Break of the variables are not set
|
||||||
|
///////////////////////////////
|
||||||
|
|
||||||
|
if (String.IsNullOrEmpty(backupPath) || String.IsNullOrEmpty(applicationPath))
|
||||||
|
{
|
||||||
|
Console.WriteLine("The required variables are not set, please set backupPath and applicationPath in the app.config file ");
|
||||||
|
Environment.Exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////
|
||||||
|
// create the backup destination
|
||||||
|
///////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
Console.WriteLine("backupPath: " + backupPath);
|
||||||
|
Console.WriteLine("application_path: " + applicationPath);
|
||||||
|
|
||||||
|
Console.WriteLine("What is the ticket number ?");
|
||||||
|
ticketNumber = Console.ReadLine();
|
||||||
|
//ticketNumber = "DEPLOY-test";
|
||||||
|
|
||||||
|
FolderPath = Path.Combine(backupPath, ticketNumber);
|
||||||
|
Console.WriteLine("Backup destination: "+FolderPath);
|
||||||
|
|
||||||
|
if (!Directory.Exists(FolderPath))
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(FolderPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CompressFolder(sourceFolder:applicationPath,destinationFolder:FolderPath,SoftwareList);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
to do :
|
||||||
|
variable for backup DB
|
||||||
|
|
||||||
|
function to get config file based on application
|
||||||
|
function to get application folders based on application
|
||||||
|
variable to manually set another name of directory
|
||||||
|
|
||||||
|
prompt to ask if we only want to save config files
|
||||||
|
|
||||||
|
write app settings
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<section name="ConnectionManagerDatabaseServers" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="SourceFiles" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="settings" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||||
|
</startup>
|
||||||
|
<settings>
|
||||||
|
<add key="backupPath" value="C:\Prometheus\backup" />
|
||||||
|
<add key="applicationPath" value="C:\Prometheus\STO\" />
|
||||||
|
</settings>
|
||||||
|
<SourceFiles>
|
||||||
|
<!--
|
||||||
|
Example:
|
||||||
|
<add key="Name of the target" value="path of the target" />
|
||||||
|
<add key="api-gateway.xml" value="api-gateway\api-gateway.xml" />
|
||||||
|
|
||||||
|
we can even use different names, mostly for multiple HTML folder
|
||||||
|
<add key="admin-static-nginx_release" value="C:\Prometheus\WebERP\nginx-1.23.0-Admin\html" />
|
||||||
|
-->
|
||||||
|
<add key="DashboardsWorker.Api.exe" value="DashboardsWorker.Api.exe" />
|
||||||
|
<add key="appsettings.json" value="appsettings.json" />
|
||||||
|
<add key="api-gateway.xml" value="api-gateway\api-gateway.xml" />
|
||||||
|
<add key="api-gateway.jar" value="api-gateway\api-gateway.jar" />
|
||||||
|
<add key="application-routes.ymlSHUNT" value="api-gateway\application-routes.yml" />
|
||||||
|
<add key="frontend.exe" value="frontend.exe" />
|
||||||
|
<add key="PrimaveraWorker.Api.exe" value="PrimaveraWorker.Api.exe" />
|
||||||
|
<add key="PrimaveraWorker.Service.dll.config.orig" value="PrimaveraWorker.Service.dll.config.orig" />
|
||||||
|
<add key="NuGet.config" value="NuGet.config" />
|
||||||
|
<add key="ReportsWorker.Api.exe" value="ReportsWorker.Api.exe" />
|
||||||
|
<add key="SapWorker.Api.exe" value="SapWorker.Api.exe" />
|
||||||
|
<add key="files" value="files" />
|
||||||
|
<add key="filesexport" value="files" />
|
||||||
|
<!-- <add key="TurnaroundService.Api.exe" value="TurnaroundService.Api.exe" />-->
|
||||||
|
</SourceFiles>
|
||||||
|
<ConnectionManagerDatabaseServers>
|
||||||
|
<add key="localhost" value="localhost" />
|
||||||
|
<add key="Dev" value="Dev.MyDomain.local" />
|
||||||
|
<add key="Test" value="Test.MyDomain.local" />
|
||||||
|
<add key="Live" value="Prod.MyDomain.com" />
|
||||||
|
</ConnectionManagerDatabaseServers>
|
||||||
|
</configuration>
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<section name="ConnectionManagerDatabaseServers" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="SourceFiles" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="settings" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||||
|
</startup>
|
||||||
|
<settings>
|
||||||
|
<add key="backupPath" value="C:\Prometheus\backup" />
|
||||||
|
<add key="applicationPath" value="C:\Prometheus\STO\" />
|
||||||
|
</settings>
|
||||||
|
<SourceFiles>
|
||||||
|
<add key="DashboardsWorker.Api.exe.orgi" value="DashboardsWorker.Api.exe.orig" />
|
||||||
|
<add key="api-gateway" value="api-gateway" />
|
||||||
|
<add key="PrimaveraWorker.Service.dll.config.orig" value="PrimaveraWorker.Service.dll.config.orig" />
|
||||||
|
</SourceFiles>
|
||||||
|
<ConnectionManagerDatabaseServers>
|
||||||
|
<add key="localhost" value="localhost" />
|
||||||
|
<add key="Dev" value="Dev.MyDomain.local" />
|
||||||
|
<add key="Test" value="Test.MyDomain.local" />
|
||||||
|
<add key="Live" value="Prod.MyDomain.com" />
|
||||||
|
</ConnectionManagerDatabaseServers>
|
||||||
|
</configuration>
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
application_type = e5
|
||||||
|
application_path = "C;/e5"
|
||||||
|
Backup_path = "C:/e5/backup"
|
||||||
|
|
||||||
|
List_of_files = []
|
||||||
|
|
||||||
|
|
||||||
|
list_of_files|foreeach-object {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,287 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v8.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v8.0": {
|
||||||
|
"OnpremsTools/1.0.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Devart.Data.PostgreSql": "8.4.235",
|
||||||
|
"Microsoft.Extensions.Configuration": "10.0.0-preview.5.25277.114",
|
||||||
|
"System.Configuration.ConfigurationManager": "10.0.0-preview.5.25277.114",
|
||||||
|
"dotConnect.Express.for.PostgreSQL": "8.4.235"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"OnpremsTools.dll": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Devart.Data/6.0.235": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Win32.Registry": "4.5.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/Devart.Data.dll": {
|
||||||
|
"assemblyVersion": "6.0.235.0",
|
||||||
|
"fileVersion": "6.0.235.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Devart.Data.PostgreSql/8.4.235": {
|
||||||
|
"dependencies": {
|
||||||
|
"Devart.Data": "6.0.235",
|
||||||
|
"System.Diagnostics.PerformanceCounter": "4.5.0",
|
||||||
|
"System.Text.Encoding.CodePages": "4.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dotConnect.Express.for.PostgreSQL/8.4.235": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/net2.0/Devart.Data.PostgreSql.dll": {
|
||||||
|
"assemblyVersion": "8.4.235.0",
|
||||||
|
"fileVersion": "8.4.235.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.Extensions.Configuration/10.0.0-preview.5.25277.114": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Extensions.Configuration.Abstractions": "10.0.0-preview.5.25277.114",
|
||||||
|
"Microsoft.Extensions.Primitives": "10.0.0-preview.5.25277.114"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/net8.0/Microsoft.Extensions.Configuration.dll": {
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.Extensions.Configuration.Abstractions/10.0.0-preview.5.25277.114": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.Extensions.Primitives": "10.0.0-preview.5.25277.114"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.Extensions.Primitives/10.0.0-preview.5.25277.114": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/net8.0/Microsoft.Extensions.Primitives.dll": {
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Microsoft.NETCore.Platforms/2.0.0": {},
|
||||||
|
"Microsoft.Win32.Registry/4.5.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Security.AccessControl": "4.5.0",
|
||||||
|
"System.Security.Principal.Windows": "4.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Configuration.ConfigurationManager/10.0.0-preview.5.25277.114": {
|
||||||
|
"dependencies": {
|
||||||
|
"System.Diagnostics.EventLog": "10.0.0-preview.5.25277.114",
|
||||||
|
"System.Security.Cryptography.ProtectedData": "10.0.0-preview.5.25277.114"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/net8.0/System.Configuration.ConfigurationManager.dll": {
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Diagnostics.EventLog/10.0.0-preview.5.25277.114": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/net8.0/System.Diagnostics.EventLog.dll": {
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "0.0.0.0"
|
||||||
|
},
|
||||||
|
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Diagnostics.PerformanceCounter/4.5.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "2.0.0",
|
||||||
|
"Microsoft.Win32.Registry": "4.5.0",
|
||||||
|
"System.Configuration.ConfigurationManager": "10.0.0-preview.5.25277.114",
|
||||||
|
"System.Security.Principal.Windows": "4.5.0"
|
||||||
|
},
|
||||||
|
"runtime": {
|
||||||
|
"lib/netstandard2.0/System.Diagnostics.PerformanceCounter.dll": {
|
||||||
|
"assemblyVersion": "4.0.0.0",
|
||||||
|
"fileVersion": "4.6.26515.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"runtimeTargets": {
|
||||||
|
"runtimes/win/lib/netcoreapp2.0/System.Diagnostics.PerformanceCounter.dll": {
|
||||||
|
"rid": "win",
|
||||||
|
"assetType": "runtime",
|
||||||
|
"assemblyVersion": "4.0.0.0",
|
||||||
|
"fileVersion": "4.6.26515.6"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Runtime.CompilerServices.Unsafe/4.5.0": {},
|
||||||
|
"System.Security.AccessControl/4.5.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "2.0.0",
|
||||||
|
"System.Security.Principal.Windows": "4.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Cryptography.ProtectedData/10.0.0-preview.5.25277.114": {
|
||||||
|
"runtime": {
|
||||||
|
"lib/net8.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||||
|
"assemblyVersion": "10.0.0.0",
|
||||||
|
"fileVersion": "10.0.25.27814"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Security.Principal.Windows/4.5.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"System.Text.Encoding.CodePages/4.5.0": {
|
||||||
|
"dependencies": {
|
||||||
|
"Microsoft.NETCore.Platforms": "2.0.0",
|
||||||
|
"System.Runtime.CompilerServices.Unsafe": "4.5.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"OnpremsTools/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
},
|
||||||
|
"Devart.Data/6.0.235": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-d48aMGW/Qazz0xB9M41D7tVE6l7qHYssfg+KZzOCeDrze2D5Ue97kPBT4FRfZ/E7u+kyJEIVnCv163pSMWEGvA==",
|
||||||
|
"path": "devart.data/6.0.235",
|
||||||
|
"hashPath": "devart.data.6.0.235.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Devart.Data.PostgreSql/8.4.235": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-dGW7d73dgeRKxoNyNS37bI7f66xArsemR/65UDJ4Vd6KZRxZMg+MiziGWjFRLbylIFcuUk0XDWae4uv0x1xWFw==",
|
||||||
|
"path": "devart.data.postgresql/8.4.235",
|
||||||
|
"hashPath": "devart.data.postgresql.8.4.235.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"dotConnect.Express.for.PostgreSQL/8.4.235": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-4jilAm2UNVYXXSJrzV/fXOQFu3Jb0mB1a355h8n5DEfWJVC9fpHg2amcF2m0jKp5hpUoDkrXMdenZ99ls+IPDg==",
|
||||||
|
"path": "dotconnect.express.for.postgresql/8.4.235",
|
||||||
|
"hashPath": "dotconnect.express.for.postgresql.8.4.235.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Extensions.Configuration/10.0.0-preview.5.25277.114": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-wYa8Nt9b9resDOMFn2zr2aPLzF4NsJfhL3B4MRaUoR7+ZcVh+Pv8KEq3i9WI8rCKvpslHF3i4jV4e1HZqHC/aw==",
|
||||||
|
"path": "microsoft.extensions.configuration/10.0.0-preview.5.25277.114",
|
||||||
|
"hashPath": "microsoft.extensions.configuration.10.0.0-preview.5.25277.114.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Extensions.Configuration.Abstractions/10.0.0-preview.5.25277.114": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-4DyEA5PDBHlHgTURPUI8IkkVgdKEDCLcz9/7V9bexbp0PKT9G8bynhi+hJsmA431ituTiRPg/xY560WXvylcTQ==",
|
||||||
|
"path": "microsoft.extensions.configuration.abstractions/10.0.0-preview.5.25277.114",
|
||||||
|
"hashPath": "microsoft.extensions.configuration.abstractions.10.0.0-preview.5.25277.114.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Extensions.Primitives/10.0.0-preview.5.25277.114": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-CAUfd41c6W6P1B90rJSf5dyJBJSwSIbRexJ2W+h0MASF/4dDKlUn33gPeS6DYeOsL4d/RebiIdBoVdOTBdMCcQ==",
|
||||||
|
"path": "microsoft.extensions.primitives/10.0.0-preview.5.25277.114",
|
||||||
|
"hashPath": "microsoft.extensions.primitives.10.0.0-preview.5.25277.114.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.NETCore.Platforms/2.0.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==",
|
||||||
|
"path": "microsoft.netcore.platforms/2.0.0",
|
||||||
|
"hashPath": "microsoft.netcore.platforms.2.0.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"Microsoft.Win32.Registry/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-+FWlwd//+Tt56316p00hVePBCouXyEzT86Jb3+AuRotTND0IYn0OO3obs1gnQEs/txEnt+rF2JBGLItTG+Be6A==",
|
||||||
|
"path": "microsoft.win32.registry/4.5.0",
|
||||||
|
"hashPath": "microsoft.win32.registry.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Configuration.ConfigurationManager/10.0.0-preview.5.25277.114": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-bW2vrKvJwDxvb1d5Zo/3RCee0W/ZNXFfAvmmIFj2h65lNjArIH1+Eb3yJtjgiB4I4ftiy+YGGkOxn91JdCGURg==",
|
||||||
|
"path": "system.configuration.configurationmanager/10.0.0-preview.5.25277.114",
|
||||||
|
"hashPath": "system.configuration.configurationmanager.10.0.0-preview.5.25277.114.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Diagnostics.EventLog/10.0.0-preview.5.25277.114": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-8F+FJBhZAi1Xl+2quQt2lv3KRkKkmdaGIJ4/dICWs5ARFBNFf3ISKL2d/5Xdgx+fDChzgM5uYY9EUY6jeSPrRQ==",
|
||||||
|
"path": "system.diagnostics.eventlog/10.0.0-preview.5.25277.114",
|
||||||
|
"hashPath": "system.diagnostics.eventlog.10.0.0-preview.5.25277.114.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Diagnostics.PerformanceCounter/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-JUO5/moXgchWZBMBElgmPebZPKCgwW8kY3dFwVJavaNR2ftcc/YjXXGjOaCjly2KBXT7Ld5l/GTkMVzNv41yZA==",
|
||||||
|
"path": "system.diagnostics.performancecounter/4.5.0",
|
||||||
|
"hashPath": "system.diagnostics.performancecounter.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Runtime.CompilerServices.Unsafe/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-YrzNWduCDHhUaSRBxHxL11UkM2fD6y8hITHis4/LbQZ6vj3vdRjoH3IoPWWC9uDXK2wHIqn+b5gv1Np/VKyM1g==",
|
||||||
|
"path": "system.runtime.compilerservices.unsafe/4.5.0",
|
||||||
|
"hashPath": "system.runtime.compilerservices.unsafe.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.AccessControl/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==",
|
||||||
|
"path": "system.security.accesscontrol/4.5.0",
|
||||||
|
"hashPath": "system.security.accesscontrol.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Cryptography.ProtectedData/10.0.0-preview.5.25277.114": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-iYbmLzXaJUwXHvT/MtFW8zSP8qQHCvlvz9dWGun5wb6v9b0gF6M76uL4V4hHlCtTjUJiPOVL+tZ6mxJBStHMFw==",
|
||||||
|
"path": "system.security.cryptography.protecteddata/10.0.0-preview.5.25277.114",
|
||||||
|
"hashPath": "system.security.cryptography.protecteddata.10.0.0-preview.5.25277.114.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Security.Principal.Windows/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==",
|
||||||
|
"path": "system.security.principal.windows/4.5.0",
|
||||||
|
"hashPath": "system.security.principal.windows.4.5.0.nupkg.sha512"
|
||||||
|
},
|
||||||
|
"System.Text.Encoding.CodePages/4.5.0": {
|
||||||
|
"type": "package",
|
||||||
|
"serviceable": true,
|
||||||
|
"sha512": "sha512-S0wEUiKcLvRlkFUXca8uio1UQ5bYQzYgOmOKtCqaBQC3GR9AJjh43otcM32IGsAyvadFTaAMw9Irm6dS4Evfng==",
|
||||||
|
"path": "system.text.encoding.codepages/4.5.0",
|
||||||
|
"hashPath": "system.text.encoding.codepages.4.5.0.nupkg.sha512"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -0,0 +1,45 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<section name="ConnectionManagerDatabaseServers" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="SourceFiles" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="settings" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||||
|
</startup>
|
||||||
|
<settings>
|
||||||
|
<add key="backupPath" value="C:\Prometheus\backup" />
|
||||||
|
<add key="applicationPath" value="C:\Prometheus\STO\" />
|
||||||
|
</settings>
|
||||||
|
<SourceFiles>
|
||||||
|
<!--
|
||||||
|
Example:
|
||||||
|
<add key="Name of the target" value="path of the target" />
|
||||||
|
<add key="api-gateway.xml" value="api-gateway\api-gateway.xml" />
|
||||||
|
|
||||||
|
we can even use different names, mostly for multiple HTML folder
|
||||||
|
<add key="admin-static-nginx_release" value="C:\Prometheus\WebERP\nginx-1.23.0-Admin\html" />
|
||||||
|
-->
|
||||||
|
<add key="DashboardsWorker.Api.exe" value="DashboardsWorker.Api.exe" />
|
||||||
|
<add key="appsettings.json" value="appsettings.json" />
|
||||||
|
<add key="api-gateway.xml" value="api-gateway\api-gateway.xml" />
|
||||||
|
<add key="api-gateway.jar" value="api-gateway\api-gateway.jar" />
|
||||||
|
<add key="application-routes.ymlSHUNT" value="api-gateway\application-routes.yml" />
|
||||||
|
<add key="frontend.exe" value="frontend.exe" />
|
||||||
|
<add key="PrimaveraWorker.Api.exe" value="PrimaveraWorker.Api.exe" />
|
||||||
|
<add key="PrimaveraWorker.Service.dll.config.orig" value="PrimaveraWorker.Service.dll.config.orig" />
|
||||||
|
<add key="NuGet.config" value="NuGet.config" />
|
||||||
|
<add key="ReportsWorker.Api.exe" value="ReportsWorker.Api.exe" />
|
||||||
|
<add key="SapWorker.Api.exe" value="SapWorker.Api.exe" />
|
||||||
|
<add key="files" value="files" />
|
||||||
|
<add key="filesexport" value="files" />
|
||||||
|
<!-- <add key="TurnaroundService.Api.exe" value="TurnaroundService.Api.exe" />-->
|
||||||
|
</SourceFiles>
|
||||||
|
<ConnectionManagerDatabaseServers>
|
||||||
|
<add key="localhost" value="localhost" />
|
||||||
|
<add key="Dev" value="Dev.MyDomain.local" />
|
||||||
|
<add key="Test" value="Test.MyDomain.local" />
|
||||||
|
<add key="Live" value="Prod.MyDomain.com" />
|
||||||
|
</ConnectionManagerDatabaseServers>
|
||||||
|
</configuration>
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net8.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "8.0.0"
|
||||||
|
},
|
||||||
|
"configProperties": {
|
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<section name="ConnectionManagerDatabaseServers" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="SourceFiles" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
<section name="settings" type="System.Configuration.NameValueSectionHandler" />
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||||
|
</startup>
|
||||||
|
<settings>
|
||||||
|
<add key="backupPath" value="C:\Prometheus\backup" />
|
||||||
|
<add key="applicationPath" value="C:\Prometheus\STO\" />
|
||||||
|
</settings>
|
||||||
|
<SourceFiles>
|
||||||
|
<!--
|
||||||
|
Example:
|
||||||
|
<add key="Name of the target" value="path of the target" />
|
||||||
|
<add key="api-gateway.xml" value="api-gateway\api-gateway.xml" />
|
||||||
|
-->
|
||||||
|
<add key="DashboardsWorker.Api.exe" value="DashboardsWorker.Api.exe" />
|
||||||
|
<add key="appsettings.json" value="appsettings.json" />
|
||||||
|
<add key="api-gateway.xml" value="api-gateway\api-gateway.xml" />
|
||||||
|
<add key="api-gateway.jar" value="api-gateway\api-gateway.jar" />
|
||||||
|
<add key="application-routes.ymlSHUNT" value="api-gateway\application-routes.yml" />
|
||||||
|
<add key="frontend.exe" value="frontend.exe" />
|
||||||
|
<add key="PrimaveraWorker.Api.exe" value="PrimaveraWorker.Api.exe" />
|
||||||
|
<add key="PrimaveraWorker.Service.dll.config.orig" value="PrimaveraWorker.Service.dll.config.orig" />
|
||||||
|
<add key="NuGet.config" value="NuGet.config" />
|
||||||
|
<add key="ReportsWorker.Api.exe" value="ReportsWorker.Api.exe" />
|
||||||
|
<add key="SapWorker.Api.exe" value="SapWorker.Api.exe" />
|
||||||
|
<add key="files" value="files" />
|
||||||
|
<!-- <add key="TurnaroundService.Api.exe" value="TurnaroundService.Api.exe" />-->
|
||||||
|
</SourceFiles>
|
||||||
|
<ConnectionManagerDatabaseServers>
|
||||||
|
<add key="localhost" value="localhost" />
|
||||||
|
<add key="Dev" value="Dev.MyDomain.local" />
|
||||||
|
<add key="Test" value="Test.MyDomain.local" />
|
||||||
|
<add key="Live" value="Prod.MyDomain.com" />
|
||||||
|
</ConnectionManagerDatabaseServers>
|
||||||
|
</configuration>
|
||||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net8.0",
|
||||||
|
"includedFrameworks": [
|
||||||
|
{
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "8.0.8"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configProperties": {
|
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user