diff --git a/.azure/pipelines/build.yaml b/.azure/pipelines/build.yaml index 6134df89..a629f4df 100644 --- a/.azure/pipelines/build.yaml +++ b/.azure/pipelines/build.yaml @@ -241,7 +241,7 @@ stages: includeNuGetOrg: false command: custom custom: tool - version: '7.0.x' + version: '8.0.x' arguments: install --ignore-failed-sources --add-source "$(System.DefaultWorkingDirectory)" @@ -274,7 +274,7 @@ stages: inputs: includeNuGetOrg: false command: build - version: '7.0.x' + version: '8.0.x' projects: '**/testadapter/YamlTestAdapter.csproj' arguments: -c $(BuildConfiguration) @@ -295,8 +295,8 @@ stages: az --version az account show cd $(TestResultsPath) - echo dotnet test --logger trx --results-directory "$(Agent.TempDirectory)" --logger:"trx;LogFileName=$(TestRunTrxFileName)" --logger:"console;verbosity=normal" --filter "$(TestFilter)" "$(LocalBinOutputPath)/$(BuildConfiguration)/net7.0/Azure.AI.CLI.TestAdapter.dll" - dotnet test --logger trx --results-directory "$(Agent.TempDirectory)" --logger:"trx;LogFileName=$(TestRunTrxFileName)" --logger:"console;verbosity=normal" --filter "$(TestFilter)" "$(LocalBinOutputPath)/$(BuildConfiguration)/net7.0/Azure.AI.CLI.TestAdapter.dll" + echo dotnet test --logger trx --results-directory "$(Agent.TempDirectory)" --logger:"trx;LogFileName=$(TestRunTrxFileName)" --logger:"console;verbosity=normal" --filter "$(TestFilter)" "$(LocalBinOutputPath)/$(BuildConfiguration)/net8.0/Azure.AI.CLI.TestAdapter.dll" + dotnet test --logger trx --results-directory "$(Agent.TempDirectory)" --logger:"trx;LogFileName=$(TestRunTrxFileName)" --logger:"console;verbosity=normal" --filter "$(TestFilter)" "$(LocalBinOutputPath)/$(BuildConfiguration)/net8.0/Azure.AI.CLI.TestAdapter.dll" # ----------------------------------------------------------------------------- # Archive and publish the test run backup artifact diff --git a/.github/workflows/build-package.yaml b/.github/workflows/build-package.yaml index 0cd920ac..d0feb462 100644 --- a/.github/workflows/build-package.yaml +++ b/.github/workflows/build-package.yaml @@ -18,7 +18,7 @@ jobs: - name: Set up .NET Core uses: actions/setup-dotnet@v2 with: - dotnet-version: '7.0.x' # Set the desired .NET version + dotnet-version: '8.0.x' # Set the desired .NET version - name: Set up environment variables run: | diff --git a/.gitignore b/.gitignore index 6818c46c..4b125cb9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ **/.vscode/** **/bin/*/net6.0/* **/bin/*/net7.0/* +**/bin/*/net8.0/* **/obj/* ideas/website/node_modules/** testresults/** diff --git a/ideas/azure-ai-cli-installation-spec.md b/ideas/azure-ai-cli-installation-spec.md index 32090e24..bbbef258 100644 --- a/ideas/azure-ai-cli-installation-spec.md +++ b/ideas/azure-ai-cli-installation-spec.md @@ -12,7 +12,7 @@ Customer Requirements: - Support Debian 10, 11, and 12 - Support Ubunutu 20.04 and 22.04 - Check and install Azure CLI if not present -- Check and install dotnet 7.0 if not present +- Check and install dotnet 8.0 if not present - Check and install Python azure.ai.generative SDK if not present - Update user's shell rc file (e.g. `$HOME/.bashrc` and/or `$HOME/.zshrc`) diff --git a/ideas/cool-helper-function-scenarios/HelperFunctionsProject.csproj b/ideas/cool-helper-function-scenarios/HelperFunctionsProject.csproj index 36bc2604..faf7eac5 100644 --- a/ideas/cool-helper-function-scenarios/HelperFunctionsProject.csproj +++ b/ideas/cool-helper-function-scenarios/HelperFunctionsProject.csproj @@ -1,11 +1,11 @@ - net7.0 + net8.0 enable enable true - D:\src\ai-cli\src\ai\bin\Debug\net7.0 + D:\src\ai-cli\src\ai\bin\Debug\net8.0 diff --git a/scripts/InstallAzureAICLIDeb.sh b/scripts/InstallAzureAICLIDeb.sh index a8eb0104..f948c04e 100644 --- a/scripts/InstallAzureAICLIDeb.sh +++ b/scripts/InstallAzureAICLIDeb.sh @@ -32,7 +32,7 @@ if ! command -v az &> /dev/null; then fi fi -# Check if dotnet 7.0 is installed +# Check if dotnet 8.0 is installed if ! command -v dotnet &> /dev/null; then echo "dotnet is not installed." dotnet_version=0 @@ -40,11 +40,11 @@ else dotnet_version=$(dotnet --version | cut -d. -f1) fi -if [ "$dotnet_version" -eq "7" ]; then +if [ "$dotnet_version" -eq "8" ]; then dotnet_version=$(dotnet --version) echo "dotnet $dotnet_version is already installed." else - echo "Installing dotnet 7.0..." + echo "Installing dotnet 8.0..." # Update the package list sudo apt-get update @@ -60,11 +60,10 @@ else sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb elif [[ "$CHECK_VERSION" == "22.04" ]]; then - # We don't need to install the Microsoft package signing key for Ubuntu 22.04; in fact, if we do, `dotnet tool` doesn't work - echo "Ubuntu 22.04 detected. Skipping Microsoft package signing key installation." - # wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb - # sudo dpkg -i packages-microsoft-prod.deb - # rm packages-microsoft-prod.deb + # Install the Microsoft package signing key for Ubuntu 20.04 + wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb + sudo dpkg -i packages-microsoft-prod.deb + rm packages-microsoft-prod.deb else echo "Unsupported Ubuntu version: $CHECK_VERSION" exit 1 @@ -96,13 +95,13 @@ else exit 1 fi - # Install dotnet 7.0 runtime + # Install dotnet 8.0 runtime sudo apt-get update - sudo apt-get install -y dotnet-sdk-7.0 + sudo apt-get install -y dotnet-sdk-8.0 # Check if the installation was successful if [ $? -ne 0 ]; then - echo "Failed to install Dotnet 7.0." + echo "Failed to install Dotnet 8.0." exit 1 fi fi diff --git a/src/ai/.x/templates/helper_functions/HelperFunctionsProject.csproj._ b/src/ai/.x/templates/helper_functions/HelperFunctionsProject.csproj._ index 6c9cb517..3663e601 100644 --- a/src/ai/.x/templates/helper_functions/HelperFunctionsProject.csproj._ +++ b/src/ai/.x/templates/helper_functions/HelperFunctionsProject.csproj._ @@ -4,7 +4,7 @@ - net7.0 + net8.0 enable enable true diff --git a/src/ai/.x/templates/openai-chat-cs/OpenAIChatCompletions.csproj._ b/src/ai/.x/templates/openai-chat-cs/OpenAIChatCompletions.csproj._ index 4677a2e0..6ee2c11d 100644 --- a/src/ai/.x/templates/openai-chat-cs/OpenAIChatCompletions.csproj._ +++ b/src/ai/.x/templates/openai-chat-cs/OpenAIChatCompletions.csproj._ @@ -4,7 +4,7 @@ - net7.0 + net8.0 enable enable true diff --git a/src/ai/.x/templates/openai-chat-streaming-cs/OpenAIChatCompletionsStreaming.csproj._ b/src/ai/.x/templates/openai-chat-streaming-cs/OpenAIChatCompletionsStreaming.csproj._ index 4677a2e0..6ee2c11d 100644 --- a/src/ai/.x/templates/openai-chat-streaming-cs/OpenAIChatCompletionsStreaming.csproj._ +++ b/src/ai/.x/templates/openai-chat-streaming-cs/OpenAIChatCompletionsStreaming.csproj._ @@ -4,7 +4,7 @@ - net7.0 + net8.0 enable enable true diff --git a/src/ai/.x/templates/openai-chat-streaming-with-data-cs/OpenAIChatCompletionsWithDataStreaming.csproj._ b/src/ai/.x/templates/openai-chat-streaming-with-data-cs/OpenAIChatCompletionsWithDataStreaming.csproj._ index 4677a2e0..6ee2c11d 100644 --- a/src/ai/.x/templates/openai-chat-streaming-with-data-cs/OpenAIChatCompletionsWithDataStreaming.csproj._ +++ b/src/ai/.x/templates/openai-chat-streaming-with-data-cs/OpenAIChatCompletionsWithDataStreaming.csproj._ @@ -4,7 +4,7 @@ - net7.0 + net8.0 enable enable true diff --git a/src/ai/.x/templates/openai-chat-streaming-with-functions-cs/OpenAIChatCompletionsFunctionsStreaming.csproj._ b/src/ai/.x/templates/openai-chat-streaming-with-functions-cs/OpenAIChatCompletionsFunctionsStreaming.csproj._ index 06e19a27..565629b9 100644 --- a/src/ai/.x/templates/openai-chat-streaming-with-functions-cs/OpenAIChatCompletionsFunctionsStreaming.csproj._ +++ b/src/ai/.x/templates/openai-chat-streaming-with-functions-cs/OpenAIChatCompletionsFunctionsStreaming.csproj._ @@ -4,7 +4,7 @@ - net7.0 + net8.0 enable enable true diff --git a/src/ai/ai-cli.csproj b/src/ai/ai-cli.csproj index 030c0714..fd4bdd5a 100644 --- a/src/ai/ai-cli.csproj +++ b/src/ai/ai-cli.csproj @@ -1,9 +1,8 @@  - net7.0 + net8.0 ai - false Exe win-x64;linux-x64 Debug;Release @@ -27,6 +26,20 @@ true + + false + + + + + true + true + true + true + true + linker.xml + + $(LocalBuildSDKBinPath) bin diff --git a/src/ai/commands/dev_command.cs b/src/ai/commands/dev_command.cs index 114a70fd..cda027cb 100644 --- a/src/ai/commands/dev_command.cs +++ b/src/ai/commands/dev_command.cs @@ -117,11 +117,24 @@ private void DoDevShell() Console.WriteLine(); var runCommand = RunCommandScriptToken.Data().GetOrDefault(_values); - var processOutput = string.IsNullOrEmpty(runCommand) - ? ProcessHelpers.RunShellCommandAsync(fileName, arguments, env, null, null, null, false).Result - : ProcessHelpers.RunShellCommandAsync(runCommand, env, null, null, null, false).Result; - var exitCode = processOutput.ExitCode; + // var processOutput = string.IsNullOrEmpty(runCommand) + // ? ProcessHelpers.RunShellCommandAsync(fileName, arguments, env, null, null, null, false).Result + // : ProcessHelpers.RunShellCommandAsync(runCommand, env, null, null, null, false).Result; + + // var exitCode = processOutput.ExitCode; + + UpdateFileNameArguments(runCommand, ref fileName, ref arguments, out var deleteWhenDone); + + var process = ProcessHelpers.StartProcess(fileName, arguments, env, false); + process.WaitForExit(); + + if (!string.IsNullOrEmpty(deleteWhenDone)) + { + File.Delete(deleteWhenDone); + } + + var exitCode = process.ExitCode; if (exitCode != 0) { Console.WriteLine("\n(ai dev shell) FAILED!\n"); @@ -133,6 +146,41 @@ private void DoDevShell() } } + private static void UpdateFileNameArguments(string runCommand, ref string fileName, ref string arguments, out string? deleteTempFileWhenDone) + { + deleteTempFileWhenDone = null; + + if (!string.IsNullOrEmpty(runCommand)) + { + var isSingleLine = !runCommand.Contains('\n') && !runCommand.Contains('\r'); + if (isSingleLine) + { + var parts = runCommand.Split(new char[] { ' ' }, 2); + var inPath = FileHelpers.FileExistsInOsPath(parts[0]) || (OS.IsWindows() && FileHelpers.FileExistsInOsPath(parts[0] + ".exe")); + + var filePart = parts[0]; + var argsPart = parts.Length == 2 ? parts[1] : null; + + fileName = inPath ? filePart : fileName; + arguments = inPath ? argsPart : (OS.IsLinux() + ? $"-lic \"{runCommand}\"" + : $"/c \"{runCommand}\""); + + Console.WriteLine($"Running command: {runCommand}\n"); + } + else + { + deleteTempFileWhenDone = Path.GetTempFileName() + (OS.IsWindows() ? ".cmd" : ".sh"); + File.WriteAllText(deleteTempFileWhenDone, runCommand); + + fileName = OS.IsLinux() ? "bash" : "cmd.exe"; + arguments = OS.IsLinux() ? $"-lic \"{deleteTempFileWhenDone}\"" : $"/c \"{deleteTempFileWhenDone}\""; + + Console.WriteLine($"Running script:\n\n{runCommand}\n"); + } + } + } + private void DisplayBanner(string which) { if (_quiet) return; diff --git a/src/ai/linker.xml b/src/ai/linker.xml new file mode 100644 index 00000000..45f2eaed --- /dev/null +++ b/src/ai/linker.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/common/common.csproj b/src/common/common.csproj index 88483ccb..0e03114e 100644 --- a/src/common/common.csproj +++ b/src/common/common.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable Azure.AI.CLI.Common diff --git a/src/extensions/helper_functions_extension/FileHelperFunctions.cs b/src/extensions/helper_functions_extension/FileHelperFunctions.cs index d19f5ec8..da22af35 100644 --- a/src/extensions/helper_functions_extension/FileHelperFunctions.cs +++ b/src/extensions/helper_functions_extension/FileHelperFunctions.cs @@ -42,15 +42,20 @@ public static bool DirectoryCreate(string directoryName) return true; } + [HelperFunctionDescription("List files; lists all files regardless of name; only in current directory")] + public static string FindAllFilesInCurrentDirectory() + { + return FindAllFilesMatchingPattern("*"); + } - [HelperFunctionDescription("List files; lists all files regardless of name")] - public static string FindAllFiles() + [HelperFunctionDescription("List files; lists all files regardless of name; searches current directory and all sub-directories")] + public static string FindAllFilesRecursively() { - return FindFilesMatchingPattern("**/*"); + return FindAllFilesMatchingPattern("**/*"); } - [HelperFunctionDescription("List files; lists files matching pattern")] - public static string FindFilesMatchingPattern([HelperFunctionParameterDescription("The pattern to search for; use '**/*.ext' to search sub-directories")] string pattern) + [HelperFunctionDescription("List files; lists all files matching pattern; searches current directory, and if pattern includes '**', all sub-directories")] + public static string FindAllFilesMatchingPattern([HelperFunctionParameterDescription("The pattern to search for; use '**/*.ext' to search sub-directories")] string pattern) { var files = FileHelpers.FindFiles(".", pattern); return string.Join("\n", files); diff --git a/src/extensions/helper_functions_extension/helper_functions_extension.csproj b/src/extensions/helper_functions_extension/helper_functions_extension.csproj index 3761f3cf..f7bb9259 100644 --- a/src/extensions/helper_functions_extension/helper_functions_extension.csproj +++ b/src/extensions/helper_functions_extension/helper_functions_extension.csproj @@ -2,7 +2,7 @@ Azure.AI.CLI.Extensions.HelperFunctions - net7.0 + net8.0 Azure.AI.Details.Common.CLI.Extensions.HelperFunctions enable enable diff --git a/src/extensions/template_extension/TemplateFactory.cs b/src/extensions/template_extension/TemplateFactory.cs index 29f31d0d..60cbee84 100644 --- a/src/extensions/template_extension/TemplateFactory.cs +++ b/src/extensions/template_extension/TemplateFactory.cs @@ -36,7 +36,7 @@ public static bool ListTemplates(string? templateFilter, string? languageFilter) var groups = GetFilteredTemplateGroups(templateFilter, languageFilter); if (groups.Count == 0) { - Console.WriteLine($"No matching templates found\n"); + ConsoleHelpers.WriteLineError($"No matching templates found\n"); groups = GetTemplateGroups(); } diff --git a/src/extensions/template_extension/template_extension.csproj b/src/extensions/template_extension/template_extension.csproj index 6c522271..8d58fd94 100644 --- a/src/extensions/template_extension/template_extension.csproj +++ b/src/extensions/template_extension/template_extension.csproj @@ -2,7 +2,7 @@ Azure.AI.CLI.Extensions.Templates - net7.0 + net8.0 Azure.AI.Details.Common.CLI.Extensions.Templates enable enable diff --git a/src/extensions/test_helper_functions_extension/test_helper_functions_extension.csproj b/src/extensions/test_helper_functions_extension/test_helper_functions_extension.csproj index 80004a38..e2bf0920 100644 --- a/src/extensions/test_helper_functions_extension/test_helper_functions_extension.csproj +++ b/src/extensions/test_helper_functions_extension/test_helper_functions_extension.csproj @@ -2,7 +2,7 @@ Azure.AI.CLI.Extensions.HelperFunctions.Test - net7.0 + net8.0 Azure.AI.Details.Common.CLI.Extensions.HelperFunctions.Test enable enable diff --git a/tests/test3.yaml b/tests/test3.yaml index dd402492..842cadc0 100644 --- a/tests/test3.yaml +++ b/tests/test3.yaml @@ -21,23 +21,47 @@ command: ai chat --question "Why is the sky blue, what's it called" --index-name @none expect: Rayleigh +- name: test ai chat built in functions + command: ai chat --interactive --built-in-functions + input: | + Create a file named "test.txt" with the following content: "Hello, World!" + What files are in the current directory? + Show me what's in the file "test.txt" + expect: | + assistant-function: CreateFileAndSaveText + assistant-function: FindAllFilesInCurrentDirectory + test.txt + Hello, World! + - name: dev new environment command: ai dev new .env - class: dev new helper-functions steps: - name: generate template - command: ai dev new helper-functions + command: ai dev new helper-functions --instructions "Create a helper function named GetPersonsAge that returns ages of people; John is 55; Jane is 53; everyone else, return unknown" - name: build template bash: | cd helper-functions dotnet build - name: run template - command: ai chat --interactive --helper-functions helper-functions/bin/Debug/net7.0/HelperFunctionsProject.dll + command: ai chat --interactive --helper-functions helper-functions/bin/Debug/net8.0/HelperFunctionsProject.dll input: | What is my name? + How old is John? + How old is Jane? + How old is Bob? expect: | assistant-function: GetUsersName\({}\) = + assistant-function: GetPersonsAge\({ + John + }\) = + 55 + assistant-function: GetPersonsAge\({ + Jane + }\) = + 53 + [Uu]nknown - area: ai dev new openai-chat tests: @@ -51,7 +75,7 @@ cd openai-chat-cs dotnet build - name: run template - command: ai dev shell --run "openai-chat-cs\bin\Debug\net7.0\OpenAIChatCompletions" + command: ai dev shell --run "openai-chat-cs\bin\Debug\net8.0\OpenAIChatCompletions" input: |- Tell me a joke Tell me another joke @@ -117,6 +141,7 @@ bash: | cd openai-chat-py pip install -r requirements.txt + tag: skip - name: run template command: ai dev shell --run "cd openai-chat-py && python openai_chat_completions.py" input: |- @@ -136,7 +161,7 @@ cd openai-chat-streaming-cs dotnet build - name: run template - command: ai dev shell --run "openai-chat-streaming-cs\bin\Debug\net7.0\OpenAIChatCompletionsStreaming" + command: ai dev shell --run "openai-chat-streaming-cs\bin\Debug\net8.0\OpenAIChatCompletionsStreaming" input: |- Tell me a joke Tell me another joke @@ -202,6 +227,7 @@ bash: | cd openai-chat-streaming-py pip install -r requirements.txt + tag: skip - name: run template command: ai dev shell --run "cd openai-chat-streaming-py && python main.py" input: |- @@ -221,7 +247,7 @@ cd openai-chat-streaming-with-data-cs dotnet build - name: run template - command: ai dev shell --run "openai-chat-streaming-with-data-cs\bin\Debug\net7.0\OpenAIChatCompletionsWithDataStreaming" + command: ai dev shell --run "openai-chat-streaming-with-data-cs\bin\Debug\net8.0\OpenAIChatCompletionsWithDataStreaming" input: |- What parameter should i use to select my resources? tag: skip @@ -248,11 +274,13 @@ bash: | cd openai-chat-streaming-with-data-py pip install -r requirements.txt + tag: skip - name: run template command: ai dev shell --run "cd openai-chat-streaming-with-data-py && python main.py" input: |- What parameter should i use to select my resources? tag: skip + - class: dev new openai-chat-streaming-with-data (go) steps: - name: generate template @@ -279,7 +307,7 @@ cd openai-chat-streaming-with-functions-cs dotnet build - name: run template - command: ai dev shell --run "cd openai-chat-streaming-with-functions-cs && bin\Debug\net7.0\OpenAIChatCompletionsFunctionsStreaming" + command: ai dev shell --run "cd openai-chat-streaming-with-functions-cs && bin\Debug\net8.0\OpenAIChatCompletionsFunctionsStreaming" input: |- What is the date? What is the time? @@ -324,6 +352,7 @@ bash: | cd openai-chat-streaming-with-functions-py pip install -r requirements.txt + tag: skip - name: run template command: ai dev shell --run "cd openai-chat-streaming-with-functions-py && python main.py" input: |- diff --git a/tests/testadapter/README.md b/tests/testadapter/README.md index 40189c92..48d22e4e 100644 --- a/tests/testadapter/README.md +++ b/tests/testadapter/README.md @@ -26,12 +26,12 @@ From fresh clone (one step, CLI): OR ... [Build](#BUILD) first, then w/CLI: * DEBUG: ```dotnetcli - cd tests\testadapter\bin\Debug\net7.0 + cd tests\testadapter\bin\Debug\net8.0 dotnet test Azure.AI.CLI.TestAdapter.dll --logger:trx ``` * RELEASE: ```dotnetcli - cd tests\testadapter\bin\Release\net7.0 + cd tests\testadapter\bin\Release\net8.0 dotnet test Azure.AI.CLI.TestAdapter.dll --logger:trx --logger:console;verbosity=normal ``` @@ -39,12 +39,12 @@ OR ... [Build](#BUILD) first, then w/CLI: OR ... [Build](#BUILD) first, then w/CLI: * DEBUG: ```dotnetcli - cd tests\testadapter\bin\Debug\net7.0 + cd tests\testadapter\bin\Debug\net8.0 dotnet vstest Azure.AI.CLI.TestAdapter.dll --logger:trx ``` * RELEASE: ```dotnetcli - cd tests\testadapter\bin\Release\net7.0 + cd tests\testadapter\bin\Release\net8.0 dotnet vstest Azure.AI.CLI.TestAdapter.dll --logger:trx --logger:console;verbosity=normal ``` @@ -70,12 +70,12 @@ From fresh clone (one step, CLI): OR ... [Build](#BUILD) first, then w/CLI: * DEBUG: ```dotnetcli - cd tests\testadapter\bin\Debug\net7.0 + cd tests\testadapter\bin\Debug\net8.0 dotnet test Azure.AI.CLI.TestAdapter.dll -t ``` * RELEASE: ```dotnetcli - cd tests\testadapter\bin\Release\net7.0 + cd tests\testadapter\bin\Release\net8.0 dotnet test Azure.AI.CLI.TestAdapter.dll -t ``` @@ -83,12 +83,12 @@ OR ... [Build](#BUILD) first, then w/CLI: OR ... [Build](#BUILD) first, then w/CLI: * DEBUG: ```dotnetcli - cd tests\testadapter\bin\Debug\net7.0 + cd tests\testadapter\bin\Debug\net8.0 dotnet vstest Azure.AI.CLI.TestAdapter.dll -lt ``` * RELEASE: ```dotnetcli - cd tests\testadapter\bin\Release\net7.0 + cd tests\testadapter\bin\Release\net8.0 dotnet vstest Azure.AI.CLI.TestAdapter.dll -lt ``` @@ -110,12 +110,12 @@ OR ... [Build](#BUILD) first, then w/CLI: * DEBUG: ```dotnetcli - cd tests\testadapter\bin\Debug\net7.0 + cd tests\testadapter\bin\Debug\net8.0 dotnet test --filter:name~PARTIAL_NAME Azure.AI.CLI.TestAdapter.dll ``` * RELEASE: ```dotnetcli - cd tests\testadapter\bin\Release\net7.0 + cd tests\testadapter\bin\Release\net8.0 dotnet test --filter:name~PARTIAL_NAME Azure.AI.CLI.TestAdapter.dll ``` @@ -123,12 +123,12 @@ OR ... [Build](#BUILD) first, then w/CLI: OR ... [Build](#BUILD) first, then w/CLI: * DEBUG: ```dotnetcli - cd tests\testadapter\bin\Debug\net7.0 + cd tests\testadapter\bin\Debug\net8.0 dotnet vstest Azure.AI.CLI.TestAdapter.dll --logger:trx --testcasefilter:name~PARTIAL_NAME ``` * RELEASE: ```dotnetcli - cd tests\testadapter\bin\Release\net7.0 + cd tests\testadapter\bin\Release\net8.0 dotnet vstest Azure.AI.CLI.TestAdapter.dll --logger:trx --testcasefilter:name~PARTIAL_NAME ``` diff --git a/tests/testadapter/YamlTestAdapter.csproj b/tests/testadapter/YamlTestAdapter.csproj index 49849286..c359a4ce 100644 --- a/tests/testadapter/YamlTestAdapter.csproj +++ b/tests/testadapter/YamlTestAdapter.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 diff --git a/tests/testadapter/YamlTestAdapterCommon.targets b/tests/testadapter/YamlTestAdapterCommon.targets index 0a1f5428..3da5c71a 100644 --- a/tests/testadapter/YamlTestAdapterCommon.targets +++ b/tests/testadapter/YamlTestAdapterCommon.targets @@ -2,7 +2,7 @@ - net7.0 + net8.0 Library Azure.AI.CLI.TestAdapter false diff --git a/tests/testframework/YamlTestFramework.csproj b/tests/testframework/YamlTestFramework.csproj index 74d60cbe..3c4af653 100644 --- a/tests/testframework/YamlTestFramework.csproj +++ b/tests/testframework/YamlTestFramework.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 diff --git a/tests/testframework/YamlTestFrameworkCommon.targets b/tests/testframework/YamlTestFrameworkCommon.targets index ae2fd904..4646d02c 100644 --- a/tests/testframework/YamlTestFrameworkCommon.targets +++ b/tests/testframework/YamlTestFrameworkCommon.targets @@ -2,7 +2,7 @@ - net7.0 + net8.0 Library Azure.AI.CLI.TestFramework false diff --git a/tests/testrunner/YamlTestRunner.csproj b/tests/testrunner/YamlTestRunner.csproj index 4a17b466..e04b5a5f 100644 --- a/tests/testrunner/YamlTestRunner.csproj +++ b/tests/testrunner/YamlTestRunner.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 Exe diff --git a/tests/testrunner/YamlTestRunnerCommon.targets b/tests/testrunner/YamlTestRunnerCommon.targets index 6755939a..5ae2055c 100644 --- a/tests/testrunner/YamlTestRunnerCommon.targets +++ b/tests/testrunner/YamlTestRunnerCommon.targets @@ -2,7 +2,7 @@ - net7.0 + net8.0 ait false