Skip to content

Commit c92bc0a

Browse files
authored
Add license info to the Azure DevOps package (#6160)
1 parent 60dac58 commit c92bc0a

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
override.json
22
package-lock.json
3-
VSIXPackageVersion.json
3+
VSIXPackageVersion.json
4+
LICENSE

src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/build.ps1

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
param (
22
[string]$OutputPath,
33
[string]$Version = $null,
4-
[bool]$IncludeTestPackage = $false
4+
[switch]$IncludeTestPackage = $false
55
)
66

77
# if version is not set, then run a script to get it
@@ -22,7 +22,7 @@ if ($null -eq $PackageVersion)
2222
Write-Host "Using version $PackageVersion"
2323

2424
# Write-Information "Building Report Publishing task"
25-
Push-Location $PSScriptRoot/tasks/PublishAIEvaluationReport
25+
Set-Location $PSScriptRoot/tasks/PublishAIEvaluationReport
2626
npm install --omit=dev
2727
# Copy task files to dist folder
2828
New-Item -ItemType Directory -Path ./dist -Force
@@ -32,23 +32,26 @@ copy-item -Path ./package.json -Destination ./dist/ -Force
3232
copy-item -Path ./node_modules -Destination ./dist/node_modules -Force -Recurse
3333

3434
# remove the test files from resolve package because they are currently breaking vsix signing (zero length)
35-
remove-item -Path ./dist/node_modules/resolve/test -Recurse -Force
35+
remove-item -Path ./dist/node_modules/resolve/test -Recurse -Force -ErrorAction SilentlyContinue
3636

3737
@{ version = $PackageVersion
38-
public = $true } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json
39-
38+
public = $true } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json -Encoding ascii
39+
4040
# Write-Information "Building Extension Package"
4141
Set-Location $PSScriptRoot
4242
npm install
4343
npx tsc -b
4444
npx vite build
45+
46+
# Copy LICENSE file from the root
47+
copy-item -Path $PSScriptRoot/../../../../../LICENSE -Destination . -Force
4548

4649
npx tfx-cli extension create --overrides-file $PSScriptRoot/override.json --output-path $OutputPath
4750

4851
if ($true -eq $IncludeTestPackage) {
4952
@{ version = $PackageVersion
5053
id = "microsoft-extensions-ai-evaluation-report-test"
51-
name = "[TEST] Azure DevOps AI Evaluation Report" } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json
54+
name = "[TEST] Azure DevOps AI Evaluation Report" } | ConvertTo-Json -Compress | Out-File -FilePath $PSScriptRoot/override.json -Encoding ascii
5255

5356
# Build Preview version of the extension for testing
5457
npx tfx-cli extension create --overrides-file $PSScriptRoot/override.json --output-path $OutputPath

src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/vss-extension.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,26 @@
2525
"content": {
2626
"details": {
2727
"path": "overview.md"
28+
},
29+
"license": {
30+
"path": "LICENSE"
31+
}
32+
},
33+
"links": {
34+
"getstarted": {
35+
"uri": "https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/evaluate-ai-response"
36+
},
37+
"learn": {
38+
"uri": "https://learn.microsoft.com/en-us/dotnet/ai/conceptual/evaluation-libraries"
39+
},
40+
"privacypolicy": {
41+
"uri": "https://privacy.microsoft.com/en-us/privacystatement"
2842
}
2943
},
44+
"repository": {
45+
"type": "git",
46+
"uri": "https://github.com/dotnet/extensions"
47+
},
3048
"contributions": [
3149
{
3250
"id": "build-results-html",

0 commit comments

Comments
 (0)