{ "inputs": [ { "default": "Development", "description": "Which ASP Net Core Environment?", "id": "ASPNETCORE_ENVIRONMENT", "options": [ "Development", "Production" ], "type": "pickString" }, { "default": "${input:AssemblyTitle}", "description": "What Assembly Title?", "id": "AssemblyTitle", "type": "promptString" }, { "default": "{Build.BuildId}", "description": "Which Build BuildId?", "id": "Build.BuildId", "type": "promptString" }, { "default": "{Build.Reason}", "description": "Which Build Reason?", "id": "Build.Reason", "type": "promptString" }, { "default": "{Build.Repository.Id}", "description": "Which Build Repository Id?", "id": "Build.Repository.Id", "type": "promptString" }, { "default": "{Build.Repository.Name}", "description": "Which Build Repository Name?", "id": "Build.Repository.Name", "type": "promptString" }, { "default": "{Build.SourceVersion}", "description": "Which Build Source Version?", "id": "Build.SourceVersion", "type": "promptString" }, { "default": "Debug", "description": "Which Configuration?", "id": "Configuration", "options": [ "Debug", "Release" ], "type": "pickString" }, { "default": "net8.0", "description": "Which Core Version?", "id": "CoreVersion", "options": [ "net8.0" ], "type": "pickString" }, { "default": "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe", "description": "Which MS Build?", "id": "MSBuild", "type": "promptString" }, { "default": "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/", "description": "Which Nuget Source?", "id": "NugetSource", "type": "promptString" }, { "default": "win-x64", "description": "Which Runtime?", "id": "Runtime", "options": [ "win-x64", "win-x32", "linux-x64", "linux-x32" ], "type": "pickString" }, { "default": "L:/", "description": "Which System DefaultWorkingDirectory?", "id": "System.DefaultWorkingDirectory", "options": [ "L:/", "D:/", "C:/" ], "type": "pickString" }, { "default": "v4.8", "description": "Which Core Target Framework Version?", "id": "TargetFrameworkVersion", "options": [ "v4.8" ], "type": "pickString" } ], "tasks": [ { "command": "dotnet OI.Metrology.Wafer.Counter.dll", "label": "Dotnet Run Debug", "options": { "cwd": "${workspaceFolder}/bin/Debug/net8.0" }, "problemMatcher": [], "type": "shell" }, { "args": [ "build" ], "command": "dotnet", "label": "Build", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "build", "${workspaceFolder}/../Tests/OI.Metrology.Tests.csproj" ], "command": "dotnet", "label": "Build Tests", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "test", "${workspaceFolder}/../Tests/OI.Metrology.Tests.csproj" ], "command": "dotnet", "label": "Test Debug", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "test", "${workspaceFolder}/../Tests/OI.Metrology.Tests.csproj", "-c", "Release" ], "command": "dotnet", "label": "Test Release", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "format", "--report", ".vscode", "--verbosity", "detailed", "--severity", "warn" ], "command": "dotnet", "label": "Format", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "format", "whitespace" ], "command": "dotnet", "label": "Format Whitespace", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "publish", "--configuration", "Release", "--runtime", "win-x64", "--self-contained", "-o", "D:/web-sites/OI-Metrology/oo-8e5dd137-_______-OI-Metrology-Release/Wafer-Counter" ], "command": "dotnet", "label": "Publish", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "publish", "--configuration", "Release", "--runtime", "win-x64", "-p:PublishAot=true", "/property:GenerateFullPaths=true" ], "command": "dotnet", "label": "Publish AOT", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "watch", "run" ], "command": "dotnet", "label": "Old Watch", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "watch", "--launch-profile", "http", "run", "--verbose" ], "command": "dotnet", "dependsOn": [ "Build" ], "isBackground": true, "label": "Watch", "problemMatcher": { "background": { "activeOnStart": true, "beginsPattern": "^.*Shutdown requested.*", "endsPattern": "^.*Application started.*" }, "fileLocation": "relative", "pattern": { "code": 4, "file": 1, "location": 2, "message": 5, "regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$", "severity": 3 } }, "type": "process" }, { "command": "echo Assembly Title: ${input:AssemblyTitle} & echo Build Id: ${input:Build.BuildId} & echo Build Reason: ${input:Build.Reason} & echo Repo Id: ${input:Build.Repository.Id} & echo Repo Name: ${input:Build.Repository.Name} & echo Source Version: ${input:Build.SourceVersion} & echo Configuration: ${input:Configuration} & echo Core Version: ${input:CoreVersion} & echo Nuget Source: ${input:NugetSource} & echo Runtime: ${input:Runtime}", "label": "Echo Check", "problemMatcher": [], "type": "shell" }, { "command": "dotnet user-secrets init & dotnet user-secrets set BuildNumber ${input:Build.BuildId} & dotnet user-secrets set GitCommit ${input:Build.SourceVersion} & dotnet user-secrets list", "label": "Server - Safe storage of app secrets", "problemMatcher": [], "type": "shell" }, { "args": [ "build", "--configuration", "${input:Configuration}", "--source", "${input:NugetSource}" ], "command": "dotnet", "label": "Wafer Counter - Build", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "build", "${workspaceFolder}/../Tests/OI.Metrology.Tests.csproj", "--configuration", "${input:Configuration}", "--source", "${input:NugetSource}" ], "command": "dotnet", "label": "Tests - Build", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "test", "${workspaceFolder}/../Tests/OI.Metrology.Tests.csproj", "--configuration", "${input:Configuration}" ], "command": "dotnet", "label": "Tests - Test", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "publish", "--configuration", "${input:Configuration}", "--runtime", "${input:Runtime}", "--self-contained" ], "command": "dotnet", "label": "Wafer-Counter - Publish", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "publish", "--configuration", "${input:Configuration}", "--runtime", "${input:Runtime}", "-p:PublishAot=true" ], "command": "dotnet", "label": "Wafer-Counter - AOT Publish", "problemMatcher": "$msCompile", "type": "process" }, { "command": "(robocopy /MIR \"bin/${input:Configuration}/${input:CoreVersion}/${input:Runtime}/publish\" \"D:/${input:CoreVersion}/${input:Runtime}/${input:Build.Repository.Name}/${input:Build.BuildId}/${input:Configuration}-${input:AssemblyTitle}-AOT\") ^& IF %ERRORLEVEL% LEQ 7 exit 0", "label": "Copy Files to: D:/", "problemMatcher": [], "type": "shell" }, { "args": [ "tool", "restore" ], "command": "dotnet", "label": "Tool Restore", "problemMatcher": [], "type": "process" }, { "args": [ "ReportGenerator", "-reports:${input:System.DefaultWorkingDirectory}/TestResults/**/coverage.cobertura.xml", "-targetDir:${input:Build.ArtifactStagingDirectory}/Coverage", "-reportTypes:Html_Dark" ], "command": "dotnet", "label": "Report Generator", "problemMatcher": [], "type": "process" }, { "args": [ "clean", "${workspaceFolder}/../Tests/OI.Metrology.Tests.csproj", "--configuration", "${input:Configuration}" ], "command": "dotnet", "label": "Tests - Clean", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "clean", "--configuration", "${input:Configuration}" ], "command": "dotnet", "label": "Wafer Counter - Clean", "problemMatcher": "$msCompile", "type": "process" }, { "args": [ "Wafer-Counter - Publish", "Tool Restore", "Report Generator" ], "command": "echo", "dependsOn": [ "Echo Check", "Server - Safe storage of app secrets", "Wafer Counter - Build", "Tests - Build", "Tests - Test", "Wafer-Counter - AOT Publish", "Copy Files to: D:/", "Tests - Clean", "Wafer Counter - Clean" ], "dependsOrder": "sequence", "label": "Pipeline", "problemMatcher": [], "type": "shell" } ], "version": "2.0.0" }