Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
2602fb6b
Commit
2602fb6b
authored
Jul 11, 2017
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert experimental build script changes
parent
fa24180b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
default.ps1
.build/default.ps1
+9
-10
No files found.
.build/default.ps1
View file @
2602fb6b
...
@@ -31,18 +31,17 @@ $NuGet = Join-Path $SolutionRoot ".nuget\nuget.exe"
...
@@ -31,18 +31,17 @@ $NuGet = Join-Path $SolutionRoot ".nuget\nuget.exe"
$MSBuild14
=
"
${
env
:ProgramFiles
(x86)
}
\MSBuild\14.0\Bin\msbuild.exe"
$MSBuild14
=
"
${
env
:ProgramFiles
(x86)
}
\MSBuild\14.0\Bin\msbuild.exe"
$MSBuild
=
&
$Here
\vswhere.exe -latest -products
*
-requires Microsoft.Component.MSBuild -property installationPath
$MSBuild
=
"
${
env
:ProgramFiles
(x86)
}
\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe"
if
(
$MSBuild
)
{
$MSBuild
-replace
' '
,
'` '
$MSBuild
=
join-path
$MSBuild
'MSBuild\15.0\Bin\MSBuild.exe'
}
FormatTaskName
((
"-"
*
25
)
+
"[{0}]"
+
(
"-"
*
25
))
FormatTaskName
((
"-"
*
25
)
+
"[{0}]"
+
(
"-"
*
25
))
Task default -depends Clean, Build, Package
Task default -depends Clean, Build, Package
Task Build
{
Task Build
{
exec
{
.
$MSBuild14
$SolutionFile14
/t:Build /v:normal /p:Configuration
=
$Configuration
}
&
$MSBuild
$SolutionFile
/t:Build /v:normal /p:Configuration
=
$Configuration
exec
{
.
$MSBuild
$SolutionFile
/t:Build /v:normal /p:Configuration
=
$Configuration
}
}
}
Task Package -depends Build
{
Task Package -depends Build
{
...
@@ -51,17 +50,17 @@ Task Package -depends Build {
...
@@ -51,17 +50,17 @@ Task Package -depends Build {
Task Clean -depends Install-BuildTools
{
Task Clean -depends Install-BuildTools
{
Get-ChildItem
.\ -include bin,obj -Recurse |
foreach
(
$_
)
{
Remove-Item
$_
.fullname -Force -Recurse
}
Get-ChildItem
.\ -include bin,obj -Recurse |
foreach
(
$_
)
{
Remove-Item
$_
.fullname -Force -Recurse
}
exec
{
.
$MSBuild14
$SolutionFile14
/t:Clean /v:quiet
}
&
$MSBuild
$SolutionFile
/t:Clean /v:quiet
exec
{
.
$MSBuild
$SolutionFile
/t:Clean /v:quiet
}
}
}
Task Install-MSBuild
{
Task Install-MSBuild
{
if
(!(
Test-Path
$MSBuild14
)
-Or
!(
Test-Path
$MSBuild
)
)
if
(!(
Test-Path
$MSBuild14
))
{
{
cinst microsoft-build-tools -y
cinst microsoft-build-tools -y
}
}
}
}
Task Install-BuildTools -depends Install-MSBuild
Task Install-BuildTools -depends Install-MSBuild
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment