-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8badf8a
commit ca86ec9
Showing
313 changed files
with
4,587 additions
and
3,600 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[Reflection.Assembly]::LoadWithPartialName("System.Xml") | Out-Null | ||
[Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq") | Out-Null | ||
[System.Xml.Linq.XNamespace]$ns1 = "urn:schemas-microsoft-com:asm.v1" | ||
|
||
$currentPath = (Get-Item -Path ".\").FullName | ||
$orchardWebConfigFullPath = $currentPath+"\src\Orchard.Web\Web.Config" | ||
[XML] $orchardWebConfig = Get-Content ($orchardWebConfigFullPath) | ||
$configFiles = Get-ChildItem -Path ($currentPath +"\src\") -Filter web.config -Recurse -ErrorAction SilentlyContinue -Force | ||
foreach ($configFile in $configFiles) { | ||
$configFullPath = $configFile.FullName | ||
Write-Host "Processing $configFullPath ..." | ||
|
||
if ($configFullPath.ToLower().EndsWith("\orchard.web\web.config")) { #skip orchard.web config files | ||
continue | ||
} | ||
[XML] $projectWebConfig = Get-Content ($configFullPath) | ||
$elements = $projectWebConfig.configuration.runtime.assemblyBinding.dependentAssembly | ||
foreach ($element in $elements){ | ||
Write-Host "Checking" $element.assemblyIdentity.name | ||
$hasBinding = $orchardWebConfig.configuration.runtime.assemblyBinding.dependentAssembly.assemblyIdentity.Where({ $_.name -eq $element.assemblyIdentity.name -and $_.publicKeyToken -eq $element.assemblyIdentity.publicKeyToken -and $_.culture -eq $element.assemblyIdentity.culture }, 'First').Count -gt 0 | ||
if (-not $hasBinding){ | ||
# add the node in $webConfig | ||
Write-Host "Adding" $element.assemblyIdentity.name | ||
$newNode = $orchardWebConfig.ImportNode($element, $true); | ||
$orchardWebConfig.configuration.runtime.assemblyBinding.AppendChild($newNode) | ||
Write-Host "Added " $element.assemblyIdentity.name | ||
} else { | ||
Write-Host "Skipped" $element.assemblyIdentity.name | ||
} | ||
} | ||
Write-Host "Processed $configFullPath ..." | ||
} | ||
|
||
$orchardWebConfig.Save($orchardWebConfigFullPath) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net452" /> | ||
<package id="Microsoft.Data.Edm" version="5.8.4" targetFramework="net452" /> | ||
<package id="Microsoft.Data.OData" version="5.8.4" targetFramework="net452" /> | ||
<package id="Microsoft.Data.Services.Client" version="5.8.4" targetFramework="net452" /> | ||
<package id="Moq" version="4.2.1510.2205" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net452" /> | ||
<package id="NUnit" version="2.5.10.11092" targetFramework="net452" /> | ||
<package id="System.Spatial" version="5.8.4" targetFramework="net452" /> | ||
<package id="WindowsAzure.Storage" version="5.0.2" targetFramework="net452" /> | ||
<package id="log4net" version="2.0.12" targetFramework="net48" /> | ||
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net48" /> | ||
<package id="Microsoft.Data.Edm" version="5.8.4" targetFramework="net48" /> | ||
<package id="Microsoft.Data.OData" version="5.8.4" targetFramework="net48" /> | ||
<package id="Microsoft.Data.Services.Client" version="5.8.4" targetFramework="net48" /> | ||
<package id="Moq" version="4.2.1510.2205" targetFramework="net48" /> | ||
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" /> | ||
<package id="NUnit" version="2.5.10.11092" targetFramework="net48" /> | ||
<package id="System.Spatial" version="5.8.4" targetFramework="net48" /> | ||
<package id="WindowsAzure.Storage" version="5.0.2" targetFramework="net48" /> | ||
</packages> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Autofac" version="3.5.2" targetFramework="net452" /> | ||
<package id="FluentNHibernate" version="2.0.3.0" targetFramework="net452" /> | ||
<package id="Iesi.Collections" version="4.0.1.4000" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" /> | ||
<package id="Moq" version="4.2.1510.2205" targetFramework="net452" /> | ||
<package id="NHibernate" version="4.0.1.4000" targetFramework="net452" /> | ||
<package id="NUnit" version="2.5.10.11092" targetFramework="net452" /> | ||
<package id="Autofac" version="3.5.2" targetFramework="net48" /> | ||
<package id="FluentNHibernate" version="2.0.3.0" targetFramework="net48" /> | ||
<package id="Iesi.Collections" version="4.0.1.4000" targetFramework="net48" /> | ||
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net48" /> | ||
<package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net48" /> | ||
<package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net48" /> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net48" /> | ||
<package id="Moq" version="4.2.1510.2205" targetFramework="net48" /> | ||
<package id="NHibernate" version="4.0.1.4000" targetFramework="net48" /> | ||
<package id="NUnit" version="2.5.10.11092" targetFramework="net48" /> | ||
</packages> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NUnit" version="2.5.10.11092" targetFramework="net452" /> | ||
<package id="SpecFlow" version="1.9.0" targetFramework="net452" /> | ||
</packages> | ||
<package id="NUnit" version="2.5.10.11092" targetFramework="net48" /> | ||
<package id="SpecFlow" version="1.9.0" targetFramework="net48" /> | ||
</packages> |
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
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
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
Oops, something went wrong.