From c048b6ad6be5ada2bc78228575e7d7c5c774543f Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 26 Jan 2024 10:41:06 +0100 Subject: [PATCH 1/3] Add README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..95fcf8b2 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Modules + +Diese Projektmappe enthält die Grundfunktionen für alle Produkte in Form von Modulen. + +## Deploy Skript + +Das Skript `copy-binary.ps1` liegt im Hauptverzeichnis und kann über den folgenden Befehl aufgerufen werden. Der Befehl wird pro Projekt in den Projekteinstellungen unter `Kompilieren > Buildereignisse > Postbuildereignis` eingetragen und sorgt dafür, dass die Assembly des Projekts in ein Deploy Verzeichnis kopiert wird. + +```cmd +powershell.exe -command "& { &'$(SolutionDir)copy-binary.ps1' '$(TargetPath)' '$(TargetFileName)' '$(ConfigurationName)' }" +``` From 808cdea86a4d642adde47a236aa5b5a65ab4bc7b Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 26 Jan 2024 10:41:18 +0100 Subject: [PATCH 2/3] Add copy-binary script --- copy-binary.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 copy-binary.ps1 diff --git a/copy-binary.ps1 b/copy-binary.ps1 new file mode 100644 index 00000000..ae76d6f5 --- /dev/null +++ b/copy-binary.ps1 @@ -0,0 +1,11 @@ +param( + [String]$SourcePath, + [String]$FileName, + [String]$Configuration +) + +if ($Configuration -eq "Release") { + $DestinationPath = "P:\Install .Net\0 DD - Bibliotheken\Modules\$FileName" + Copy-Item $SourcePath -Destination $DestinationPath +} + From 97c1fb4803ef21e1f609b6ed514b05e414a9b38b Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 26 Jan 2024 10:41:28 +0100 Subject: [PATCH 3/3] Base: Add deploy script --- Base/Base.vbproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Base/Base.vbproj b/Base/Base.vbproj index ad3ecfe1..fbc6f14d 100644 --- a/Base/Base.vbproj +++ b/Base/Base.vbproj @@ -146,4 +146,7 @@ + + powershell.exe -command "& { &'$(SolutionDir)copy-binary.ps1' '$(TargetPath)' '$(TargetFileName)' '$(ConfigurationName)' }" + \ No newline at end of file