Skip to content

Commit

Permalink
fix(vscode): Refactor Parameters.json into a separate artifact class …
Browse files Browse the repository at this point in the history
…when converting to NuGet project (#5116)

fix(vscode) AddParametersToArtifacts
  • Loading branch information
mireedmsft committed Jul 15, 2024
1 parent ab7f84e commit d04e8a9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ async function updateBuildFile(context: IActionContext, target: vscode.Uri, dotn
xmlBuildFile = addFileToBuildPath(xmlBuildFile, connectionFile);
}

for (const parametersFile of projectArtifacts['parameters']) {
xmlBuildFile = addFileToBuildPath(xmlBuildFile, parametersFile);
}

if (projectArtifacts['lib']) {
xmlBuildFile = addLibToPublishPath(xmlBuildFile);
}
Expand Down Expand Up @@ -245,6 +249,7 @@ async function getArtifactNamesFromProject(target: vscode.Uri): Promise<Record<s
const artifactDict: Record<string, string[]> = {
workflows: [],
connections: [],
parameters: [],
artifacts: [],
lib: [],
};
Expand All @@ -256,7 +261,7 @@ async function getArtifactNamesFromProject(target: vscode.Uri): Promise<Record<s
}

if (file === parametersFileName) {
artifactDict['connections'].push(parametersFileName);
artifactDict['parameters'].push(parametersFileName);
}

if (file === 'Artifacts') {
Expand Down

0 comments on commit d04e8a9

Please sign in to comment.