update pacchetti + refresh configurazioni
This commit is contained in:
Binary file not shown.
@@ -693,7 +693,6 @@
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\Steamware.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\Donati.pubxml" />
|
||||
<Content Include="Content\Style.less" />
|
||||
<Content Include="scripts\jquery-2.1.4.min.map" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<NameOfLastUsedPublishProfile>OVH-Demo</NameOfLastUsedPublishProfile>
|
||||
<NameOfLastUsedPublishProfile>IIS01</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
||||
@@ -7,7 +7,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>MSDeploy</WebPublishMethod>
|
||||
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
|
||||
<LastUsedBuildConfiguration>MoonProDemo-OVH</LastUsedBuildConfiguration>
|
||||
<LastUsedBuildConfiguration>OVH-Demo</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>Package</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Steamware</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<DesktopBuildPackageLocation>C:\Users\samuele\Documents\Visual Studio 2012\Projects\MoonPro\MoonPro\ReleaseClienti\Steamware\MoonPro.zip</DesktopBuildPackageLocation>
|
||||
<PackageAsSingleFile>true</PackageAsSingleFile>
|
||||
<DeployIisAppPath>Default Web Site/MoonPro</DeployIisAppPath>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="MapoDb.Properties.Settings.MoonProConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="Data Source=localhost\SQLExpress;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=viadante16" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\MapoDb.Properties.Settings.MoonProConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
<ObjectGroup Name="MoonProConnectionString" Order="2" Enabled="False">
|
||||
<Destination Path="Data Source=localhost\SQLExpress;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=viadante16" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\MoonProConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)MapoDb.Properties.Settings.MoonProConnectionString-Web.config Connection String">
|
||||
<ParameterValue>Data Source=localhost\SQLExpress;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=viadante16</ParameterValue>
|
||||
</MSDeployParameterValue>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)MoonProConnectionString-Web.config Connection String">
|
||||
<ParameterValue>Data Source=localhost\SQLExpress;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=viadante16</ParameterValue>
|
||||
</MSDeployParameterValue>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
File diff suppressed because it is too large
Load Diff
+9210
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+117
@@ -0,0 +1,117 @@
|
||||
function Get-Checksum($file) {
|
||||
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
|
||||
|
||||
$fileInfo = Get-Item $file
|
||||
trap { ;
|
||||
continue } $stream = $fileInfo.OpenRead()
|
||||
if ($? -eq $false) {
|
||||
# Couldn't open file for reading
|
||||
return $null
|
||||
}
|
||||
|
||||
$bytes = $cryptoProvider.ComputeHash($stream)
|
||||
$checksum = ''
|
||||
foreach ($byte in $bytes) {
|
||||
$checksum += $byte.ToString('x2')
|
||||
}
|
||||
|
||||
$stream.Close() | Out-Null
|
||||
|
||||
return $checksum
|
||||
}
|
||||
|
||||
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
|
||||
try {
|
||||
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
|
||||
}
|
||||
catch {
|
||||
# _references.js file not found
|
||||
return
|
||||
}
|
||||
|
||||
if ($referencesFileProjectItem -eq $null) {
|
||||
# _references.js file not found
|
||||
return
|
||||
}
|
||||
|
||||
$referencesFilePath = $referencesFileProjectItem.FileNames(1)
|
||||
$referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
|
||||
|
||||
if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 0) {
|
||||
# File has no existing matching reference line
|
||||
# Add the full reference line to the beginning of the file
|
||||
"/// <reference path=""$newFileName"" />" | Add-Content $referencesTempFilePath -Encoding UTF8
|
||||
Get-Content $referencesFilePath | Add-Content $referencesTempFilePath
|
||||
}
|
||||
else {
|
||||
# Loop through file and replace old file name with new file name
|
||||
Get-Content $referencesFilePath | ForEach-Object { $_ -replace $fileNamePattern, $newFileName } > $referencesTempFilePath
|
||||
}
|
||||
|
||||
# Copy over the new _references.js file
|
||||
Copy-Item $referencesTempFilePath $referencesFilePath -Force
|
||||
Remove-Item $referencesTempFilePath -Force
|
||||
}
|
||||
|
||||
function Remove-Reference($scriptsFolderProjectItem, $fileNamePattern) {
|
||||
try {
|
||||
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
|
||||
}
|
||||
catch {
|
||||
# _references.js file not found
|
||||
return
|
||||
}
|
||||
|
||||
if ($referencesFileProjectItem -eq $null) {
|
||||
return
|
||||
}
|
||||
|
||||
$referencesFilePath = $referencesFileProjectItem.FileNames(1)
|
||||
$referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
|
||||
|
||||
if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 1) {
|
||||
# Delete the line referencing the file
|
||||
Get-Content $referencesFilePath | ForEach-Object { if (-not ($_ -match $fileNamePattern)) { $_ } } > $referencesTempFilePath
|
||||
|
||||
# Copy over the new _references.js file
|
||||
Copy-Item $referencesTempFilePath $referencesFilePath -Force
|
||||
Remove-Item $referencesTempFilePath -Force
|
||||
}
|
||||
}
|
||||
|
||||
function Delete-ProjectItem($item) {
|
||||
$itemDeleted = $false
|
||||
for ($1=1; $i -le 5; $i++) {
|
||||
try {
|
||||
$item.Delete()
|
||||
$itemDeleted = $true
|
||||
break
|
||||
}
|
||||
catch {
|
||||
# Try again in 200ms
|
||||
[System.Threading.Thread]::Sleep(200)
|
||||
}
|
||||
}
|
||||
if ($itemDeleted -eq $false) {
|
||||
throw "Unable to delete project item after five attempts."
|
||||
}
|
||||
}
|
||||
|
||||
# Extract the version number from the jquery file in the package's content\scripts folder
|
||||
$packageScriptsFolder = Join-Path $installPath Content\Scripts
|
||||
$jqueryFileName = Join-Path $packageScriptsFolder "jquery-*.js" | Get-ChildItem -Exclude "*.min.js","*-vsdoc.js" | Split-Path -Leaf
|
||||
$jqueryFileNameRegEx = "jquery-((?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)).js"
|
||||
$jqueryFileName -match $jqueryFileNameRegEx
|
||||
$ver = $matches[1]
|
||||
|
||||
$intelliSenseFileName = "jquery-$ver.intellisense.js"
|
||||
|
||||
# Get the project item for the scripts folder
|
||||
try {
|
||||
$scriptsFolderProjectItem = $project.ProjectItems.Item("Scripts")
|
||||
$projectScriptsFolderPath = $scriptsFolderProjectItem.FileNames(1)
|
||||
}
|
||||
catch {
|
||||
# No Scripts folder
|
||||
Write-Host "No scripts folder found"
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
. (Join-Path $toolsPath common.ps1)
|
||||
|
||||
# VS 11 and above supports the new intellisense JS files
|
||||
$vsVersion = [System.Version]::Parse($dte.Version)
|
||||
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
|
||||
|
||||
if (-not $supportsJsIntelliSenseFile) {
|
||||
$displayVersion = $vsVersion.Major
|
||||
Write-Host "IntelliSense JS files are not supported by your version of Visual Studio: $displayVersion"
|
||||
exit
|
||||
}
|
||||
|
||||
if ($scriptsFolderProjectItem -eq $null) {
|
||||
# No Scripts folder
|
||||
Write-Host "No Scripts folder found"
|
||||
exit
|
||||
}
|
||||
|
||||
# Delete the vsdoc file from the project
|
||||
try {
|
||||
$vsDocProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("jquery-$ver-vsdoc.js")
|
||||
Delete-ProjectItem $vsDocProjectItem
|
||||
}
|
||||
catch {
|
||||
Write-Host "Error deleting vsdoc file: " + $_.Exception -ForegroundColor Red
|
||||
exit
|
||||
}
|
||||
|
||||
# Copy the intellisense file to the project from the tools folder
|
||||
$intelliSenseFileSourcePath = Join-Path $toolsPath $intelliSenseFileName
|
||||
try {
|
||||
$scriptsFolderProjectItem.ProjectItems.AddFromFileCopy($intelliSenseFileSourcePath)
|
||||
}
|
||||
catch {
|
||||
# This will throw if the file already exists, so we need to catch here
|
||||
}
|
||||
|
||||
# Update the _references.js file
|
||||
AddOrUpdate-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx $jqueryFileName
|
||||
File diff suppressed because it is too large
Load Diff
+41
@@ -0,0 +1,41 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
. (Join-Path $toolsPath common.ps1)
|
||||
|
||||
# Determine the file paths
|
||||
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
|
||||
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
|
||||
|
||||
if (Test-Path $projectIntelliSenseFilePath) {
|
||||
if ((Get-Checksum $projectIntelliSenseFilePath) -eq (Get-Checksum $origIntelliSenseFilePath)) {
|
||||
# The intellisense file in the project matches the file in the tools folder, delete it
|
||||
|
||||
if ($scriptsFolderProjectItem -eq $null) {
|
||||
# No Scripts folder
|
||||
exit
|
||||
}
|
||||
|
||||
try {
|
||||
# Get the project item for the intellisense file
|
||||
$intelliSenseFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($intelliSenseFileName)
|
||||
}
|
||||
catch {
|
||||
# The item wasn't found
|
||||
exit
|
||||
}
|
||||
|
||||
# Delete the project item
|
||||
Delete-ProjectItem $intelliSenseFileProjectItem
|
||||
}
|
||||
else {
|
||||
$projectScriptsFolderLeaf = Split-Path $projectScriptsFolderPath -Leaf
|
||||
Write-Host "Skipping '$projectScriptsFolderLeaf\$intelliSenseFileName' because it was modified." -ForegroundColor Magenta
|
||||
}
|
||||
}
|
||||
else {
|
||||
# The intellisense file was not found in project
|
||||
Write-Host "The intellisense file was not found in project at path $projectIntelliSenseFilePath"
|
||||
}
|
||||
|
||||
# Update the _references.js file
|
||||
Remove-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user