Compare commits
4 Commits
a5b9579b79
...
c3fccc3c20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3fccc3c20 | ||
|
|
97c1fb4803 | ||
|
|
808cdea86a | ||
|
|
c048b6ad6b |
@@ -146,4 +146,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>powershell.exe -command "& { &'$(SolutionDir)copy-binary.ps1' '$(TargetPath)' '$(TargetFileName)' '$(ConfigurationName)' }"</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
11
README.md
Normal file
11
README.md
Normal file
@@ -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)' }"
|
||||||
|
```
|
||||||
11
copy-binary.ps1
Normal file
11
copy-binary.ps1
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user