Skip to content
Closed
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
44 changes: 41 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,38 @@
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"args": ["test:integration:razor:cohost"],
"cwd": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Debug Gulp Task",
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"args": ["${input:gulpTask}"],
"cwd": "${workspaceFolder}",
"sourceMaps": true,
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
"name": "Debug gulp insertion:roslyn",
"preLaunchTask": "build",
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"args": [
"insertion:roslyn",
"--assetManifestPath=./test-manifests",
"--roslynRepoPath=../roslyn",
"--roslynEndSHA=2eaa09890be9bdc5ea662d54129991355e5c60bb",
"--roslynBuildNumber=5.0.0-2.25430.3",
"--roslynBuildId=2783326",
"--targetBranch=main",
"--githubPAT=${input:githubPAT}",
"--dryRun=false"
],
"cwd": "${workspaceFolder}",
"console": "externalTerminal",
"sourceMaps": true,
"skipFiles": ["<node_internals>/**"]
}
],
"inputs": [
Expand All @@ -275,9 +307,15 @@
"options": ["singleCsproj", "RazorApp", "slnWithCsproj", "slnFilterWithCsproj", "slnWithGenerator"]
},
{
"id": "gulpTaskName",
"description": "The name of the gulp task to debug",
"type": "promptString"
"id": "gulpTask",
"type": "promptString",
"description": "Enter the gulp task name to debug"
},
{
"id": "githubPAT",
"type": "promptString",
"description": "Enter your GitHub Personal Access Token",
"password": true
}
]
}
102 changes: 102 additions & 0 deletions azure-pipelines/dotnet-vscode-csharp-insertion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
trigger: none
pr: none

parameters:
- name: targetBranch
displayName: Target Branch for PR
type: string
default: main

resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: RoslynMirror
type: git
name: internal/dotnet-roslyn
pipelines:
- pipeline: officialBuildCI
source: dotnet-roslyn-official
project: internal
branch: main
trigger: none

variables:
- name: RoslynEndSHA
value: $(resources.pipeline.officialBuildCI.sourceCommit)
- name: RoslynBuildNumber
value: $(resources.pipeline.officialBuildCI.runName)
- name: RoslynBuildId
value: $(resources.pipeline.officialBuildCI.runID)
- template: dotnet-variables.yml

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: netcore1espool-internal
image: 1es-ubuntu-2204
os: linux
stages:
- stage: BumpRoslyn
displayName: Bump Roslyn Version
jobs:
- job: ProcessBump
displayName: Process Roslyn Bump
pool:
name: netcore1espool-internal
image: 1es-ubuntu-2204
os: linux
steps:
- checkout: self
persistCredentials: true

- task: UseDotNet@2
displayName: Install .NET SDK
inputs:
version: $(defaultDotnetVersion)

- template: install-node.yml

- task: DownloadPipelineArtifact@2
displayName: Download Asset Manifests
inputs:
source: specific
project: internal
pipeline: dotnet-roslyn-official
runVersion: specific
runId: $(RoslynBuildId)
artifact: AssetManifests
path: $(Pipeline.Workspace)/AssetManifests

- pwsh: |
npm ci
npm install
npm install -g gulp
gulp installDependencies
displayName: 'Install npm dependencies and gulp'

- checkout: RoslynMirror
displayName: 'Checkout Roslyn repository'
path: roslyn

- script: |
echo "Installing roslyn-tools..."
dotnet tool install -g Microsoft.RoslynTools --prerelease --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json
echo "Verifying roslyn-tools installation..."
dotnet tool list -g
roslyn-tools --help
displayName: 'Install roslyn-tools CLI'

- task: Npm@1
displayName: Run Roslyn insertion
env:
GITHUB_TOKEN: $(System.AccessToken)
GitHubPAT: $(System.AccessToken)
inputs:
command: custom
customCommand: 'run gulp -- insertion:roslyn --assetManifestPath=$(Pipeline.Workspace)/AssetManifests --roslynRepoPath=$(Pipeline.Workspace)/roslyn --roslynEndSHA=$(RoslynEndSHA) --roslynBuildNumber=$(RoslynBuildNumber) --roslynBuildId=$(RoslynBuildId) --targetBranch=${{ parameters.targetBranch }} --githubPAT=$(System.AccessToken) --dryRun=false'


1 change: 1 addition & 0 deletions gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ require('./tasks/debuggerTasks');
require('./tasks/snapTasks');
require('./tasks/signingTasks');
require('./tasks/profilingTasks');
require('./tasks/insertionTasks');
Loading