Merge branch 'master' of http://git.dd:3000/AppStd/Modules
This commit is contained in:
commit
3a1678e742
@ -146,4 +146,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>powershell.exe -command "& { &'$(SolutionDir)copy-binary.ps1' '$(TargetPath)' '$(TargetFileName)' '$(ConfigurationName)' }"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user