migrate from perforce
This commit is contained in:
40
packages/Bridge.Core.17.6.0/tools/install.ps1
vendored
Normal file
40
packages/Bridge.Core.17.6.0/tools/install.ps1
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
#First some common params, delivered by the nuget package installer
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
Write-Host ("Bridge.NET is configuring " + $project.ProjectName)
|
||||
|
||||
# Remove all references of object
|
||||
ForEach ($item in $project.Object.References)
|
||||
{
|
||||
if ($item.Identity.ToLower().StartsWith("system") -or $item.Identity.ToLower().StartsWith("microsoft"))
|
||||
{
|
||||
$name = $item.Identity
|
||||
Try
|
||||
{
|
||||
$item.Remove()
|
||||
Write-Host ("Removed Reference to " + $name)
|
||||
}
|
||||
Catch
|
||||
{
|
||||
Write-Host ("Failed to remove Reference to " + $name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Sets the NoStdLib setting to True for every project configuration.
|
||||
$project.ConfigurationManager | ForEach-Object {
|
||||
|
||||
# Check for <NoStdLib>
|
||||
$nostdlib_setting = $_.Properties.Item("NoStdLib")
|
||||
|
||||
if (-not $nostdlib_setting.Value)
|
||||
{
|
||||
$nostdlib_setting.Value = $true
|
||||
}
|
||||
|
||||
|
||||
# Check for AddAdditionalExplicitAssemblyReferences?
|
||||
# Check for AdditionalExplicitAssemblyReferences?
|
||||
}
|
||||
|
||||
Write-Host ("Bridge.NET installation was successful")
|
||||
Reference in New Issue
Block a user