@@ -16,7 +16,7 @@ if (!$BuildConfiguration) {
1616 $BuildConfiguration = ' Debug'
1717}
1818
19- $NuGetPackages = " $RepoRoot /bin/Packages/$BuildConfiguration /NuGet "
19+ $NuGetPackages = " $RepoRoot /bin/Packages/$BuildConfiguration "
2020
2121if (! (Test-Path $NuGetPackages )) {
2222 Write-Warning " Skipping because NuGet packages haven't been built yet."
@@ -27,32 +27,4 @@ $result = @{
2727 " $NuGetPackages " = (Get-ChildItem $NuGetPackages - Recurse)
2828}
2929
30- if ($env: IsOptProf ) {
31- $CoreXTPackages = " $RepoRoot /bin/Packages/$BuildConfiguration /CoreXT"
32-
33- $ArtifactBasePath = " $RepoRoot \obj\_artifacts"
34- $ArtifactPath = " $ArtifactBasePath \VSInsertion"
35- if (-not (Test-Path $ArtifactPath )) { New-Item - ItemType Directory - Path $ArtifactPath | Out-Null }
36-
37- $profilingInputs = [xml ](Get-Content - Path " $PSScriptRoot \..\ProfilingInputs.props" )
38- $profilingInputs.Project.ItemGroup.TestStore.Include = " vstsdrop:" + (& " $PSScriptRoot \..\variables\ProfilingInputsDropName.ps1" )
39- $profilingInputs.Save (" $ArtifactPath \ProfilingInputs.props" )
40-
41- $InsertionMetadataVersion = $ (dotnet tool run nbgv get-version - p " $RepoRoot \src" -f json | ConvertFrom-Json ).NuGetPackageVersion
42- if ($env: BUILD_BUILDID ) {
43- # We must ensure unique versions for the insertion metadata package so
44- # it can contain information that is unique to this build.
45- # In particular it includes the ProfilingInputsDropName, which contains the BuildId.
46- # A non-unique package version here may collide with a prior run of this same commit,
47- # ultimately resulting in a failure of the optprof run.
48- $InsertionMetadataVersion += ' .' + $env: BUILD_BUILDID
49- }
50- & (& " $PSScriptRoot \..\Get-NuGetTool.ps1" ) pack " $PSScriptRoot \..\InsertionMetadataPackage.nuspec" - OutputDirectory $CoreXTPackages - BasePath $ArtifactPath - Version $InsertionMetadataVersion | Out-Null
51- if ($LASTEXITCODE -ne 0 ) {
52- exit $LASTEXITCODE
53- }
54-
55- $result [" $CoreXTPackages " ] = (Get-ChildItem " $CoreXTPackages \LibraryName.VSInsertionMetadata.$InsertionMetadataVersion .nupkg" );
56- }
57-
5830$result
0 commit comments