Skip to content

Commit

Permalink
Merge pull request #1200 from microsoft/dev/andarno/fixOptProf
Browse files Browse the repository at this point in the history
Merge latest Library.Template and fix OptProf runs
  • Loading branch information
AArnott committed Jun 28, 2023
2 parents b807c1d + 75f5f3b commit 5680786
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 16 deletions.
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

0 comments on commit 5680786

Please sign in to comment.