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 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)' }" +``` 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 +} +