Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
6c55c5a3
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,发现更多精彩内容 >>
提交
6c55c5a3
编写于
12月 08, 2017
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove other references to Ensure-NuGet
上级
f763de67
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
13 deletion
+10
-13
build/scripts/build-utils.ps1
build/scripts/build-utils.ps1
+2
-2
build/scripts/generate-compiler-code.ps1
build/scripts/generate-compiler-code.ps1
+3
-6
build/scripts/test-determinism.ps1
build/scripts/test-determinism.ps1
+2
-1
src/Tools/MicroBuild/microbuild.ps1
src/Tools/MicroBuild/microbuild.ps1
+1
-2
src/Tools/MicroBuild/publish-assets.ps1
src/Tools/MicroBuild/publish-assets.ps1
+2
-2
未找到文件。
build/scripts/build-utils.ps1
浏览文件 @
6c55c5a3
...
...
@@ -365,8 +365,8 @@ function Get-VisualStudioDir() {
# Clear out the NuGet package cache
function
Clear-PackageCache
()
{
$
nuget
=
Ensure-NuGet
Exec-
Block
{
&
$nuget
locals
all
-clear
}
|
Out-Host
$
dotnet
=
Ensure-DotnetSdk
Exec-
Console
$dotnet
"nuget locals all -clear"
}
# Restore a single project
...
...
build/scripts/generate-compiler-code.ps1
浏览文件 @
6c55c5a3
...
...
@@ -86,10 +86,7 @@ function Run-GetText() {
# Build all of the tools that we need to generate the syntax trees and ensure
# they are in a published / runnable state.
function Build-Tools() {
$msbuild
= Ensure-MSBuild
$msbuildDir
= Split-Path -parent
$msbuild
$nuget
= Ensure-NuGet
$dotnet
= Ensure-DotnetSdk
$list
= @(
'boundTreeGenerator;BoundTreeGenerator;BoundTreeGenerator\CompilersBoundTreeGenerator.csproj',
'csharpErrorFactsGenerator;CSharpErrorFactsGenerator;CSharpErrorFactsGenerator\CSharpErrorFactsGenerator.csproj',
...
...
@@ -106,8 +103,8 @@ function Build-Tools() {
$proj
=
$all
[2]
$fileName
= [IO.Path]::GetFileNameWithoutExtension(
$proj
)
Write-Host "
Building
$fileName
"
Restore-Project
$
proj
-nuget
$nuget
-msbuildDir
$msbuildDir
Exec-Command
$
msbuild
"
/t:P
ublish
/p:Configuration
=
Debug
/p:RuntimeIdentifier
=
win-x64
/v:m
$proj
" | Out-Null
Restore-Project
$
dotnet
$proj
Exec-Command
$
dotnet
"
p
ublish
/p:Configuration
=
Debug
/p:RuntimeIdentifier
=
win-x64
/v:m
$proj
" | Out-Null
$exePath
= Join-Path
$binariesDir
"
Debug\Exes\
$fileName
\win-x64\publish\
$
(
$exeName
)
.exe"
if
(
-not
(
Test-Path
$exePath
))
{
...
...
build/scripts/test-determinism.ps1
浏览文件 @
6c55c5a3
...
...
@@ -26,7 +26,7 @@ function Run-Build([string]$rootDir, [switch]$restore = $false, [string]$logFile
if
(
$restore
)
{
Write-Host
"Restoring the packages"
Restore-Project
-fileName
"Roslyn.sln"
-nuget
(
Ensure-NuGet
)
-msbuildDir
(
Split-Path
-parent
$msbuild
)
Restore-Project
$dotnet
"Roslyn.sln"
}
$args
=
"/nologo /v:m /nodeReuse:false /m /p:DebugDeterminism=true /p:BootstrapBuildPath=
$
script
:
bootstrapDir
/p:Features=
`"
debug-determinism
`"
/p:UseRoslynAnalyzers=false Roslyn.sln"
...
...
@@ -197,6 +197,7 @@ function Run-Test() {
try
{
.
(
Join-Path
$PSScriptRoot
"build-utils.ps1"
)
$dotnet
=
Ensure-DotnetSdk
$msbuild
=
Ensure-MSBuild
if
((
$bootstrapDir
-eq
""
)
-or
(
-not
([
IO.Path
]::
IsPathRooted
(
$
script
:
bootstrapDir
))))
{
Write-Host
"The bootstrap build path must be absolute"
...
...
src/Tools/MicroBuild/microbuild.ps1
浏览文件 @
6c55c5a3
...
...
@@ -115,8 +115,7 @@ try {
# one job runs with a clean cache and assures all packages we depend on are restored during
# the restore phase. As opposed to getting lucky based on a NuGet being available in the cache.
if
(
$cibuild
)
{
$nuget
=
Ensure-NuGet
Exec-Block
{
&
$nuget
locals
all
-clear
}
|
Out-Host
Clear-PackageCache
}
$msbuild
,
$msbuildDir
=
Ensure-MSBuildAndDir
-msbuildDir
$msbuildDir
...
...
src/Tools/MicroBuild/publish-assets.ps1
浏览文件 @
6c55c5a3
...
...
@@ -48,7 +48,7 @@ function Publish-NuGet([string]$packageDir, [string]$uploadUrl) {
}
if (-not
$test
) {
Exec-Console
$
nuget
"
push
$nupkg
-Source
$uploadUrl
-ApiKey
$apiKey
-NonInteractive
-Verbosity
quiet
"
Exec-Console
$
dotnet
"
nuget
push
$nupkg
--source
$uploadUrl
--apiKey
$apiKey
-v
q
"
}
}
}
...
...
@@ -147,7 +147,7 @@ function Normalize-BranchName([string]$branchName) {
try
{
.
(
Join-Path
$PSScriptRoot
"..\..\..\build\scripts\build-utils.ps1"
)
$
nuget
=
Ensure-NuGet
$
dotnet
=
Ensure-DotnetExe
$nugetDir
=
Join-Path
$configDir
"NuGet"
if
(
$configDir
-eq
""
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录