Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.7.115" PrivateAssets="all" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.9.50" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
14 changes: 10 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,17 @@ extends:
displayName: 'Upload logs to drop'
targetPath: '$(Build.ArtifactStagingDirectory)\logs'
artifactName: logs
condition: succeededOrFailed()
condition: always()
steps:
- task: MicroBuildSigningPlugin@1
- task: MicroBuildSigningPlugin@4
displayName: Install MicroBuild plugin
inputs:
signType: '$(SignType)'
signType: 'real'
zipSources: true
feedSource: https://devdiv.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
ConnectedPMEServiceName: 6cc74545-d7b9-4050-9dfa-ebefcc8961ea
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- task: MSBuild@1
displayName: '/t:Pack'
Expand Down Expand Up @@ -102,9 +107,10 @@ extends:

- task: CopyFiles@2
displayName: 'Copy logs to drop'
condition: always()
inputs:
Contents: '**\*.*log'
TargetFolder: '$(Build.ArtifactStagingDirectory)\logs'

- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: 'Execute cleanup tasks'
displayName: 'Execute cleanup tasks'
86 changes: 86 additions & 0 deletions release-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
trigger: none

resources:
pipelines:
- pipeline: microsoft_MSBuildLocator
source: microsoft.MSBuildLocator
trigger:
enabled: false

variables:
SymbolsAgentPath: '$(System.DefaultWorkingDirectory)\_$(Build.DefinitionName)\Symbols'
SymbolsFeatureName: 'MSBuild'
SymbolsProject: 'DDE'
TeamName: 'msbuild'
VstsDropNames: 'Products/DevDiv/Microsoft/msbuild/$(Build.SourceBranchName)/$(Build.BuildNumber)/$(Build.BuildId)'

stages:
- stage: RetainBuild
displayName: 'Retain build'
jobs:
- job: RetainBuildJob
displayName: 'Run on agent'
pool:
name: 'VSEngSS-MicroBuild2022-1ES'
steps:
- task: MicroBuildArchiveSymbols@6
displayName: 'Archive $(SymbolsFeatureName) on Symweb'
inputs:
SymbolsFeatureName: '$(SymbolsFeatureName)'
SymbolsProject: '$(SymbolsProject)'
SymbolsAgentPath: '$(SymbolsAgentPath)'
SubmitToInternet: true
ExpirationInDays: '5475'
azureSubscription: 'VSEng-SymbolsUpload'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- task: MicroBuildRetainVstsDrops@1
displayName: 'Retain VSTS Drops'
enabled: false
inputs:
DropNames: '$(VstsDropNames)'
DropServiceUri: 'https://devdiv.artifacts.visualstudio.com/DefaultCollection'

- stage: PublicRelease
displayName: 'Public release'
dependsOn: RetainBuild
condition: succeeded()
jobs:
- job: PushToNuGet
displayName: 'Push to nuget.org'
pool:
name: 'VSEngSS-MicroBuild2022-1ES'
steps:
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: 'push'
packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'MSBuild-Locator'
verbosityPush: 'Detailed'

- job: PublicNuGetRelease
displayName: 'Public NuGet release'
dependsOn: PushToNuGet
pool: server
steps:
- task: ManualValidation@0
displayName: 'Push packages to NuGet'
inputs:
instructions: |
https://microsoft.sharepoint.com/teams/toolsforeng/_layouts/OneNote.aspx?id=%2Fteams%2Ftoolsforeng%2FOne%20Note%2FToolsForSoftwareEngineers&wd=target%28Build%20Tools%2FMSBuild%2FGitHub.one%7CFF6DC598-65EC-43D5-AB29-DB38FEB82BC8%2FMyGet%20Feed%7CFAFC6258-899D-48D4-8DB4-892396202C9C%2F%29
onenote:https://microsoft.sharepoint.com/teams/toolsforeng/One%20Note/ToolsForSoftwareEngineers/Build%20Tools/MSBuild/GitHub.one#MyGet%20Feed&section-id={FF6DC598-65EC-43D5-AB29-DB38FEB82BC8}&page-id={FAFC6258-89
onTimeout: 'reject'

- job: GitHubRelease
displayName: 'GitHub release'
dependsOn: PublicNuGetRelease
pool: server
steps:
- task: ManualValidation@0
displayName: 'Create GitHub release'
inputs:
instructions: 'Create the GitHub release manually'
onTimeout: 'reject'
4 changes: 2 additions & 2 deletions src/MSBuildLocator.Tests/Microsoft.Build.Locator.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<AssemblyOriginatorKeyFile>..\MSBuildLocator\key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="Shouldly" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MSBuildLocator\Microsoft.Build.Locator.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/MSBuildLocator/Microsoft.Build.Locator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<DefineConstants>$(DefineConstants);FEATURE_VISUALSTUDIOSETUP</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net46'">
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="3.12.2149" PrivateAssets="all" />
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="3.14.2075" PrivateAssets="all" />
<PackageReference Include="Microsoft.VisualStudio.SDK.EmbedInteropTypes" Version="15.0.36" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion src/MSBuildLocator/build/Microsoft.Build.Locator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
'%(PackageReference.Identity)' == 'Microsoft.Build.Conversion.Core' or
'%(PackageReference.Identity)' == 'Microsoft.Build.Runtime' or
'%(PackageReference.Identity)' == 'Microsoft.Build.Localization' or
'%(PackageReference.Identity)' == 'Microsoft.Build.Engine'
'%(PackageReference.Identity)' == 'Microsoft.Build.Engine' or
'%(PackageReference.Identity)' == 'Microsoft.NET.StringTools' or
'%(PackageReference.Identity)' == 'NuGet.Frameworks'
)"/>
</ItemGroup>
<Error
Expand Down
Loading