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
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Setup .NET
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 9.0.x

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Restore
run: nuget restore src\BehaviorsSdk.sln

- name: Build
run: msbuild src\BehaviorsSdk.sln /p:Configuration=Release /p:SignType=real

- name: Run Tests
run: dotnet test Test\UnitTests\UnitTests.csproj

- name: Pack Behaviors
if: success()
run: msbuild src\Microsoft.Xaml.Behaviors\Microsoft.Xaml.Behaviors.csproj /p:Configuration=Release -t:pack

- name: Upload NuGet Artifacts
if: success()
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion Test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net462;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net462;net9.0-windows</TargetFrameworks>
<IsPackable>false</IsPackable>
<UseWPF>true</UseWPF>
<OutputType>Library</OutputType>
Expand Down
46 changes: 31 additions & 15 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
trigger: none
pr: none
Comment thread
spadapet marked this conversation as resolved.
schedules:
- cron: 0 3 * * 1,2,3,4,5
branches:
include:
- refs/heads/main
name: $(Date:yyyyMMdd).$(Rev:r)
parameters:
- name: OfficialRelease
displayName: "Build and publish an official release"
type: boolean
default: true
Comment thread
spadapet marked this conversation as resolved.
- name: PushNuGetPackages
displayName: "Push NuGet packages to NuGet.org"
type: boolean
default: false
variables:
- name: BuildParameters.vsVersion
Expand All @@ -23,14 +33,6 @@ variables:
value: vscx-tools-authoring
- name: TimestampPackage
value: ${{ not (parameters.OfficialRelease) }}
trigger:
branches:
include:
- refs/heads/main
pr:
branches:
include:
- main
resources:
repositories:
- repository: MicroBuildTemplate
Expand All @@ -54,20 +56,31 @@ extends:
jobs:
- job: Build
displayName: 'Build'
cancelTimeoutInMinutes: 1
cancelTimeoutInMinutes: 30
pool:
name: VSEngSS-MicroBuild2022-1ES
templateContext:
mb:
signing:
enabled: true
signType: $(SignType)
${{ if eq(variables['SignType'], 'real') }}:
Comment thread
spadapet marked this conversation as resolved.
signWithProd: true
sbom:
enabled: true
outputs:
- output: pipelineArtifact
displayName: 'Publish Package Artifacts'
targetPath: $(Build.ArtifactStagingDirectory)\Packages
artifactName: Packages
- output: pipelineArtifact
displayName: 'Publish Logs'
targetPath: $(Build.ArtifactStagingDirectory)\Logs
artifactName: Logs
condition: always()
- output: nuget
displayName: 'NuGet push to NuGet.org'
condition: and(succeeded(), eq(variables['Build.OfficialRelease'], 'true'))
condition: and(succeeded(), eq(variables['Build.OfficialRelease'], 'true'), eq('${{ parameters.PushNuGetPackages }}', 'true'))
packageParentPath: '$(Build.ArtifactStagingDirectory)\Packages'
packagesToPush: $(Build.ArtifactStagingDirectory)\Packages\*.nupkg;!$(Build.ArtifactStagingDirectory)\Packages\*.symbols.nupkg
nuGetFeedType: external
Expand All @@ -87,7 +100,7 @@ extends:
- task: UseDotNet@2
displayName: Use .NET Core SDK
inputs:
version: 6.x
version: 9.0.x
vsVersion: $(BuildParameters.vsVersion)
performMultiLevelLookup: true
- task: NuGetToolInstaller@1
Expand All @@ -101,7 +114,7 @@ extends:
inputs:
vsVersion: $(BuildParameters.vsVersion)
solution: src\BehaviorsSdk.sln
msbuildArgs: /p:PublicRelease=$(Build.OfficialRelease) /p:SignType=$(SignType) /p:NoWarn=1591 /p:DebugType=full /v:diagnostic
msbuildArgs: /p:PublicRelease=$(Build.OfficialRelease) /p:SignType=$(SignType) /p:NoWarn=1591 /p:DebugType=full /bl:$(Build.ArtifactStagingDirectory)\Logs\behaviors_sdk_wpf.binlog
configuration: Release
maximumCpuCount: true
- task: VSTest@2
Expand All @@ -122,22 +135,25 @@ extends:
displayName: Build NuGet package
inputs:
solution: src\Microsoft.Xaml.Behaviors\Microsoft.Xaml.Behaviors.csproj
msbuildArgs: /t:Pack /p:PublicRelease=$(Build.OfficialRelease) /p:SignType=$(SignType) /p:TimestampPackage=$(TimestampPackage) /p:NoWarn=1591 /p:DebugType=full /v:diagnostic
msbuildArgs: /t:Pack /p:PublicRelease=$(Build.OfficialRelease) /p:SignType=$(SignType) /p:TimestampPackage=$(TimestampPackage) /p:NoWarn=1591 /p:DebugType=full
configuration: Release
- task: CopyFiles@2
displayName: 'Copy Symbols to: $(Pipeline.Workspace)\Symbols'
inputs:
SourceFolder: src\Microsoft.Xaml.Behaviors\bin\
Contents: '**\*.pdb'
TargetFolder: $(Pipeline.Workspace)\Symbols
- task: MicroBuildArchiveSymbols@5
- task: MicroBuildArchiveSymbols@6
displayName: Archive Symbols
condition: and(succeeded(), eq(variables['Build.OfficialRelease'], 'true'))
inputs:
azureSubscription: VSEng-SymbolsUpload
SymbolsFeatureName: XamlBehaviorsWpf
SymbolsProject: VS
SymbolsAgentPath: $(Pipeline.Workspace)\Symbols
SubmitToInternet: false
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- task: CopyFiles@2
displayName: 'Copy NuGet Packages to: $(Build.ArtifactStagingDirectory)\Packages'
inputs:
Expand Down
2 changes: 1 addition & 1 deletion es-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ accountableOwners:
routing:
defaultAreaPath:
org: devdiv
path: DevDiv\VS Core\IDE Experience\XAML IntelliSense
path: DevDiv\VS Core\XAML tools
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net462;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net462;net9.0-windows</TargetFrameworks>
Comment thread
spadapet marked this conversation as resolved.
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeProjectToProjectAssets</TargetsForTfmSpecificBuildOutput>
<OutputType>Library</OutputType>
<PackageId>Microsoft.Xaml.Behaviors.Wpf</PackageId>
Expand Down
Loading