init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
$solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
|
||||
$path = $installPath.Replace($solutionDir, "`$(SolutionDir)")
|
||||
|
||||
$NativeAssembliesDir = Join-Path $path "lib\native"
|
||||
$x86 = $(Join-Path $NativeAssembliesDir "bin32\*.*")
|
||||
$x64 = $(Join-Path $NativeAssembliesDir "bin64\*.*")
|
||||
|
||||
$HDFPostBuildCmd = "
|
||||
if not exist `"`$(TargetDir)bin32`" md `"`$(TargetDir)bin32`"
|
||||
xcopy /s /y `"$x86`" `"`$(TargetDir)bin32`"
|
||||
if not exist `"`$(TargetDir)bin64`" md `"`$(TargetDir)bin64`"
|
||||
xcopy /s /y `"$x64`" `"`$(TargetDir)bin64`""
|
||||
@@ -0,0 +1,11 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
. (Join-Path $toolsPath "GetHDFPostBuildCmd.ps1")
|
||||
|
||||
# Get the current Post Build Event cmd
|
||||
$currentPostBuildCmd = $project.Properties.Item("PostBuildEvent").Value
|
||||
|
||||
# Append our post build command if it's not already there
|
||||
if (!$currentPostBuildCmd.Contains($HDFPostBuildCmd)) {
|
||||
$project.Properties.Item("PostBuildEvent").Value += $HDFPostBuildCmd
|
||||
}
|
||||
Reference in New Issue
Block a user