Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET
Roslyn
提交
df577a70
R
Roslyn
项目概览
dotNET
/
Roslyn
通知
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,发现更多精彩内容 >>
未验证
提交
df577a70
编写于
4月 12, 2018
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleaned up errors
上级
efaf3e96
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
33 deletion
+15
-33
build/scripts/build.ps1
build/scripts/build.ps1
+13
-8
src/Dependencies/Microsoft.NetFX20/Microsoft.NetFX20.nuget.proj
...pendencies/Microsoft.NetFX20/Microsoft.NetFX20.nuget.proj
+0
-24
src/Dependencies/Microsoft.NetFX20/Microsoft.NetFX20.nuspec
src/Dependencies/Microsoft.NetFX20/Microsoft.NetFX20.nuspec
+1
-1
src/NuGet/NuGetProjectPackUtil.csproj
src/NuGet/NuGetProjectPackUtil.csproj
+1
-0
未找到文件。
build/scripts/build.ps1
浏览文件 @
df577a70
...
...
@@ -336,24 +336,29 @@ function Build-InsertionItems() {
$insertionDir
= Join-Path
$configDir
"
DevDivInsertionFiles
"
$vsToolsDir
= Join-Path
$insertionDir
"
VS.Tools.Roslyn
"
$packageOutDir
= Join-Path
$configDir
"
DevDivPackages\Roslyn
"
$packArgs
= "
/p:NoPackageAnalysis
=
true
"
Create-Directory
$packageOutDir
Write-Host "
Packing
VS.ExternalAPIs.Roslyn.nuspec
"
Pack-One (Join-Path
$insertionDir
"
VS.ExternalAPIs.Roslyn.nuspec
") "
PerBuildPreRelease
"
$packageOutDir
-useConsole:
$false
| Out-Null
Write-Host "
Packing
VS.Tools.Roslyn.nuspec
"
Pack-One (Join-Path
$vsToolsDir
"
VS.Tools.Roslyn.nuspec
") "
PerBuildPreRelease
"
$packageOutDir
-basePath
$vsToolsDir
-useConsole:
$false
| Out-Null
Pack-One (Join-Path
$insertionDir
"
VS.ExternalAPIs.Roslyn.nuspec
") "
PerBuildPreRelease
"
$packageOutDir
$packArgs
Pack-One (Join-Path
$vsToolsDir
"
VS.Tools.Roslyn.nuspec
") "
PerBuildPreRelease
"
$packageOutDir
$packArgs
-basePath
$vsToolsDir
$netfx20Dir
= Join-Path
$repoDir
"
src\Dependencies\Microsoft.NetFX20
"
Pack-One (Join-Path
$netfx20Dir
"
Microsoft.NetFX20.nuspec
") "
PerBuildPreRelease
" -packageOutDir (Join-Path
$configDir
"
NuGet\NetFX20
") -basePath
$netfx20Dir
-extraArgs "
$packArgs
/p:CurrentVersion
=
4.3
.
0
"
Run-MSBuild "
DevDivVsix\PortableFacades\PortableFacades.vsmanproj
" -buildArgs
$extraArgs
Run-MSBuild "
DevDivVsix\CompilersPackage\Microsoft.CodeAnalysis.Compilers.vsmanproj
" -buildArgs
$extraArgs
Run-MSBuild "
DevDivVsix\MicrosoftCodeAnalysisLanguageServices\Microsoft.CodeAnalysis.LanguageServices.vsmanproj
" -buildArgs "
$extraArgs
"
Run-MSBuild "
..
\Dependencies\Microsoft.NetFX20\Microsoft.NetFX20.nuget.proj
"
}
finally {
Pop-Location
}
}
function Pack-One([string]
$nuspecFilePath
, [string]
$packageKind
, [string]
$packageOutDir
, [string]
$extraArgs
, [string]
$basePath
= "", [switch]
$useConsole
=
$true
) {
function Pack-One([string]
$nuspecFilePath
, [string]
$packageKind
, [string]
$packageOutDir
= "", [string]
$extraArgs
= ""
, [string]
$basePath
= "", [switch]
$useConsole
=
$true
) {
$nugetDir
= Join-Path
$repoDir
"
src\Nuget
"
if (
$packageOutDir
-eq "") {
$packageOutDir
= Join-Path
$configDir
"
NuGet\
$packageKind
"
}
if (
$basePath
-eq "") {
$basePath
=
$configDir
}
...
...
@@ -361,6 +366,8 @@ function Pack-One([string]$nuspecFilePath, [string]$packageKind, [string]$packag
if (-not ([IO.Path]::IsPathRooted(
$nuspecFilePath
))) {
$nuspecFilePath
= Join-Path
$nugetDir
$nuspecFilePath
}
Create-Directory
$packageOutDir
$nuspecFileName
= Split-Path -leaf
$nuspecFilePath
$projectFilePath
= Join-Path
$nugetDir
"
NuGetProjectPackUtil.csproj
"
$packArgs
= "
pack
-nologo
--no-build
$projectFilePath
$extraArgs
/p:NugetPackageKind
=
$packageKind
/p:NuspecFile
=
$nuspecFilePath
/p:NuspecBasePath
=
$basePath
-o
$packageOutDir
"
...
...
@@ -387,9 +394,7 @@ function Build-NuGetPackages() {
Push-Location (Join-Path
$repoDir
"
src\NuGet
")
try {
$nugetOutDir
= Join-Path
$configDir
"
NuGet
"
$extraArgs
= ""
Create-Directory
$nugetOutDir
if (
$official
) {
$extraArgs
+= "
/p:UseRealCommit
=
true
"
...
...
src/Dependencies/Microsoft.NetFX20/Microsoft.NetFX20.nuget.proj
已删除
100644 → 0
浏览文件 @
efaf3e96
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project
ToolsVersion=
"14.0"
DefaultTargets=
"Build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Import
Project=
"Version.targets"
/>
<Import
Project=
"..\..\..\build\Targets\Settings.props"
/>
<ItemGroup
Label=
"Redist"
>
<NuSpec
Include=
"Microsoft.NetFX20.nuspec"
/>
</ItemGroup>
<Target
Name=
"Build"
Inputs=
"@(NuSpec)"
Outputs=
"@(NuSpec -> NuGet\$(NuGetVersionType)\%(Identity).$(NuGetVersion).nupkg"
>
<PropertyGroup>
<NuGetArguments>
-prop currentVersion="$(NuGetVersion)"
</NuGetArguments>
<NuGetOutDir>
$(OutDir)NuGet\$(NuGetVersionType)
</NuGetOutDir>
</PropertyGroup>
<!-- clean our output directory -->
<MakeDir
Directories=
"$(NuGetOutDir)"
Condition=
"!Exists('$(NuGetOutDir)')"
/>
<!-- copy any extra content files (like EULAs) that we need to include -->
<Copy
SourceFiles=
"@(Content)"
DestinationFolder=
"$(OutDir)"
SkipUnchangedFiles=
"true"
/>
<!-- package! -->
<Exec
Command=
"..\..\..\Binaries\Tools\NuGet Pack %(NuSpec.Identity) -OutputDirectory $(NuGetOutDir) $(NuGetArguments)"
/>
</Target>
<Target
Name=
"Clean"
>
<RemoveDir
Directories=
"$(OutDir)NuGet"
/>
</Target>
</Project>
src/Dependencies/Microsoft.NetFX20/Microsoft.NetFX20.nuspec
浏览文件 @
df577a70
...
...
@@ -10,7 +10,7 @@ Supported Platforms:
</description>
<language>
en-US
</language>
<requireLicenseAcceptance>
true
</requireLicenseAcceptance>
<version>
$
currentV
ersion$
</version>
<version>
$
v
ersion$
</version>
<authors>
Microsoft
</authors>
<licenseUrl>
http://go.microsoft.com/fwlink/?LinkId=394369
</licenseUrl>
<projectUrl>
http://msdn.com/roslyn
</projectUrl>
...
...
src/NuGet/Nu
g
etProjectPackUtil.csproj
→
src/NuGet/Nu
G
etProjectPackUtil.csproj
浏览文件 @
df577a70
...
...
@@ -32,6 +32,7 @@
<NuspecProperties>$(NuspecProperties);additionalFilesPath=$(RepoRoot)build/NuGetAdditionalFiles</NuspecProperties>
<NuspecProperties>$(NuspecProperties);srcDirPath=$(RepoRoot)\src</NuspecProperties>
<NuspecProperties Condition="'$(EmptyDir)' != ''">$(NuspecProperties);emptyDirPath=$(EmptyDir)</NuspecProperties>
<NuspecProperties Condition="'$(CurrentVersion)' != ''">$(NuspecProperties);currentVersion=$(CurrentVersion)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);commitPathMessage=$(_CommitPathMessage)</NuspecProperties>
<NuspecProperties>$(NuspecProperties);tags=Roslyn CodeAnalysis Compiler CSharp VB VisualBasic Parser Scanner Lexer Emit CodeGeneration Metadata IL Compilation Scripting Syntax Semantics</NuspecProperties>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录