Last active
February 2, 2017 18:21
-
-
Save GeorgDangl/d694a2d86593d989eb6474d4e64cb6fc to your computer and use it in GitHub Desktop.
Copy xBim Geometry Interop Dlls in the new project format in .Net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$xBimGeometryPackages = Join-Path -Path $env:USERPROFILE -ChildPath "\.nuget\packages\Xbim.Geometry" | |
$latestxBimGeometryPackage32 = Join-Path -Path ((Get-ChildItem -Path $xBimGeometryPackages | Sort-Object Fullname -Descending)[0].FullName) -ChildPath "build\x86\Xbim.Geometry.Engine32.dll" | |
$latestxBimGeometryPackage64 = Join-Path -Path ((Get-ChildItem -Path $xBimGeometryPackages | Sort-Object Fullname -Descending)[0].FullName) -ChildPath "build\x64\Xbim.Geometry.Engine64.dll" | |
if (!(Test-Path "$PSScriptRoot\Dependencies")){ | |
New-Item -ItemType Directory -Path "$PSScriptRoot\Dependencies" | |
} | |
Copy-Item -Path $latestxBimGeometryPackage32 -Destination "$PSScriptRoot\Dependencies\Xbim.Geometry.Engine32.dll" | |
Copy-Item -Path $latestxBimGeometryPackage64 -Destination "$PSScriptRoot\Dependencies\Xbim.Geometry.Engine64.dll" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"Xbim.Essentials": "4.0.27", | |
"Xbim.Geometry": "4.0.11" | |
}, | |
"frameworks": { | |
"net461": { | |
"imports": ["netstandard1.6"] | |
} | |
}, | |
"buildOptions": { | |
"copyToOutput": { | |
"mappings": { | |
"Xbim.Geometry.Engine32.dll": "Dependencies/Xbim.Geometry.Engine32.dll", | |
"Xbim.Geometry.Engine64.dll": "Dependencies/Xbim.Geometry.Engine64.dll" | |
} | |
} | |
}, | |
"publishOptions": { | |
"mappings": { | |
"Xbim.Geometry.Engine32.dll": "Dependencies/Xbim.Geometry.Engine32.dll", | |
"Xbim.Geometry.Engine64.dll": "Dependencies/Xbim.Geometry.Engine64.dll" | |
} | |
}, | |
"scripts": { | |
"precompile": "Powershell -executionpolicy remotesigned -File copyGeometryInteropDlls.ps1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment