Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge latest Library.Template and fix OptProf runs #1200

Merged
merged 33 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
354b522
Bump NB.GV to 3.6.132
AArnott May 20, 2023
4f2a6d8
Bump CSharpIsNullAnalyzer from 0.1.329 to 0.1.495 (#204)
dependabot[bot] May 20, 2023
119ce07
Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 (#202)
dependabot[bot] May 20, 2023
0991fe9
Bump dotnet-coverage from 17.7.0 to 17.7.1 (#205)
dependabot[bot] May 20, 2023
e50278a
Bump Nerdbank.GitVersioning to 3.6.133
AArnott May 27, 2023
c5b42c2
Merge branch 'main' into microbuild
AArnott Jun 5, 2023
1579bba
Bump Microsoft.NET.Test.Sdk to 17.6.1
AArnott Jun 5, 2023
0ba0030
Enable dependabot for Azure Repos
AArnott Jun 7, 2023
4b700c1
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Jun 7, 2023
e22efe9
Bump Microsoft.NET.Test.Sdk to 17.6.2
AArnott Jun 7, 2023
b077dd9
Bump MicroBuild to 2.0.125
AArnott Jun 12, 2023
b494163
Merge branch 'main' into microbuild
AArnott Jun 12, 2023
5a7ce31
Fix symbol file selection for R2R outputs
AArnott Jun 13, 2023
35161d1
Merge branch 'main' into microbuild
AArnott Jun 13, 2023
0913be2
Simplify `nbgv` invocation in ps1 scripts
AArnott Jun 14, 2023
654a3a6
Fix optprof runs
AArnott Jun 14, 2023
3ea9ad3
Skip compliance checks by default for build.yml
AArnott Jun 14, 2023
fbcf8b7
Merge remote-tracking branch 'libtemplate/microbuild' into dev/andarn…
AArnott Jun 14, 2023
9109dfc
Bump MicroBuild to 2.0.127
AArnott Jun 19, 2023
1871050
Bump dotnet-coverage to 17.7.2
AArnott Jun 19, 2023
57f0305
Merge branch 'main' into microbuild
AArnott Jun 19, 2023
ba05696
Bump StyleCop.Analyzers.Unstable from 1.2.0.435 to 1.2.0.507 (#207)
dependabot[bot] Jun 26, 2023
03de5e6
Bump dotnet-coverage from 17.7.2 to 17.7.3 (#208)
dependabot[bot] Jun 26, 2023
2cfa19e
Merge remote-tracking branch 'origin/main' into microbuild
AArnott Jun 27, 2023
2822cf0
Bump MicroBuildVersion to 2.0.130
AArnott Jun 27, 2023
abfa5bd
Merge remote-tracking branch 'libtemplate/microbuild' into libtemplat…
AArnott Jun 27, 2023
1769c8a
Allow VS Code its changes
AArnott Jun 27, 2023
c53cbb7
Merge branch 'libtemplateUpdate' into dev/andarno/fixOptProf
AArnott Jun 27, 2023
71f5f36
Bump Microsoft.NET.Test.Sdk to 17.6.3
AArnott Jun 28, 2023
88e7018
Bump powershell to 7.3.5
AArnott Jun 28, 2023
b0f343d
Automatically include a README.md from the project directory
AArnott Jun 28, 2023
8537863
Merge branch 'main' into microbuild
AArnott Jun 28, 2023
75f5f3b
Merge remote-tracking branch 'libtemplate/microbuild' into dev/andarn…
AArnott Jun 28, 2023
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
9 changes: 9 additions & 0 deletions .azuredevops/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Please see the documentation for all configuration options:
# https://eng.ms/docs/products/dependabot/configuration/version_updates

version: 2
updates:
- package-ecosystem: nuget
directory: /
schedule:
interval: monthly
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"powershell": {
"version": "7.3.4",
"version": "7.3.5",
"commands": [
"pwsh"
]
Expand All @@ -15,7 +15,7 @@
]
},
"dotnet-coverage": {
"version": "17.7.1",
"version": "17.7.3",
"commands": [
"dotnet-coverage"
]
Expand Down
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.enableImportCompletion": true,
"omnisharp.enableRoslynAnalyzers": true
"omnisharp.enableRoslynAnalyzers": true,
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
"dotnet.defaultSolution": "Microsoft.VisualStudio.Threading.sln"
}
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<MicroBuildVersion>2.0.127</MicroBuildVersion>
<MicroBuildVersion>2.0.130</MicroBuildVersion>
<CodeAnalysisVersion>3.11.0</CodeAnalysisVersion>
<CodeAnalysisVersion Condition="'$(IsTestProject)'=='true'">4.4.0</CodeAnalysisVersion>
<CodefixTestingVersion>1.1.1</CodefixTestingVersion>
Expand All @@ -22,7 +22,7 @@
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit" Version="$(CodefixTestingVersion)" />
<PackageVersion Include="Microsoft.Diagnostics.Runtime.Utilities" Version="$(MicrosoftDiagnosticsRuntimeVersion)" />
<PackageVersion Include="Microsoft.Diagnostics.Runtime" Version="$(MicrosoftDiagnosticsRuntimeVersion)" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
<PackageVersion Include="Microsoft.VisualStudio.Interop" Version="17.4.33103.184" />
<PackageVersion Include="Microsoft.VisualStudio.Shell.15.0" Version="17.4.33103.184" />
Expand All @@ -49,7 +49,7 @@
<GlobalPackageReference Include="IsExternalInit" Version="1.0.3" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Internal.MicroBuild.VisualStudio" Version="$(MicroBuildVersion)" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.435" />
<GlobalPackageReference Include="StyleCop.Analyzers.Unstable" Version="1.2.0.507" />
</ItemGroup>
<ItemGroup>
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines/Archive-SourceCode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ if (!$RepoUrl) {
}

Push-Location $PSScriptRoot
$versionsObj = dotnet tool run nbgv get-version -f json | ConvertFrom-Json
$versionsObj = dotnet nbgv get-version -f json | ConvertFrom-Json
Pop-Location

$ReleaseDateString = $ReleaseDate.ToShortDateString()
Expand Down
9 changes: 7 additions & 2 deletions azure-pipelines/Get-SymbolFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ $PDBs |% {
}
} |% {
# Collect the DLLs/EXEs as well.
$dllPath = "$($_.Directory)/$($_.BaseName).dll"
$exePath = "$($_.Directory)/$($_.BaseName).exe"
$rootName = "$($_.Directory)/$($_.BaseName)"
if ($rootName.EndsWith('.ni')) {
$rootName = $rootName.Substring(0, $rootName.Length - 3)
}

$dllPath = "$rootName.dll"
$exePath = "$rootName.exe"
if (Test-Path $dllPath) {
$BinaryImagePath = $dllPath
} elseif (Test-Path $exePath) {
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines/Merge-CodeCoverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ try {
New-Item -Type Directory -Path (Split-Path $OutputFile) | Out-Null
}

& dotnet tool run dotnet-coverage merge $Inputs -o $OutputFile -f cobertura
& dotnet dotnet-coverage merge $Inputs -o $OutputFile -f cobertura
} else {
Write-Error "No reports found to merge."
}
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ parameters:
default: true
- name: EnableCompliance
type: boolean
default: true
default: false
- name: EnableAPIScan
type: boolean
default: true
default: false

jobs:
- job: Windows
Expand Down
1 change: 1 addition & 0 deletions azure-pipelines/secure-development-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ steps:
GdnBreakSuppressionSets: falsepositives
GdnBreakOutputSuppressionFile: $(Build.ArtifactStagingDirectory)/guardian_failures_as_suppressions/
GdnBreakOutputSuppressionSet: falsepositives
condition: and(succeeded(), ne(variables['OptProf'], 'true'))

# This is useful when false positives appear so we can copy some of the output into the suppressions file.
- publish: $(Build.ArtifactStagingDirectory)/guardian_failures_as_suppressions
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines/variables/InsertVersionsValues.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$MacroName = 'MicrosoftVisualStudioThreadingVersion'
$SampleProject = "$PSScriptRoot\..\..\src\Microsoft.VisualStudio.Threading"
[string]::join(',',(@{
($MacroName) = & { (dotnet tool run nbgv -- get-version --project $SampleProject --format json | ConvertFrom-Json).AssemblyVersion };
($MacroName) = & { (dotnet nbgv get-version --project $SampleProject --format json | ConvertFrom-Json).AssemblyVersion };
}.GetEnumerator() |% { "$($_.key)=$($_.value)" }))
2 changes: 0 additions & 2 deletions azure-pipelines/vs-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ stages:
jobs:
- template: build.yml
parameters:
EnableCompliance: false
EnableAPIScan: false
windowsPool: VSEngSS-MicroBuild2022-1ES
includeMacOS: false
RunTests: false
Expand Down
8 changes: 8 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<Project>
<!-- Include and reference README in nuge package, if a README is in the project directory. -->
<PropertyGroup>
<PackageReadmeFile Condition="Exists('README.md')">README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<None Condition="Exists('README.md')" Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove($(MSBuildThisFile), $(MSBuildThisFileDirectory)..))" />

<PropertyGroup>
Expand Down