Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
4f5f083
update 16.4 version numbers
brettfo Aug 5, 2019
b384366
Merge pull request #7377 from dotnet/merges/release/dev16.3-to-releas…
Aug 10, 2019
0272661
Merge pull request #7380 from dotnet/merges/release/dev16.3-to-releas…
Aug 10, 2019
72178fd
Merge pull request #7393 from dotnet/merges/release/dev16.3-to-releas…
Aug 14, 2019
9d2511f
update build definition to use stages (#7361)
brettfo Aug 8, 2019
f675f66
move attribution of F# Software Foundation to package description (#7…
brettfo Aug 9, 2019
00f9cfc
upload VSTS drop during internal build (#7392)
brettfo Aug 13, 2019
275510f
Merge pull request #7402 from brettfo/yaml-updates
brettfo Aug 14, 2019
0f04f03
Merge pull request #7419 from dotnet/merges/release/dev16.3-to-releas…
Aug 17, 2019
88e90ea
Merge pull request #7431 from dotnet/merges/release/dev16.3-to-releas…
Aug 21, 2019
f4e7bce
Merge pull request #7435 from dotnet/merges/release/dev16.3-to-releas…
Aug 22, 2019
27be414
Merge pull request #7439 from dotnet/merges/release/dev16.3-to-releas…
Aug 23, 2019
dbc260c
Merge pull request #7469 from dotnet/merges/release/dev16.3-to-releas…
Aug 30, 2019
0f7501c
Merge pull request #7496 from dotnet/merges/release/dev16.3-to-releas…
Sep 5, 2019
a77767a
[release/dev16.4] Enable auto-insertion creation after signed builds.…
brettfo Sep 5, 2019
1f1efba
fix typo (#7501)
brettfo Sep 5, 2019
e6bb0f1
update VSSDK to 16.3.2099 (#7528)
brettfo Sep 11, 2019
3897909
update insert task to v3 (#7573)
brettfo Sep 17, 2019
73f38e4
Relax --noframework for mscorlib, netstandard and system.runtime (#7612)
KevinRansom Sep 24, 2019
0fb5711
Merge pull request #7620 from dotnet/merges/master-to-release/dev16.4
Sep 25, 2019
e8b20b0
Merge pull request #7624 from dotnet/merges/master-to-release/dev16.4
Sep 25, 2019
8b3fd3f
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] Sep 26, 2019
f07fcf2
Fix #7564 (#7596)
Frassle Sep 27, 2019
c1cbe09
Update dependencies from https://github.com/dotnet/arcade build 20190…
dotnet-maestro[bot] Sep 27, 2019
969e342
Merge pull request #7639 from dotnet/merges/master-to-release/dev16.4
KevinRansom Sep 27, 2019
4ee0140
replace deprecated nuspec `iconUrl` element with `icon`
brettfo Sep 27, 2019
0bedddc
Merge remote-tracking branch 'upstream/darc-master-ccc2f9a8-8c49-40d2…
brettfo Sep 27, 2019
35de30e
Merge pull request #7655 from brettfo/package-icon
brettfo Sep 27, 2019
48f932c
delete old build definition file (#7662)
brettfo Sep 28, 2019
3fd44c4
update tool requirement to VS 16.3 (#7671)
brettfo Sep 30, 2019
47072af
Consider '_' for members with access modifiers (#7631)
gusty Oct 1, 2019
5dd888e
Merge pull request #7656 from dotnet/merges/master-to-release/dev16.4
brettfo Oct 2, 2019
c29f3a6
Disable Linux_FCS (#7697)
brettfo Oct 3, 2019
1dd34bc
Merge remote-tracking branch 'upstream/master' into merges/master-to-…
brettfo Oct 3, 2019
e3676d7
Merge pull request #7692 from dotnet/merges/master-to-release/dev16.4
brettfo Oct 3, 2019
da3ca86
update VS insertion target to `rel/d16.4` (#7770)
brettfo Oct 25, 2019
e7597de
LOC CHECKIN | dotnet/fsharp release/dev16.4 | 20191101 (#7805)
v-zbsail Nov 2, 2019
95ca388
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 9, 2019
3641f5c
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 12, 2019
487df5c
Add FSharpUnionCase.HasFields (#7841)
auduchinok Nov 11, 2019
bc832a8
Optimize union case fields enumeration (#7840)
auduchinok Nov 11, 2019
1622740
Merge pull request #7837 from dotnet/darc-master-0229f128-2e0e-4af1-b…
brettfo Nov 12, 2019
478f445
P/invoke Kernel32.dll only on Windows (#7858)
am11 Nov 15, 2019
75443e2
[master] Update dependencies from dotnet/arcade (#7853)
dotnet-maestro[bot] Nov 15, 2019
0447146
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 15, 2019
77a5cb9
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 16, 2019
5366ca1
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 17, 2019
c8f5fba
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 18, 2019
e26902a
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 19, 2019
75c83a3
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 20, 2019
6a07ca9
Fixes #7859 (#7874)
forki Nov 20, 2019
d89d4ff
Minor pickle optimization for Map and list (#7812)
TIHan Nov 20, 2019
16f213a
Merge pull request #7875 from dotnet/darc-master-49f5a84d-0478-420c-9…
KevinRansom Nov 20, 2019
9489f46
Update FCS build to using .Net Core only (#7883)
baronfel Nov 20, 2019
521a591
Remove unnecessary bash script from fcs (#7887)
cartermp Nov 20, 2019
917eb4f
Pick correct dependencies when scripting on coreclr (#7889)
KevinRansom Nov 21, 2019
6c2221f
enable symbol completion for scripting (#7893)
brettfo Nov 21, 2019
cc161ad
Be very literal about the LangVersion string (#7895)
cartermp Nov 22, 2019
c0002cc
Don't try to print startupRange file contents in debug (#7898)
auduchinok Nov 22, 2019
8ac99f8
change the type of completion item returned for scripts (#7899)
brettfo Nov 22, 2019
9f7f2e5
Capitalization (#7908)
fifty-six Nov 28, 2019
899d210
Fix LinkedSubSource leak in Async.Choice (#7892)
Frassle Nov 28, 2019
0e3d4d1
Fixed Literal value in signature (#7901)
TIHan Nov 28, 2019
f8b39c5
[master] Update dependencies from dotnet/arcade (#7891)
dotnet-maestro[bot] Dec 2, 2019
18b73fb
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 3, 2019
d966659
fire event when a value is bound at the root of a script evaluation (…
brettfo Dec 3, 2019
ba677fd
Merge remote-tracking branch 'upstream/release/dev16.4' into merges/r…
brettfo Dec 4, 2019
40bb7ac
Merge pull request #7925 from dotnet/merges/release/dev16.4-to-master
brettfo Dec 4, 2019
11ddd6f
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 4, 2019
1506d3c
Use MemoryMappedFile API instead of p/invoke win32 calls (#7944)
TIHan Dec 8, 2019
25db775
update CI environments
baronfel Dec 9, 2019
06fb47d
update CI builds again
baronfel Dec 9, 2019
09154cc
just build only for travis right now
baronfel Dec 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,20 @@ os:
- linux
- osx

osx_image: xcode9
osx_image: xcode11.2

mono:
- weekly
- latest
- 5.8.0
- 6.0.0

dotnet: 2.1.4
dotnet: 3.0.100

sudo: false

install:

script:
- ./fcs/build.sh Build

# Woes with doing more build/test on linux
#
# This fails because NUnit gives an exception (!!!!)
# - ./fcs/build.sh Test.NetFx
#
# System.IO.FileNotFoundException: Could not load file or assembly 'nunit.engine.api, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies.
#
# This fails because Nuget packaging doesn't like backslashes in the package file, but Windows does
# - ./fcs/build.sh NuGet

# Fails on Travis OSX too often because there are network outages on that configuration getting the Mono MDK
# Fails on Travis Linux with Mono latest do to a trust issue with certs on package restore?
matrix:
exclude:
- os: osx
mono: 4.4.2
- os: osx
mono: 4.8.0
- os: linux
mono: latest
- ./fcs/build.sh


4 changes: 0 additions & 4 deletions FSharp.Profiles.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DefineConstants Condition="'$(MonoPackaging)' == 'true'">$(DefineConstants);CROSS_PLATFORM_COMPILER</DefineConstants>
<DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants>
<DefineConstants>$(DefineConstants);BE_SECURITY_TRANSPARENT</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.StartsWith('netstandard')) OR $(TargetFramework.StartsWith('netcoreapp'))">
<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_CORHOST_SIGNER</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_EVENTWAITHANDLE_IDISPOSABLE</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_PDB_READER</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_PDB_WRITER</DefineConstants>
<DefineConstants>$(DefineConstants);FX_NO_SYMBOLSTORE</DefineConstants>
Expand Down
5 changes: 2 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
os: Visual Studio 2017
os: Visual Studio 2019

init:
- git config --global core.autocrlf input
Expand All @@ -9,5 +9,4 @@ build_script:
test: off
version: '{build}'
artifacts:
- path: release\fcs\*.nupkg
type: NuGetPackage
- path: artifacts\bin\fcs\Release\*.nupkg
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<ProductDependencies>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.19557.20">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.19603.17">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b62f1617f2c453497fd55697c04dd8021a38dc17</Sha>
<Sha>b902fd6b6948e689a5128fa6d94dc7de13e6af84</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
<FSharpCorePreviewPackageVersion>$(FSCorePackageVersion)-$(PreReleaseVersionLabel).*</FSharpCorePreviewPackageVersion>
</PropertyGroup>
<PropertyGroup>
<FSPackageMajorVersion>10.6</FSPackageMajorVersion>
<FSPackageMajorVersion>10.7</FSPackageMajorVersion>
<FSPackageVersion>$(FSPackageMajorVersion).0</FSPackageVersion>
<FSProductVersionPrefix>$(FSPackageVersion)</FSProductVersionPrefix>
<FSProductVersion>$(FSPackageVersion).0</FSProductVersion>
</PropertyGroup>
<PropertyGroup>
<VSMajorVersion>16</VSMajorVersion>
<VSMinorVersion>3</VSMinorVersion>
<VSMinorVersion>4</VSMinorVersion>
<VSGeneralVersion>$(VSMajorVersion).0</VSGeneralVersion>
<VSAssemblyVersionPrefix>$(VSMajorVersion).$(VSMinorVersion).0</VSAssemblyVersionPrefix>
<VSAssemblyVersion>$(VSAssemblyVersionPrefix).0</VSAssemblyVersion>
Expand Down Expand Up @@ -155,7 +155,7 @@
<MicrosoftVisualStudioUtilitiesVersion>16.1.28917.181</MicrosoftVisualStudioUtilitiesVersion>
<MicrosoftVisualStudioValidationVersion>15.3.58</MicrosoftVisualStudioValidationVersion>
<MicrosoftVisualStudioWCFReferenceInteropVersion>9.0.30729</MicrosoftVisualStudioWCFReferenceInteropVersion>
<MicrosoftVSSDKBuildToolsVersion>16.0.2264</MicrosoftVSSDKBuildToolsVersion>
<MicrosoftVSSDKBuildToolsVersion>16.3.2099</MicrosoftVSSDKBuildToolsVersion>
<VSSDKDebuggerVisualizersVersion>12.0.4</VSSDKDebuggerVisualizersVersion>
<VSSDKVSLangProjVersion>7.0.4</VSSDKVSLangProjVersion>
<VSSDKVSLangProj8Version>8.0.4</VSSDKVSLangProj8Version>
Expand Down
4 changes: 2 additions & 2 deletions eng/build-utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ function Make-BootstrapBuild() {
Create-Directory $dir

# prepare FsLex and Fsyacc and AssemblyCheck
Run-MSBuild "$RepoRoot\src\buildtools\buildtools.proj" "/restore /t:Publish" -logFileName "BuildTools" -configuration $bootstrapConfiguration
Run-MSBuild "$RepoRoot\src\buildtools\buildtools.proj" "/restore /t:Publish /p:PublishWindowsPdb=false" -logFileName "BuildTools" -configuration $bootstrapConfiguration
Copy-Item "$ArtifactsDir\bin\fslex\$bootstrapConfiguration\netcoreapp2.1\publish" -Destination "$dir\fslex" -Force -Recurse
Copy-Item "$ArtifactsDir\bin\fsyacc\$bootstrapConfiguration\netcoreapp2.1\publish" -Destination "$dir\fsyacc" -Force -Recurse
Copy-Item "$ArtifactsDir\bin\AssemblyCheck\$bootstrapConfiguration\netcoreapp2.1\publish" -Destination "$dir\AssemblyCheck" -Force -Recurse

# prepare compiler
$projectPath = "$RepoRoot\proto.proj"
Run-MSBuild $projectPath "/restore /t:Publish /p:TargetFramework=$bootstrapTfm;ProtoTargetFramework=$bootstrapTfm" -logFileName "Bootstrap" -configuration $bootstrapConfiguration
Run-MSBuild $projectPath "/restore /t:Publish /p:TargetFramework=$bootstrapTfm;ProtoTargetFramework=$bootstrapTfm /p:PublishWindowsPdb=false" -logFileName "Bootstrap" -configuration $bootstrapConfiguration
Copy-Item "$ArtifactsDir\bin\fsc\$bootstrapConfiguration\$bootstrapTfm\publish" -Destination "$dir\fsc" -Force -Recurse
Copy-Item "$ArtifactsDir\bin\fsi\$bootstrapConfiguration\$bootstrapTfm\publish" -Destination "$dir\fsi" -Force -Recurse

Expand Down
53 changes: 27 additions & 26 deletions eng/common/CheckSymbols.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ param(
)

Add-Type -AssemblyName System.IO.Compression.FileSystem
. $PSScriptRoot\pipeline-logging-functions.ps1

function FirstMatchingSymbolDescriptionOrDefault {
param(
[string] $FullPath, # Full path to the module that has to be checked
[string] $TargetServerParam, # Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
[string] $TargetServerParameter, # Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
[string] $SymbolsPath
)

Expand All @@ -21,36 +22,36 @@ function FirstMatchingSymbolDescriptionOrDefault {
# checking and which type of file was uploaded.

# The file itself is returned
$SymbolPath = $SymbolsPath + "\" + $FileName
$SymbolPath = $SymbolsPath + '\' + $FileName

# PDB file for the module
$PdbPath = $SymbolPath.Replace($Extension, ".pdb")
$PdbPath = $SymbolPath.Replace($Extension, '.pdb')

# PDB file for R2R module (created by crossgen)
$NGenPdb = $SymbolPath.Replace($Extension, ".ni.pdb")
$NGenPdb = $SymbolPath.Replace($Extension, '.ni.pdb')

# DBG file for a .so library
$SODbg = $SymbolPath.Replace($Extension, ".so.dbg")
$SODbg = $SymbolPath.Replace($Extension, '.so.dbg')

# DWARF file for a .dylib
$DylibDwarf = $SymbolPath.Replace($Extension, ".dylib.dwarf")
$DylibDwarf = $SymbolPath.Replace($Extension, '.dylib.dwarf')

.\dotnet-symbol.exe --symbols --modules --windows-pdbs $TargetServerParam $FullPath -o $SymbolsPath | Out-Null
.\dotnet-symbol.exe --symbols --modules --windows-pdbs $TargetServerParameter $FullPath -o $SymbolsPath | Out-Null

if (Test-Path $PdbPath) {
return "PDB"
return 'PDB'
}
elseif (Test-Path $NGenPdb) {
return "NGen PDB"
return 'NGen PDB'
}
elseif (Test-Path $SODbg) {
return "DBG for SO"
return 'DBG for SO'
}
elseif (Test-Path $DylibDwarf) {
return "Dwarf for Dylib"
return 'Dwarf for Dylib'
}
elseif (Test-Path $SymbolPath) {
return "Module"
return 'Module'
}
else {
return $null
Expand All @@ -68,15 +69,15 @@ function CountMissingSymbols {
}

# Extensions for which we'll look for symbols
$RelevantExtensions = @(".dll", ".exe", ".so", ".dylib")
$RelevantExtensions = @('.dll', '.exe', '.so', '.dylib')

# How many files are missing symbol information
$MissingSymbols = 0

$PackageId = [System.IO.Path]::GetFileNameWithoutExtension($PackagePath)
$PackageGuid = New-Guid
$ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath "Symbols"
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath 'Symbols'

[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)

Expand All @@ -86,31 +87,31 @@ function CountMissingSymbols {
Get-ChildItem -Recurse $ExtractPath |
Where-Object {$RelevantExtensions -contains $_.Extension} |
ForEach-Object {
if ($_.FullName -Match "\\ref\\") {
if ($_.FullName -Match '\\ref\\') {
Write-Host "`t Ignoring reference assembly file" $_.FullName
return
}

$SymbolsOnMSDL = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--microsoft-symbol-server" $SymbolsPath
$SymbolsOnSymWeb = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--internal-server" $SymbolsPath
$SymbolsOnMSDL = FirstMatchingSymbolDescriptionOrDefault -FullPath $_.FullName -TargetServerParameter '--microsoft-symbol-server' -SymbolsPath $SymbolsPath
$SymbolsOnSymWeb = FirstMatchingSymbolDescriptionOrDefault -FullPath $_.FullName -TargetServerParameter '--internal-server' -SymbolsPath $SymbolsPath

Write-Host -NoNewLine "`t Checking file" $_.FullName "... "

if ($SymbolsOnMSDL -ne $null -and $SymbolsOnSymWeb -ne $null) {
Write-Host "Symbols found on MSDL (" $SymbolsOnMSDL ") and SymWeb (" $SymbolsOnSymWeb ")"
Write-Host "Symbols found on MSDL (${$SymbolsOnMSDL}) and SymWeb (${$SymbolsOnSymWeb})"
}
else {
$MissingSymbols++

if ($SymbolsOnMSDL -eq $null -and $SymbolsOnSymWeb -eq $null) {
Write-Host "No symbols found on MSDL or SymWeb!"
Write-Host 'No symbols found on MSDL or SymWeb!'
}
else {
if ($SymbolsOnMSDL -eq $null) {
Write-Host "No symbols found on MSDL!"
Write-Host 'No symbols found on MSDL!'
}
else {
Write-Host "No symbols found on SymWeb!"
Write-Host 'No symbols found on SymWeb!'
}
}
}
Expand All @@ -129,26 +130,26 @@ function CheckSymbolsAvailable {
Get-ChildItem "$InputPath\*.nupkg" |
ForEach-Object {
$FileName = $_.Name

# These packages from Arcade-Services include some native libraries that
# our current symbol uploader can't handle. Below is a workaround until
# we get issue: https://github.com/dotnet/arcade/issues/2457 sorted.
if ($FileName -Match "Microsoft\.DotNet\.Darc\.") {
if ($FileName -Match 'Microsoft\.DotNet\.Darc\.') {
Write-Host "Ignoring Arcade-services file: $FileName"
Write-Host
return
}
elseif ($FileName -Match "Microsoft\.DotNet\.Maestro\.Tasks\.") {
elseif ($FileName -Match 'Microsoft\.DotNet\.Maestro\.Tasks\.') {
Write-Host "Ignoring Arcade-services file: $FileName"
Write-Host
return
}

Write-Host "Validating $FileName "
$Status = CountMissingSymbols "$InputPath\$FileName"

if ($Status -ne 0) {
Write-Error "Missing symbols for $Status modules in the package $FileName"
Write-PipelineTelemetryError -Category 'CheckSymbols' -Message "Missing symbols for $Status modules in the package $FileName"
}

Write-Host
Expand Down
22 changes: 18 additions & 4 deletions eng/common/SetupNugetSources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# condition: eq(variables['Agent.OS'], 'Windows_NT')
# inputs:
# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
# arguments: -ConfigFile ${Env:BUILD_SOURCESDIRECTORY}/NuGet.config -Password $Env:Token
# arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
# env:
# Token: $(dn-bot-dnceng-artifact-feeds-rw)

Expand Down Expand Up @@ -95,10 +95,15 @@ function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Password) {
}

if (!(Test-Path $ConfigFile -PathType Leaf)) {
Write-Host "Couldn't find the file NuGet config file: $ConfigFile"
Write-PipelineTelemetryError -Category 'Build' -Message "Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Couldn't find the NuGet config file: $ConfigFile"
ExitWithExitCode 1
}

if (!$Password) {
Write-PipelineTelemetryError -Category 'Build' -Message 'Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Please supply a valid PAT'
ExitWithExitCode 1
}

# Load NuGet.config
$doc = New-Object System.Xml.XmlDocument
$filename = (Get-Item $ConfigFile).FullName
Expand All @@ -121,7 +126,16 @@ if ($creds -eq $null) {
# Insert credential nodes for Maestro's private feeds
InsertMaestroPrivateFeedCredentials -Sources $sources -Creds $creds -Password $Password

AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
$dotnet3Source = $sources.SelectSingleNode("add[@key='dotnet3']")
if ($dotnet3Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
}

$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
if ($dotnet31Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
}

$doc.Save($filename)
Loading