Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
20c18e03
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
20c18e03
编写于
1月 04, 2019
作者:
T
Tomáš Matoušek
提交者:
GitHub
1月 04, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Do not pass /warnaserror to msbuild (#32152)
上级
b6cdb51d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
1 deletion
+17
-1
eng/build.ps1
eng/build.ps1
+7
-1
eng/build.sh
eng/build.sh
+10
-0
未找到文件。
eng/build.ps1
浏览文件 @
20c18e03
...
...
@@ -41,7 +41,7 @@ param (
[
switch
]
$deployExtensions
,
[
switch
]
$prepareMachine
,
[
switch
]
$useGlobalNuGetCache
=
$true
,
[
switch
]
$warnAsError
=
$
tru
e
,
[
switch
]
$warnAsError
=
$
fals
e
,
# Test actions
[
switch
]
$test32
,
...
...
@@ -91,6 +91,7 @@ function Print-Usage() {
Write-Host
" -skipAnalyzers Do not run analyzers during build operations"
Write-Host
" -prepareMachine Prepare machine for CI run, clean up processes after build"
Write-Host
" -useGlobalNuGetCache Use global NuGet cache."
Write-Host
" -warnAsError Treat all warnings as errors"
Write-Host
""
Write-Host
"Command line arguments starting with '/p:' are passed through to MSBuild."
}
...
...
@@ -158,6 +159,10 @@ function BuildSolution() {
# Do not set the property to true explicitly, since that would override value projects might set.
$suppressExtensionDeployment
=
if
(
!
$deployExtensions
)
{
"/p:DeployExtension=false"
}
else
{
""
}
# Setting /p:TreatWarningsAsErrors=true is a workaround for https://github.com/Microsoft/msbuild/issues/3062.
# We don't pass /warnaserror to msbuild ($warnAsError is set to $false by default above), but set
# /p:TreatWarningsAsErrors=true so that compiler reported warnings, other than IDE0055 are treated as errors.
# Warnings reported from other msbuild tasks are not treated as errors for now.
MSBuild
$toolsetBuildProj
`
$bl
`
/p:Configuration
=
$configuration
`
...
...
@@ -177,6 +182,7 @@ function BuildSolution() {
/p:QuietRestore
=
$quietRestore
`
/p:QuietRestoreBinaryLog
=
$binaryLog
`
/p:TestTargetFrameworks
=
$testTargetFrameworks
`
/p:TreatWarningsAsErrors
=
true
`
$suppressExtensionDeployment
`
@
properties
}
...
...
eng/build.sh
浏览文件 @
20c18e03
...
...
@@ -30,6 +30,7 @@ usage()
echo
" --bootstrap Build using a bootstrap compilers"
echo
" --skipAnalyzers Do not run analyzers during build operations"
echo
" --prepareMachine Prepare machine for CI run, clean up processes after build"
echo
" --warnAsError Treat all warnings as errors"
echo
""
echo
"Command line arguments starting with '/p:' are passed through to MSBuild."
}
...
...
@@ -61,6 +62,7 @@ ci=false
bootstrap
=
false
skip_analyzers
=
false
prepare_machine
=
false
warn_as_error
=
false
properties
=
""
docker
=
false
...
...
@@ -125,6 +127,9 @@ while [[ $# > 0 ]]; do
--preparemachine
)
prepare_machine
=
true
;;
--warnaserror
)
warn_as_error
=
true
;;
--docker
)
docker
=
true
shift
...
...
@@ -245,6 +250,10 @@ function BuildSolution {
mono_tool
=
""
fi
# Setting /p:TreatWarningsAsErrors=true is a workaround for https://github.com/Microsoft/msbuild/issues/3062.
# We don't pass /warnaserror to msbuild (warn_as_error is set to false by default above), but set
# /p:TreatWarningsAsErrors=true so that compiler reported warnings, other than IDE0055 are treated as errors.
# Warnings reported from other msbuild tasks are not treated as errors for now.
MSBuild
$toolset_build_proj
\
$bl
\
/p:Configuration
=
$configuration
\
...
...
@@ -261,6 +270,7 @@ function BuildSolution {
/p:ContinuousIntegrationBuild
=
$ci
\
/p:QuietRestore
=
$quiet_restore
\
/p:QuietRestoreBinaryLog
=
"
$binary_log
"
\
/p:TreatWarningsAsErrors
=
true
\
$test_runtime
\
$mono_tool
\
$properties
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录