Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Updates #50

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
39 changes: 17 additions & 22 deletions .pipelines/TextUtility-Official.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
name: TextUtility-ModuleBuild-$(Build.BuildId)
trigger: none
pr: none
trigger:
- main

schedules:
- cron: '0 3 * * 1'
displayName: Weekly Build
displayName: Weekly CodeQL
branches:
include:
- main
always: true

parameters:
- name: 'publishToPowerShellGallery'
displayName: 'Publish module to PowerShell gallery'
type: boolean
default: false
- name: debug
displayName: Enable debug output
type: boolean
default: false

variables:
system.debug: ${{ parameters.debug }}
BuildConfiguration: Release
WindowsContainerImage: onebranch.azurecr.io/windows/ltsc2022/vse2022:latest
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_CLI_TELEMETRY_OPTOUT: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
WindowsContainerImage: onebranch.azurecr.io/windows/ltsc2022/vse2022:latest

resources:
repositories:
Expand All @@ -36,16 +33,17 @@ extends:
# https://aka.ms/obpipelines/templates
template: v2/OneBranch.Official.CrossPlat.yml@templates
parameters:
featureFlags:
WindowsHostVersion: '1ESWindows2022'
globalSdl: # https://aka.ms/obpipelines/sdl
asyncSdl:
enabled: true
forStages: [build]
#credscan:
# enabled: true
# scanfolder: $(Build.SourcesDirectory)
# suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
featureFlags:
EnableCDPxPAT: false
WindowsHostVersion:
Version: 2022
Network: KS3
release:
category: NonAzure
stages:
- stage: build
jobs:
Expand All @@ -54,10 +52,7 @@ extends:
pool:
type: windows
variables:
- name: ob_outputDirectory
value: $(Build.SourcesDirectory)/out
#- name: ob_sdl_credscan_suppressionsFile
# value: $(Build.SourcesDirectory)\.config\suppress.json
ob_outputDirectory: $(Build.SourcesDirectory)/out
steps:
- pwsh: |
Write-Verbose -Verbose ((Get-Item $(Build.SourcesDirectory)).FullName)
Expand Down
6 changes: 6 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<ModuleVersion>0.5.0</ModuleVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
</Project>
6 changes: 6 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<ItemGroup>
<PackageVersion Include="PowerShellStandard.Library" Version="5.1.1" />
<PackageVersion Include="System.Text.Json" Version="6.0.11" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Microsoft.PowerShell.TextUtility.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@{
RootModule = '.\Microsoft.PowerShell.TextUtility.dll'
ModuleVersion = '0.5.0'
ModuleVersion = '{{ModuleVersion}}'
CompatiblePSEditions = @('Desktop', 'Core')
GUID = '5cb64356-cd04-4a18-90a4-fa4072126155'
Author = 'Microsoft Corporation'
Expand Down
6 changes: 3 additions & 3 deletions src/code/Microsoft.PowerShell.TextUtility.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0-*">
<PackageReference Include="PowerShellStandard.Library">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Text.Json" Version="6.0.6" >
<PackageReference Include="System.Text.Json" >
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand All @@ -28,4 +28,4 @@
</Content>
</ItemGroup>

</Project>
</Project>
68 changes: 0 additions & 68 deletions yaml/ci.yml

This file was deleted.

188 changes: 0 additions & 188 deletions yaml/releaseBuild.yml

This file was deleted.

19 changes: 0 additions & 19 deletions yaml/template/runtest.yml

This file was deleted.

Loading