@@ -68,20 +68,20 @@ Write-Host "MSBUILD = $MSBuild"
6868$SolutionInfoPath = Join-Path - Path $SolutionRoot - ChildPath " SolutionInfo.cs"
6969(gc - Path $SolutionInfoPath ) `
7070-replace " (?<=Version\(`" )[.\d]*(?=`" \))" , $ReleaseVersionNumber |
71- sc - Path $SolutionInfoPath - Encoding UTF8
71+ Set-Content - Path $SolutionInfoPath - Encoding UTF8
7272(gc - Path $SolutionInfoPath ) `
7373-replace " (?<=AssemblyInformationalVersion\(`" )[.\w-]*(?=`" \))" , " $ReleaseVersionNumber$PreReleaseName " |
74- sc - Path $SolutionInfoPath - Encoding UTF8
74+ Set-Content - Path $SolutionInfoPath - Encoding UTF8
7575# Set the copyright
7676(gc - Path $SolutionInfoPath ) `
7777-replace " (?<=AssemblyCopyright\(`" .*?)\d\d\d\d(?=`" \))" , (Get-Date ).year |
78- sc - Path $SolutionInfoPath - Encoding UTF8
78+ Set-Content - Path $SolutionInfoPath - Encoding UTF8
7979
8080# Build the solution in release mode (in both 4.0 and 4.5 and for MVC5)
8181$SolutionPath = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.dnn.sln"
8282
8383# clean sln for all deploys
84- & $MSBuild " $SolutionPath " / p:Configuration= Release- Net45 / maxcpucount / t:Clean
84+ & $MSBuild " $SolutionPath " / p:Configuration= Release- Net48 / maxcpucount / t:Clean
8585if (-not $? )
8686{
8787throw " The MSBuild process returned an error code."
@@ -91,7 +91,7 @@ if (-not $?)
9191{
9292throw " The MSBuild process returned an error code."
9393}
94- & $MSBuild " $SolutionPath " / p:Configuration= Release- Net45 / maxcpucount / t:Clean
94+ & $MSBuild " $SolutionPath " / p:Configuration= Release- Net48 / maxcpucount / t:Clean
9595if (-not $? )
9696{
9797throw " The MSBuild process returned an error code."
@@ -109,7 +109,7 @@ Write-Host "Restoring nuget packages..."
109109# build for all deploys
110110
111111# for net 3.5
112- & $MSBuild " $SolutionPath " / p:Configuration= Release- Net45 / maxcpucount
112+ & $MSBuild " $SolutionPath " / p:Configuration= Release- Net48 / maxcpucount
113113if (-not $? )
114114{
115115throw " The MSBuild process returned an error code."
@@ -120,8 +120,8 @@ if (-not $?)
120120{
121121throw " The MSBuild process returned an error code."
122122}
123- # for net 4.5
124- & $MSBuild " $SolutionPath " / p:Configuration= Release- Net45 / maxcpucount
123+ # for net 4.8
124+ & $MSBuild " $SolutionPath " / p:Configuration= Release- Net48 / maxcpucount
125125if (-not $? )
126126{
127127throw " The MSBuild process returned an error code."
@@ -152,23 +152,23 @@ New-Item $TypeScriptFolder -Type directory
152152
153153$include = @ (' ClientDependency.Core.dll' , ' ClientDependency.Core.pdb' )
154154# Need to build to specific .Net version folders
155- $CoreBinFolderNet45 = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Core\bin\Release-Net45 " ;
156- $CoreFolderNet45 = Join-Path - Path $CoreFolder - ChildPath " net45 " ;
155+ $CoreBinFolderNet48 = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Core\bin\Release-Net48 " ;
156+ $CoreFolderNet48 = Join-Path - Path $CoreFolder - ChildPath " net48 " ;
157157
158- New-Item $CoreFolderNet45 - Type directory
159- Copy-Item " $CoreBinFolderNet45 \*.*" - Destination $CoreFolderNet45 - Include $include
158+ New-Item $CoreFolderNet48 - Type directory
159+ Copy-Item " $CoreBinFolderNet48 \*.*" - Destination $CoreFolderNet48 - Include $include
160160
161161$include = @ (' ClientDependency.Core.Mvc.dll' , ' ClientDependency.Core.Mvc.pdb' )
162162# Need to build to specific .Net version folders
163- $MvcBinFolderNet45 = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Mvc\bin\Release-Net45 " ;
164- $MvcFolderNet45 = Join-Path - Path $MvcFolder - ChildPath " net45 " ;
165- New-Item $MvcFolderNet45 - Type directory
166- # Copy-Item "$MvcBinFolderNet45 \*.*" -Destination $MvcFolderNet45 -Include $include
163+ $MvcBinFolderNet48 = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Mvc\bin\Release-Net48 " ;
164+ $MvcFolderNet48 = Join-Path - Path $MvcFolder - ChildPath " net48 " ;
165+ New-Item $MvcFolderNet48 - Type directory
166+ # Copy-Item "$MvcBinFolderNet48 \*.*" -Destination $MvcFolderNet48 -Include $include
167167# need to build mvc5 separately
168- $Mvc5BinFolderNet45 = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Mvc\bin\Release-MVC5" ;
169- $Mvc5FolderNet45 = Join-Path - Path $Mvc5Folder - ChildPath " net45 " ;
170- New-Item $Mvc5FolderNet45 - Type directory
171- # Copy-Item "$Mvc5BinFolderNet45 \*.*" -Destination $Mvc5FolderNet45 -Include $include
168+ $Mvc5BinFolderNet48 = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Mvc\bin\Release-MVC5" ;
169+ $Mvc5FolderNet48 = Join-Path - Path $Mvc5Folder - ChildPath " net48 " ;
170+ New-Item $Mvc5FolderNet48 - Type directory
171+ # Copy-Item "$Mvc5BinFolderNet48 \*.*" -Destination $Mvc5FolderNet48 -Include $include
172172
173173$include = @ (' ClientDependency.Less.dll' , ' ClientDependency.Less.pdb' )
174174$LessBinFolder = Join-Path - Path $SolutionRoot - ChildPath " ClientDependency.Less\bin\Release" ;
0 commit comments