Conversation
| " --debugPath `"$ArtifactsDir/BuildValidator`"" + | ||
| " --sourcePath `"$RepoRoot`"" + | ||
| " --referencesPath `"$ArtifactsDir/bin`"" + | ||
| " --referencesPath `"$dotnetInstallDir/packs/Microsoft.AspNetCore.App.Ref`"" + |
There was a problem hiding this comment.
Extracting these folders out to command line arguments was necessary to build on Helix agents where dotnet is typically not found under C:\Program Files\dotnet.
| var sourceFileInfo = resolvedSource.SourceFileInfo; | ||
| var hash = BitConverter.ToString(sourceFileInfo.Hash).Replace("-", ""); | ||
| _logger.LogInformation($@"""{resolvedSource.DisplayPath}"" - {sourceFileInfo.HashAlgorithm} - {hash}"); | ||
| var embeddedCompressedHash = sourceFileInfo.EmbeddedCompressedHash is { } compressedHash |
There was a problem hiding this comment.
This was needed to verify that compression of embedded sources was producing equivalent results in the rebuild.
| writeVisualization(originalPeMdvPath, optionsReader.PeReader.GetMetadataReader()); | ||
| writeVisualization(originalPdbMdvPath, optionsReader.PdbReader); | ||
|
|
||
| var originalPdbXmlPath = Path.Combine(originalPath, assemblyName + ".pdb.xml"); |
There was a problem hiding this comment.
This didn't end up helping in practice, but using pdb2xml was an attempt to determine if PDB differences were "significant" versus being merely differences of the offsets of various resources in the assembly.
It could help in the future, so I'd like to leave it here unless it introduces a problem.
| pool: | ||
| vmImage: windows-2019 | ||
| name: NetCorePublic-Pool | ||
| queue: BuildPool.Windows.10.Amd64.Open |
There was a problem hiding this comment.
I think this pool is faster.
Co-authored-by: Jared Parsons <jaredpparsons@gmail.com>
| Run-MSBuild $projectPath "/restore /t:Pack /p:RoslynEnforceCodeStyle=false /p:RunAnalyzersDuringBuild=false /p:DotNetUseShippingVersions=true /p:InitialDefineConstants=BOOTSTRAP /p:PackageOutputPath=`"$dir`" /p:EnableNgenOptimization=false /p:PublishWindowsPdb=false $force32Flag" -logFileName "Bootstrap" -configuration $bootstrapConfiguration -runAnalyzers | ||
| $packageFile = Get-ChildItem -Path $dir -Filter "$packageName.*.nupkg" | ||
| Unzip (Join-Path $dir $packageFile) $dir | ||
| Unzip (Join-Path $dir $packageFile.Name) $dir |
There was a problem hiding this comment.
This change makes the script work on both Windows PowerShell and PowerShell Core.
Modifications to the rebuilder which enable us to build csc in the netcoreapp3.1 target. Additional changes related to copying over the win32 resources are needed to enable us to build the net472 target.