From 7045cf45100c1bf7fb564abbc0c041eb69b257b1 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Sat, 6 Nov 2021 00:46:44 -0700 Subject: [PATCH 01/28] Install .NET6 SDK as well in iqsharp-base Docker image (#538) * Install .NET6 SDK as well in iqsharp-base Docker image * Group install of .NET packages in a single call. --- images/iqsharp-base/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 6618d38585..32bb39e547 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -42,6 +42,7 @@ ENV NUGET_XMLDOC_MODE=skip \ DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true # Now that we have all the dependencies in place, we install the .NET Core SDK itself. +# Notice that we're installing the SDK for both .NET Core 3.1 as well as .NET 6.0 for compatibility. RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg && \ mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ && \ wget -q https://packages.microsoft.com/config/debian/9/prod.list && \ @@ -49,7 +50,7 @@ RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \ chown root:root /etc/apt/sources.list.d/microsoft-prod.list && \ apt-get -y update && \ - apt-get -y install dotnet-sdk-3.1 && \ + apt-get -y install dotnet-sdk-3.1 dotnet-sdk-6.0 && \ apt-get clean && rm -rf /var/lib/apt/lists/ # Install prerequisites needed for integration with Live Share and VS Online. From 4243b5da6320ff6aed5ea982f8cd18dcbe16c666 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Sun, 14 Nov 2021 18:02:55 -0800 Subject: [PATCH 02/28] Retarget IQ# netcoreapp3.1 binaries only to net6.0 --- .vscode/launch.json | 2 +- build/manifest.ps1 | 4 ++-- src/Core/References/NugetPackages.cs | 8 ++++---- src/Tests/Tests.IQsharp.csproj | 2 +- src/Tool/Tool.csproj | 2 +- src/Web/Web.csproj | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8388d2e09a..d314976aa6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/src/Tool/bin/Debug/netcoreapp3.1/Microsoft.Quantum.IQSharp.dll", + "program": "${workspaceFolder}/src/Tool/bin/Debug/net6.0/Microsoft.Quantum.IQSharp.dll", "args": [], "cwd": "${workspaceFolder}/src/Tool", // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console diff --git a/build/manifest.ps1 b/build/manifest.ps1 index feac94c3d2..3799cacb1a 100644 --- a/build/manifest.ps1 +++ b/build/manifest.ps1 @@ -31,8 +31,8 @@ $artifacts = @{ "./src/ExecutionPathTracer/bin/$Env:BUILD_CONFIGURATION/netstandard2.1/Microsoft.Quantum.IQSharp.ExecutionPathTracer.dll", "./src/Jupyter/bin/$Env:BUILD_CONFIGURATION/netstandard2.1/Microsoft.Quantum.IQSharp.Jupyter.dll", "./src/Kernel/bin/$Env:BUILD_CONFIGURATION/netstandard2.1/Microsoft.Quantum.IQSharp.Kernel.dll", - "./src/Tool/bin/$Env:BUILD_CONFIGURATION/netcoreapp3.1/Microsoft.Quantum.IQSharp.dll", - "./src/Web/bin/$Env:BUILD_CONFIGURATION/netcoreapp3.1/Microsoft.Quantum.IQSharp.Web.dll" + "./src/Tool/bin/$Env:BUILD_CONFIGURATION/net6.0/Microsoft.Quantum.IQSharp.dll", + "./src/Web/bin/$Env:BUILD_CONFIGURATION/net6.0/Microsoft.Quantum.IQSharp.Web.dll" ) | ForEach-Object { Join-Path $PSScriptRoot (Join-Path ".." $_) }; } diff --git a/src/Core/References/NugetPackages.cs b/src/Core/References/NugetPackages.cs index 4407aefcde..ff63d66a0b 100644 --- a/src/Core/References/NugetPackages.cs +++ b/src/Core/References/NugetPackages.cs @@ -47,7 +47,7 @@ public class Settings : Workspace.Settings } // The framework used to find packages. - public static NuGetFramework NETCOREAPP3_1 = NuGetFramework.ParseFolder("netcoreapp3.1"); + public static NuGetFramework NET6_0 = NuGetFramework.ParseFolder("net6.0"); // Nuget's logger. public NuGetLogger Logger { get; } @@ -311,7 +311,7 @@ string[] CheckOnFramework(NuGetFramework framework) return files.ToArray(); } - var names = CheckOnFramework(NETCOREAPP3_1); + var names = CheckOnFramework(NET6_0); Assembly? LoadAssembly(string path) { @@ -409,7 +409,7 @@ public IEnumerable ResolveDependencyGraph(PackageId dependencyBehavior: DependencyBehavior.Lowest, targetIds: new[] { pkgId.Id }, requiredPackageIds: Enumerable.Empty(), - packagesConfig: Items.Select(p => new PackageReference(p, NETCOREAPP3_1, true)), + packagesConfig: Items.Select(p => new PackageReference(p, NET6_0, true)), preferredVersions: Enumerable.Empty(), availablePackages: AvailablePackages, packageSources: Repositories.Select(s => s.PackageSource), @@ -476,7 +476,7 @@ internal async Task FindDependencies( var dependencyInfoResource = await repo.GetResourceAsync(); if (dependencyInfoResource == null) continue; - var dependencyInfo = await dependencyInfoResource.ResolvePackage(package, NETCOREAPP3_1, context, this.Logger, CancellationToken.None); + var dependencyInfo = await dependencyInfoResource.ResolvePackage(package, NET6_0, context, this.Logger, CancellationToken.None); if (dependencyInfo == null) continue; AvailablePackages.Add(dependencyInfo); diff --git a/src/Tests/Tests.IQsharp.csproj b/src/Tests/Tests.IQsharp.csproj index b9ace218bc..b353f0506c 100644 --- a/src/Tests/Tests.IQsharp.csproj +++ b/src/Tests/Tests.IQsharp.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net6.0 x64 false 1701 diff --git a/src/Tool/Tool.csproj b/src/Tool/Tool.csproj index 5872a1cf2e..d6adb27cf4 100644 --- a/src/Tool/Tool.csproj +++ b/src/Tool/Tool.csproj @@ -3,7 +3,7 @@ Exe x64 - netcoreapp3.1 + net6.0 Microsoft.Quantum.IQSharp Microsoft.Quantum.IQSharp diff --git a/src/Web/Web.csproj b/src/Web/Web.csproj index 913d5d6017..82c2173316 100644 --- a/src/Web/Web.csproj +++ b/src/Web/Web.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net6.0 x64 Microsoft.Quantum.IQSharp.Web Microsoft.Quantum.IQSharp.Web From 96d908ff141e53d34805ad6a2a761a6a7e125ab8 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Mon, 15 Nov 2021 16:25:28 -0800 Subject: [PATCH 03/28] Change NuGet version for packages tests --- src/Tests/NugetPackagesTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/NugetPackagesTests.cs b/src/Tests/NugetPackagesTests.cs index 9425f720a6..a79e52a23f 100644 --- a/src/Tests/NugetPackagesTests.cs +++ b/src/Tests/NugetPackagesTests.cs @@ -24,7 +24,7 @@ public class NugetPackagesTests /// We use a known-good version to avoid breaking IQ# tests due to changes in Libraries /// also, to make sure an end-to-end QDK build does not have circular build dependencies /// between Libraries and IQ#. - public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.12.20070124"); + public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.20.2111176228-beta"); public NugetPackages Init() { From aa01d8d0a5cb49350c28c9188d0f61109f2c73b5 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 16 Nov 2021 00:27:29 +0000 Subject: [PATCH 04/28] Build 0.20.2111.176301. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 32bb39e547..033c92ddc9 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.18.2106148499-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.20.2111176301-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 25a150da78..05c63e7e48 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index ab561c1845..669c0d8655 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 240949c313..09bce2a6d4 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index 0743e4d597..672323cc47 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index 0743e4d597..672323cc47 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index 721201ed3f..bdbb9ec687 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index 7576a58332..97b596ef7e 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 76ffb3abc8..a8bd044066 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 6c8b031d58..bf779977f9 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.18.2106148911", - "Microsoft.Quantum.CSharpGeneration::0.18.2106148911", - "Microsoft.Quantum.Development.Kit::0.18.2106148911", - "Microsoft.Quantum.Simulators::0.18.2106148911", - "Microsoft.Quantum.Xunit::0.18.2106148911", - "Microsoft.Quantum.Standard::0.18.2106148911", - "Microsoft.Quantum.Standard.Visualization::0.18.2106148911", - "Microsoft.Quantum.Chemistry::0.18.2106148911", - "Microsoft.Quantum.Chemistry.Jupyter::0.18.2106148911", - "Microsoft.Quantum.MachineLearning::0.18.2106148911", - "Microsoft.Quantum.Numerics::0.18.2106148911", - "Microsoft.Quantum.Katas::0.18.2106148911", - "Microsoft.Quantum.Research::0.18.2106148911", - "Microsoft.Quantum.Providers.IonQ::0.18.2106148911", - "Microsoft.Quantum.Providers.Honeywell::0.18.2106148911", - "Microsoft.Quantum.Providers.QCI::0.18.2106148911" + "Microsoft.Quantum.Compiler::0.20.2111176301-beta", + "Microsoft.Quantum.CSharpGeneration::0.20.2111176301-beta", + "Microsoft.Quantum.Development.Kit::0.20.2111176301-beta", + "Microsoft.Quantum.Simulators::0.20.2111176301-beta", + "Microsoft.Quantum.Xunit::0.20.2111176301-beta", + "Microsoft.Quantum.Standard::0.20.2111176301-beta", + "Microsoft.Quantum.Standard.Visualization::0.20.2111176301-beta", + "Microsoft.Quantum.Chemistry::0.20.2111176301-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.20.2111176301-beta", + "Microsoft.Quantum.MachineLearning::0.20.2111176301-beta", + "Microsoft.Quantum.Numerics::0.20.2111176301-beta", + "Microsoft.Quantum.Katas::0.20.2111176301-beta", + "Microsoft.Quantum.Research::0.20.2111176301-beta", + "Microsoft.Quantum.Providers.IonQ::0.20.2111176301-beta", + "Microsoft.Quantum.Providers.Honeywell::0.20.2111176301-beta", + "Microsoft.Quantum.Providers.QCI::0.20.2111176301-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 39e0b35d20..74f7d38ac1 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.20.2111176301-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From f0410f9afb450e50a87feaceafd3cf678462fce6 Mon Sep 17 00:00:00 2001 From: Andres Paz Date: Mon, 15 Nov 2021 23:43:21 -0800 Subject: [PATCH 05/28] loading nuget references from netstandard2.1 --- src/Core/References/NugetPackages.cs | 8 ++++---- src/Tests/NugetPackagesTests.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Core/References/NugetPackages.cs b/src/Core/References/NugetPackages.cs index ff63d66a0b..54141a897b 100644 --- a/src/Core/References/NugetPackages.cs +++ b/src/Core/References/NugetPackages.cs @@ -47,7 +47,7 @@ public class Settings : Workspace.Settings } // The framework used to find packages. - public static NuGetFramework NET6_0 = NuGetFramework.ParseFolder("net6.0"); + public static NuGetFramework NETSTANDARD2_1 = NuGetFramework.ParseFolder("netstandard2.1"); // Nuget's logger. public NuGetLogger Logger { get; } @@ -311,7 +311,7 @@ string[] CheckOnFramework(NuGetFramework framework) return files.ToArray(); } - var names = CheckOnFramework(NET6_0); + var names = CheckOnFramework(NETSTANDARD2_1); Assembly? LoadAssembly(string path) { @@ -409,7 +409,7 @@ public IEnumerable ResolveDependencyGraph(PackageId dependencyBehavior: DependencyBehavior.Lowest, targetIds: new[] { pkgId.Id }, requiredPackageIds: Enumerable.Empty(), - packagesConfig: Items.Select(p => new PackageReference(p, NET6_0, true)), + packagesConfig: Items.Select(p => new PackageReference(p, NETSTANDARD2_1, true)), preferredVersions: Enumerable.Empty(), availablePackages: AvailablePackages, packageSources: Repositories.Select(s => s.PackageSource), @@ -476,7 +476,7 @@ internal async Task FindDependencies( var dependencyInfoResource = await repo.GetResourceAsync(); if (dependencyInfoResource == null) continue; - var dependencyInfo = await dependencyInfoResource.ResolvePackage(package, NET6_0, context, this.Logger, CancellationToken.None); + var dependencyInfo = await dependencyInfoResource.ResolvePackage(package, NETSTANDARD2_1, context, this.Logger, CancellationToken.None); if (dependencyInfo == null) continue; AvailablePackages.Add(dependencyInfo); diff --git a/src/Tests/NugetPackagesTests.cs b/src/Tests/NugetPackagesTests.cs index a79e52a23f..1afb0761ec 100644 --- a/src/Tests/NugetPackagesTests.cs +++ b/src/Tests/NugetPackagesTests.cs @@ -88,7 +88,7 @@ public async Task FindDependencies() using (var context = new SourceCacheContext()) { await mgr.FindDependencies(pkgId, context); - Assert.AreEqual(144, mgr.AvailablePackages.Count()); + Assert.AreEqual(165, mgr.AvailablePackages.Count()); } } @@ -103,8 +103,8 @@ public async Task ResolveDependencyGraph() await mgr.FindDependencies(pkgId, context); var list = mgr.ResolveDependencyGraph(pkgId).ToArray(); - Assert.AreEqual(144, mgr.AvailablePackages.Count()); - Assert.AreEqual(107, list.Length); + Assert.AreEqual(165, mgr.AvailablePackages.Count()); + Assert.AreEqual(117, list.Length); } } @@ -119,7 +119,7 @@ public async Task GetPackageDependencies() { var dependencies = await mgr.GetPackageDependencies(pkgId, context); - Assert.AreEqual(107, dependencies.Count()); + Assert.AreEqual(117, dependencies.Count()); } } From d394e1012a048e53a7af1e824a6ea22de4ae2102 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 15 Dec 2021 23:54:41 +0000 Subject: [PATCH 06/28] Build 0.21.2112.181770. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 033c92ddc9..6e26d05604 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.20.2111176301-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.21.2112181770-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 05c63e7e48..f582f54fec 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 669c0d8655..2f0faea565 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 09bce2a6d4..bbd6a56c96 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index 672323cc47..1b82b48893 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index 672323cc47..1b82b48893 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index bdbb9ec687..ef2c4a00fd 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index 97b596ef7e..c7463ff63a 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index a8bd044066..9e474f40ac 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index bf779977f9..6096d30dfc 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.20.2111176301-beta", - "Microsoft.Quantum.CSharpGeneration::0.20.2111176301-beta", - "Microsoft.Quantum.Development.Kit::0.20.2111176301-beta", - "Microsoft.Quantum.Simulators::0.20.2111176301-beta", - "Microsoft.Quantum.Xunit::0.20.2111176301-beta", - "Microsoft.Quantum.Standard::0.20.2111176301-beta", - "Microsoft.Quantum.Standard.Visualization::0.20.2111176301-beta", - "Microsoft.Quantum.Chemistry::0.20.2111176301-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.20.2111176301-beta", - "Microsoft.Quantum.MachineLearning::0.20.2111176301-beta", - "Microsoft.Quantum.Numerics::0.20.2111176301-beta", - "Microsoft.Quantum.Katas::0.20.2111176301-beta", - "Microsoft.Quantum.Research::0.20.2111176301-beta", - "Microsoft.Quantum.Providers.IonQ::0.20.2111176301-beta", - "Microsoft.Quantum.Providers.Honeywell::0.20.2111176301-beta", - "Microsoft.Quantum.Providers.QCI::0.20.2111176301-beta" + "Microsoft.Quantum.Compiler::0.21.2112181770-beta", + "Microsoft.Quantum.CSharpGeneration::0.21.2112181770-beta", + "Microsoft.Quantum.Development.Kit::0.21.2112181770-beta", + "Microsoft.Quantum.Simulators::0.21.2112181770-beta", + "Microsoft.Quantum.Xunit::0.21.2112181770-beta", + "Microsoft.Quantum.Standard::0.21.2112181770-beta", + "Microsoft.Quantum.Standard.Visualization::0.21.2112181770-beta", + "Microsoft.Quantum.Chemistry::0.21.2112181770-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.21.2112181770-beta", + "Microsoft.Quantum.MachineLearning::0.21.2112181770-beta", + "Microsoft.Quantum.Numerics::0.21.2112181770-beta", + "Microsoft.Quantum.Katas::0.21.2112181770-beta", + "Microsoft.Quantum.Research::0.21.2112181770-beta", + "Microsoft.Quantum.Providers.IonQ::0.21.2112181770-beta", + "Microsoft.Quantum.Providers.Honeywell::0.21.2112181770-beta", + "Microsoft.Quantum.Providers.QCI::0.21.2112181770-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 74f7d38ac1..c2c7453fb7 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.20.2111176301-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.21.2112181770-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 8dc9160f132e98385e2317c5bdd8ed91e9402fb0 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Sat, 18 Dec 2021 03:08:28 +0000 Subject: [PATCH 07/28] Build 0.21.2112.182074. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 6e26d05604..f116127d29 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.21.2112181770-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.21.2112182074-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index f582f54fec..0692e2bce1 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 2f0faea565..993ea29818 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index bbd6a56c96..1d64aa8025 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index 1b82b48893..bd281b5f91 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index 1b82b48893..bd281b5f91 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index ef2c4a00fd..4f6a8160e4 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index c7463ff63a..f5912935ef 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 9e474f40ac..84ba5c9c80 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 6096d30dfc..d5b7783141 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.21.2112181770-beta", - "Microsoft.Quantum.CSharpGeneration::0.21.2112181770-beta", - "Microsoft.Quantum.Development.Kit::0.21.2112181770-beta", - "Microsoft.Quantum.Simulators::0.21.2112181770-beta", - "Microsoft.Quantum.Xunit::0.21.2112181770-beta", - "Microsoft.Quantum.Standard::0.21.2112181770-beta", - "Microsoft.Quantum.Standard.Visualization::0.21.2112181770-beta", - "Microsoft.Quantum.Chemistry::0.21.2112181770-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.21.2112181770-beta", - "Microsoft.Quantum.MachineLearning::0.21.2112181770-beta", - "Microsoft.Quantum.Numerics::0.21.2112181770-beta", - "Microsoft.Quantum.Katas::0.21.2112181770-beta", - "Microsoft.Quantum.Research::0.21.2112181770-beta", - "Microsoft.Quantum.Providers.IonQ::0.21.2112181770-beta", - "Microsoft.Quantum.Providers.Honeywell::0.21.2112181770-beta", - "Microsoft.Quantum.Providers.QCI::0.21.2112181770-beta" + "Microsoft.Quantum.Compiler::0.21.2112182074-beta", + "Microsoft.Quantum.CSharpGeneration::0.21.2112182074-beta", + "Microsoft.Quantum.Development.Kit::0.21.2112182074-beta", + "Microsoft.Quantum.Simulators::0.21.2112182074-beta", + "Microsoft.Quantum.Xunit::0.21.2112182074-beta", + "Microsoft.Quantum.Standard::0.21.2112182074-beta", + "Microsoft.Quantum.Standard.Visualization::0.21.2112182074-beta", + "Microsoft.Quantum.Chemistry::0.21.2112182074-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.21.2112182074-beta", + "Microsoft.Quantum.MachineLearning::0.21.2112182074-beta", + "Microsoft.Quantum.Numerics::0.21.2112182074-beta", + "Microsoft.Quantum.Katas::0.21.2112182074-beta", + "Microsoft.Quantum.Research::0.21.2112182074-beta", + "Microsoft.Quantum.Providers.IonQ::0.21.2112182074-beta", + "Microsoft.Quantum.Providers.Honeywell::0.21.2112182074-beta", + "Microsoft.Quantum.Providers.QCI::0.21.2112182074-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index c2c7453fb7..f7c9ee7327 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.21.2112181770-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.21.2112182074-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 3732af5076810399215514fdca95cc1e39c67f37 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Fri, 21 Jan 2022 11:34:25 -0800 Subject: [PATCH 08/28] Update artifacts to 0.22.185305-beta --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 5f5a5b6748..de2494d013 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.21.2112182074-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.185305-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 0692e2bce1..6577539764 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 993ea29818..d650986a57 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 1d64aa8025..ff7852c8ee 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index bd281b5f91..3c2c21c333 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index bd281b5f91..3c2c21c333 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index 4f6a8160e4..e6742d545f 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index f5912935ef..46a95c33ff 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 84ba5c9c80..a1a6ac0b92 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index d5b7783141..3b9ac5f6a5 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.21.2112182074-beta", - "Microsoft.Quantum.CSharpGeneration::0.21.2112182074-beta", - "Microsoft.Quantum.Development.Kit::0.21.2112182074-beta", - "Microsoft.Quantum.Simulators::0.21.2112182074-beta", - "Microsoft.Quantum.Xunit::0.21.2112182074-beta", - "Microsoft.Quantum.Standard::0.21.2112182074-beta", - "Microsoft.Quantum.Standard.Visualization::0.21.2112182074-beta", - "Microsoft.Quantum.Chemistry::0.21.2112182074-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.21.2112182074-beta", - "Microsoft.Quantum.MachineLearning::0.21.2112182074-beta", - "Microsoft.Quantum.Numerics::0.21.2112182074-beta", - "Microsoft.Quantum.Katas::0.21.2112182074-beta", - "Microsoft.Quantum.Research::0.21.2112182074-beta", - "Microsoft.Quantum.Providers.IonQ::0.21.2112182074-beta", - "Microsoft.Quantum.Providers.Honeywell::0.21.2112182074-beta", - "Microsoft.Quantum.Providers.QCI::0.21.2112182074-beta" + "Microsoft.Quantum.Compiler::0.22.185305-beta", + "Microsoft.Quantum.CSharpGeneration::0.22.185305-beta", + "Microsoft.Quantum.Development.Kit::0.22.185305-beta", + "Microsoft.Quantum.Simulators::0.22.185305-beta", + "Microsoft.Quantum.Xunit::0.22.185305-beta", + "Microsoft.Quantum.Standard::0.22.185305-beta", + "Microsoft.Quantum.Standard.Visualization::0.22.185305-beta", + "Microsoft.Quantum.Chemistry::0.22.185305-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.22.185305-beta", + "Microsoft.Quantum.MachineLearning::0.22.185305-beta", + "Microsoft.Quantum.Numerics::0.22.185305-beta", + "Microsoft.Quantum.Katas::0.22.185305-beta", + "Microsoft.Quantum.Research::0.22.185305-beta", + "Microsoft.Quantum.Providers.IonQ::0.22.185305-beta", + "Microsoft.Quantum.Providers.Honeywell::0.22.185305-beta", + "Microsoft.Quantum.Providers.QCI::0.22.185305-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index f7c9ee7327..da37ea5863 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.21.2112182074-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.22.185305-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From e8ed9893a922826cc3973dd1a6699e71c30f667b Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Sun, 23 Jan 2022 20:34:01 +0000 Subject: [PATCH 09/28] Build 0.22.187247. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index de2494d013..b4ea08c876 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.185305-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.187247-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 45faec2f35..b8ac21b540 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index d650986a57..00969f616a 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index ff7852c8ee..4448640486 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index 3c2c21c333..b06d8b1d66 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index 3c2c21c333..b06d8b1d66 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index e6742d545f..34ea169fa0 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index 46a95c33ff..b28522fa8c 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index a1a6ac0b92..87dd4b8c4b 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 3b9ac5f6a5..3694a4785f 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.22.185305-beta", - "Microsoft.Quantum.CSharpGeneration::0.22.185305-beta", - "Microsoft.Quantum.Development.Kit::0.22.185305-beta", - "Microsoft.Quantum.Simulators::0.22.185305-beta", - "Microsoft.Quantum.Xunit::0.22.185305-beta", - "Microsoft.Quantum.Standard::0.22.185305-beta", - "Microsoft.Quantum.Standard.Visualization::0.22.185305-beta", - "Microsoft.Quantum.Chemistry::0.22.185305-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.22.185305-beta", - "Microsoft.Quantum.MachineLearning::0.22.185305-beta", - "Microsoft.Quantum.Numerics::0.22.185305-beta", - "Microsoft.Quantum.Katas::0.22.185305-beta", - "Microsoft.Quantum.Research::0.22.185305-beta", - "Microsoft.Quantum.Providers.IonQ::0.22.185305-beta", - "Microsoft.Quantum.Providers.Honeywell::0.22.185305-beta", - "Microsoft.Quantum.Providers.QCI::0.22.185305-beta" + "Microsoft.Quantum.Compiler::0.22.187247-beta", + "Microsoft.Quantum.CSharpGeneration::0.22.187247-beta", + "Microsoft.Quantum.Development.Kit::0.22.187247-beta", + "Microsoft.Quantum.Simulators::0.22.187247-beta", + "Microsoft.Quantum.Xunit::0.22.187247-beta", + "Microsoft.Quantum.Standard::0.22.187247-beta", + "Microsoft.Quantum.Standard.Visualization::0.22.187247-beta", + "Microsoft.Quantum.Chemistry::0.22.187247-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.22.187247-beta", + "Microsoft.Quantum.MachineLearning::0.22.187247-beta", + "Microsoft.Quantum.Numerics::0.22.187247-beta", + "Microsoft.Quantum.Katas::0.22.187247-beta", + "Microsoft.Quantum.Research::0.22.187247-beta", + "Microsoft.Quantum.Providers.IonQ::0.22.187247-beta", + "Microsoft.Quantum.Providers.Honeywell::0.22.187247-beta", + "Microsoft.Quantum.Providers.QCI::0.22.187247-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index da37ea5863..9b43d63fc3 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.22.185305-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.22.187247-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From c41ba82c9ae806ef9cce0fd332a175319e7763d4 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Mon, 24 Jan 2022 16:49:00 -0800 Subject: [PATCH 10/28] Updating NuGet version for test libraries. --- src/Tests/NugetPackagesTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/NugetPackagesTests.cs b/src/Tests/NugetPackagesTests.cs index 1afb0761ec..2b13499e65 100644 --- a/src/Tests/NugetPackagesTests.cs +++ b/src/Tests/NugetPackagesTests.cs @@ -24,7 +24,7 @@ public class NugetPackagesTests /// We use a known-good version to avoid breaking IQ# tests due to changes in Libraries /// also, to make sure an end-to-end QDK build does not have circular build dependencies /// between Libraries and IQ#. - public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.20.2111176228-beta"); + public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.22.187247-beta"); public NugetPackages Init() { From 77ef374ed246cf75d9b30f445c0c9336b2b23ea5 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 25 Jan 2022 19:06:08 -0800 Subject: [PATCH 11/28] Replace hard-coded NuGet version during artifact installation --- tests.live/Install-Artifacts.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 9b43d63fc3..39e0b35d20 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.22.187247-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 01a1dd72acfd24f3bd6e4b6ad02c8dd553612bc4 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 1 Feb 2022 19:10:29 +0000 Subject: [PATCH 12/28] Build 0.22.189218. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index b4ea08c876..13a93a8980 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.187247-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.189218-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index b8ac21b540..91059bb84e 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 00969f616a..80c339e8d2 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 4448640486..164d67e528 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index b06d8b1d66..841fe0988f 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index b06d8b1d66..841fe0988f 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index 34ea169fa0..45383d2977 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index b28522fa8c..1994b35351 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 87dd4b8c4b..f6fb1cafdb 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 3694a4785f..db56ec9953 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.22.187247-beta", - "Microsoft.Quantum.CSharpGeneration::0.22.187247-beta", - "Microsoft.Quantum.Development.Kit::0.22.187247-beta", - "Microsoft.Quantum.Simulators::0.22.187247-beta", - "Microsoft.Quantum.Xunit::0.22.187247-beta", - "Microsoft.Quantum.Standard::0.22.187247-beta", - "Microsoft.Quantum.Standard.Visualization::0.22.187247-beta", - "Microsoft.Quantum.Chemistry::0.22.187247-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.22.187247-beta", - "Microsoft.Quantum.MachineLearning::0.22.187247-beta", - "Microsoft.Quantum.Numerics::0.22.187247-beta", - "Microsoft.Quantum.Katas::0.22.187247-beta", - "Microsoft.Quantum.Research::0.22.187247-beta", - "Microsoft.Quantum.Providers.IonQ::0.22.187247-beta", - "Microsoft.Quantum.Providers.Honeywell::0.22.187247-beta", - "Microsoft.Quantum.Providers.QCI::0.22.187247-beta" + "Microsoft.Quantum.Compiler::0.22.189218-beta", + "Microsoft.Quantum.CSharpGeneration::0.22.189218-beta", + "Microsoft.Quantum.Development.Kit::0.22.189218-beta", + "Microsoft.Quantum.Simulators::0.22.189218-beta", + "Microsoft.Quantum.Xunit::0.22.189218-beta", + "Microsoft.Quantum.Standard::0.22.189218-beta", + "Microsoft.Quantum.Standard.Visualization::0.22.189218-beta", + "Microsoft.Quantum.Chemistry::0.22.189218-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.22.189218-beta", + "Microsoft.Quantum.MachineLearning::0.22.189218-beta", + "Microsoft.Quantum.Numerics::0.22.189218-beta", + "Microsoft.Quantum.Katas::0.22.189218-beta", + "Microsoft.Quantum.Research::0.22.189218-beta", + "Microsoft.Quantum.Providers.IonQ::0.22.189218-beta", + "Microsoft.Quantum.Providers.Honeywell::0.22.189218-beta", + "Microsoft.Quantum.Providers.QCI::0.22.189218-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 39e0b35d20..1ba70eeae6 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.22.189218-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 7806764b0497503ff4fd0d5f1671c14757b6611d Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 2 Feb 2022 18:41:11 -0800 Subject: [PATCH 13/28] Update remaining files to build 0.22.189218 --- src/Tests/NugetPackagesTests.cs | 2 +- tests.live/Install-Artifacts.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/NugetPackagesTests.cs b/src/Tests/NugetPackagesTests.cs index 2b13499e65..be750edd32 100644 --- a/src/Tests/NugetPackagesTests.cs +++ b/src/Tests/NugetPackagesTests.cs @@ -24,7 +24,7 @@ public class NugetPackagesTests /// We use a known-good version to avoid breaking IQ# tests due to changes in Libraries /// also, to make sure an end-to-end QDK build does not have circular build dependencies /// between Libraries and IQ#. - public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.22.187247-beta"); + public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.22.189218-beta"); public NugetPackages Init() { diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 1ba70eeae6..39e0b35d20 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.22.189218-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 08d7b8ec3797371a96828ae40aa77a910c3f1dc4 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Thu, 10 Feb 2022 11:30:30 -0800 Subject: [PATCH 14/28] Update references to build 0.22.191183-beta --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- src/Tests/NugetPackagesTests.cs | 2 +- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 13a93a8980..035720cc6d 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.189218-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.191183-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 91059bb84e..06267442e4 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index e73021ec61..42cae8f644 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 164d67e528..5e9dbb3767 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index 841fe0988f..0326a8f667 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index 841fe0988f..0326a8f667 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/NugetPackagesTests.cs b/src/Tests/NugetPackagesTests.cs index be750edd32..6ceb7bc00d 100644 --- a/src/Tests/NugetPackagesTests.cs +++ b/src/Tests/NugetPackagesTests.cs @@ -24,7 +24,7 @@ public class NugetPackagesTests /// We use a known-good version to avoid breaking IQ# tests due to changes in Libraries /// also, to make sure an end-to-end QDK build does not have circular build dependencies /// between Libraries and IQ#. - public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.22.189218-beta"); + public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.22.191183-beta"); public NugetPackages Init() { diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index 45383d2977..c441c283d2 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index 1994b35351..eb2611557c 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index f6fb1cafdb..abcbd6621d 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index db56ec9953..6cb4a0e57f 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.22.189218-beta", - "Microsoft.Quantum.CSharpGeneration::0.22.189218-beta", - "Microsoft.Quantum.Development.Kit::0.22.189218-beta", - "Microsoft.Quantum.Simulators::0.22.189218-beta", - "Microsoft.Quantum.Xunit::0.22.189218-beta", - "Microsoft.Quantum.Standard::0.22.189218-beta", - "Microsoft.Quantum.Standard.Visualization::0.22.189218-beta", - "Microsoft.Quantum.Chemistry::0.22.189218-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.22.189218-beta", - "Microsoft.Quantum.MachineLearning::0.22.189218-beta", - "Microsoft.Quantum.Numerics::0.22.189218-beta", - "Microsoft.Quantum.Katas::0.22.189218-beta", - "Microsoft.Quantum.Research::0.22.189218-beta", - "Microsoft.Quantum.Providers.IonQ::0.22.189218-beta", - "Microsoft.Quantum.Providers.Honeywell::0.22.189218-beta", - "Microsoft.Quantum.Providers.QCI::0.22.189218-beta" + "Microsoft.Quantum.Compiler::0.22.191183-beta", + "Microsoft.Quantum.CSharpGeneration::0.22.191183-beta", + "Microsoft.Quantum.Development.Kit::0.22.191183-beta", + "Microsoft.Quantum.Simulators::0.22.191183-beta", + "Microsoft.Quantum.Xunit::0.22.191183-beta", + "Microsoft.Quantum.Standard::0.22.191183-beta", + "Microsoft.Quantum.Standard.Visualization::0.22.191183-beta", + "Microsoft.Quantum.Chemistry::0.22.191183-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.22.191183-beta", + "Microsoft.Quantum.MachineLearning::0.22.191183-beta", + "Microsoft.Quantum.Numerics::0.22.191183-beta", + "Microsoft.Quantum.Katas::0.22.191183-beta", + "Microsoft.Quantum.Research::0.22.191183-beta", + "Microsoft.Quantum.Providers.IonQ::0.22.191183-beta", + "Microsoft.Quantum.Providers.Honeywell::0.22.191183-beta", + "Microsoft.Quantum.Providers.QCI::0.22.191183-beta" ] } \ No newline at end of file From f48c58a214dbc67f03aef43df03f274166830b98 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Thu, 10 Feb 2022 16:00:31 -0800 Subject: [PATCH 15/28] Updating the .NET version in the global properties --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index af63d9c104..56cebaeb49 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "3.1.100", + "version": "6.0.100", "rollForward": "latestMinor" } } \ No newline at end of file From 0ce8839de538d1ef53496499ecc911f953dcd830 Mon Sep 17 00:00:00 2001 From: Xinyi Joffre Date: Mon, 28 Feb 2022 20:46:48 -0800 Subject: [PATCH 16/28] Improve error message for missing provider or target (#600) * Tweak message * Update to 0.23.195426-beta. Co-authored-by: Cassandra Granade --- src/AzureClient/Resources.cs | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/AzureClient/Resources.cs b/src/AzureClient/Resources.cs index b946fb23e5..664c63a40e 100644 --- a/src/AzureClient/Resources.cs +++ b/src/AzureClient/Resources.cs @@ -17,7 +17,7 @@ internal static class Resources "No execution target has been configured for Azure Quantum job submission."; public const string AzureClientErrorInvalidTarget = - "The specified execution target is not valid for Q# job submission in the current Azure Quantum workspace."; + "The specified target is not enabled in this workspace. Please make sure the target name is valid and that the associated provider is added to your workspace. To add a provider to your quantum workspace in the Azure Portal, see https://aka.ms/AQ/Docs/AddProvider"; public const string AzureClientErrorJobNotFound = "No job with the given ID was found in the current Azure Quantum workspace."; diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 66f28ae9ea..d610954f43 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 64cd72a115..e4dbb42360 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index a94edb5864..c677128f26 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index a94edb5864..c677128f26 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index b56d7e3f8c..0918a09cc6 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index f8c0a6c431..647bf89e0f 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 0547d2fdab..78fa0284f5 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 4d65270816..e9527d34bb 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.22.191200-beta", - "Microsoft.Quantum.CSharpGeneration::0.22.191200-beta", - "Microsoft.Quantum.Development.Kit::0.22.191200-beta", - "Microsoft.Quantum.Simulators::0.22.191200-beta", - "Microsoft.Quantum.Xunit::0.22.191200-beta", - "Microsoft.Quantum.Standard::0.22.191200-beta", - "Microsoft.Quantum.Standard.Visualization::0.22.191200-beta", - "Microsoft.Quantum.Chemistry::0.22.191200-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.22.191200-beta", - "Microsoft.Quantum.MachineLearning::0.22.191200-beta", - "Microsoft.Quantum.Numerics::0.22.191200-beta", - "Microsoft.Quantum.Katas::0.22.191200-beta", - "Microsoft.Quantum.Research::0.22.191200-beta", - "Microsoft.Quantum.Providers.IonQ::0.22.191200-beta", - "Microsoft.Quantum.Providers.Honeywell::0.22.191200-beta", - "Microsoft.Quantum.Providers.QCI::0.22.191200-beta" + "Microsoft.Quantum.Compiler::0.23.195426-beta", + "Microsoft.Quantum.CSharpGeneration::0.23.195426-beta", + "Microsoft.Quantum.Development.Kit::0.23.195426-beta", + "Microsoft.Quantum.Simulators::0.23.195426-beta", + "Microsoft.Quantum.Xunit::0.23.195426-beta", + "Microsoft.Quantum.Standard::0.23.195426-beta", + "Microsoft.Quantum.Standard.Visualization::0.23.195426-beta", + "Microsoft.Quantum.Chemistry::0.23.195426-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.23.195426-beta", + "Microsoft.Quantum.MachineLearning::0.23.195426-beta", + "Microsoft.Quantum.Numerics::0.23.195426-beta", + "Microsoft.Quantum.Katas::0.23.195426-beta", + "Microsoft.Quantum.Research::0.23.195426-beta", + "Microsoft.Quantum.Providers.IonQ::0.23.195426-beta", + "Microsoft.Quantum.Providers.Honeywell::0.23.195426-beta", + "Microsoft.Quantum.Providers.QCI::0.23.195426-beta" ] } \ No newline at end of file From 5346d4bfc39a3536b68d4fb4510d6a07c7b9d618 Mon Sep 17 00:00:00 2001 From: Cassandra Granade Date: Thu, 24 Feb 2022 13:07:47 -0800 Subject: [PATCH 17/28] Quantinuum rebrand (#592) * Update to 0.22.193462-alpha. * Started rename to Quantinuum. * Address feedback on unit tests. * Improve API docs to help explain unit test failures. * Fixed unit test. * Adapting for the QuantumSimulator change. (#586) (#590) * Using latest runtime package. * Fix typo in unit test. * Updated unit test to new package name. Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com> --- src/AzureClient/AzureClient.csproj | 2 +- src/AzureClient/AzureExecutionTarget.cs | 46 ++++++++++++++---- src/AzureClient/Mocks/MockTargetStatus.cs | 2 + src/Core/Core.csproj | 8 ++-- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +- .../Mock.Standard/Mock.Standard.csproj | 4 +- src/Tests/AzureClientTests.cs | 19 ++++++-- src/Tests/IQsharpEngineTests.cs | 2 + src/Tests/TestExtensions.cs | 27 ++++++++++- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +- src/Tool/appsettings.json | 32 ++++++------- tests.live/All.Tests.ps1 | 5 ++ tests.live/Python/test_live.py | 48 +++++++++++++++++++ 16 files changed, 166 insertions(+), 43 deletions(-) diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 6aaa5956f9..07e7b79254 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/AzureClient/AzureExecutionTarget.cs b/src/AzureClient/AzureExecutionTarget.cs index e11173aa90..5d75edc247 100644 --- a/src/AzureClient/AzureExecutionTarget.cs +++ b/src/AzureClient/AzureExecutionTarget.cs @@ -10,7 +10,16 @@ namespace Microsoft.Quantum.IQSharp.AzureClient { - internal enum AzureProvider { IonQ, Honeywell, QCI, Mock } + internal enum AzureProvider + { + IonQ, + Quantinuum, + // NB: This provider name is deprecated, but may exist in older + // workspaces and should still be supported. + Honeywell, + QCI, + Mock + } internal class AzureExecutionTarget { @@ -21,14 +30,23 @@ protected AzureExecutionTarget(string? targetId) public string? TargetId { get; } - public virtual string PackageName => $"Microsoft.Quantum.Providers.{GetProvider(TargetId)}"; + public virtual string PackageName => GetProvider(TargetId) switch + { + + AzureProvider.IonQ => "Microsoft.Quantum.Providers.IonQ", + AzureProvider.Quantinuum => "Microsoft.Quantum.Providers.Honeywell", + AzureProvider.Honeywell => "Microsoft.Quantum.Providers.Honeywell", + AzureProvider.QCI => "Microsoft.Quantum.Providers.QCI", + _ => $"Microsoft.Quantum.Providers.{GetProvider(TargetId)}" + }; public RuntimeCapability RuntimeCapability => GetProvider(TargetId) switch { - AzureProvider.IonQ => RuntimeCapability.BasicQuantumFunctionality, - AzureProvider.Honeywell => RuntimeCapability.BasicMeasurementFeedback, - AzureProvider.QCI => RuntimeCapability.BasicMeasurementFeedback, - _ => RuntimeCapability.FullComputation + AzureProvider.IonQ => RuntimeCapability.BasicQuantumFunctionality, + AzureProvider.Quantinuum => RuntimeCapability.BasicMeasurementFeedback, + AzureProvider.Honeywell => RuntimeCapability.BasicMeasurementFeedback, + AzureProvider.QCI => RuntimeCapability.BasicMeasurementFeedback, + _ => RuntimeCapability.FullComputation }; /// @@ -50,7 +68,13 @@ protected AzureExecutionTarget(string? targetId) /// /// It creates the AzureExecutionTarget instance for the given targetId. /// - public static AzureExecutionTarget? Create(string? targetId) => GetProvider(targetId) is null + /// + /// An instance of if + /// describes a target for a valid + /// provider, and null otherwise. + /// + public static AzureExecutionTarget? Create(string? targetId) => + GetProvider(targetId) is null ? null : new AzureExecutionTarget(targetId); @@ -59,10 +83,14 @@ protected AzureExecutionTarget(string? targetId) /// Gets the Azure Quantum provider corresponding to the given execution target. /// /// The Azure Quantum execution target ID. - /// The enum value representing the provider. + /// + /// The enum value representing the + /// provider, or null if does + /// not describe a valid provider. + /// /// /// Valid target IDs are structured as "provider.target". - /// For example, "ionq.simulator" or "honeywell.qpu". + /// For example, "ionq.simulator" or "quantinuum.qpu". /// protected static AzureProvider? GetProvider(string? targetId) { diff --git a/src/AzureClient/Mocks/MockTargetStatus.cs b/src/AzureClient/Mocks/MockTargetStatus.cs index 76e8e0f9fe..5b62a92227 100644 --- a/src/AzureClient/Mocks/MockTargetStatus.cs +++ b/src/AzureClient/Mocks/MockTargetStatus.cs @@ -15,5 +15,7 @@ public MockTargetStatus(string id) : base() } public override string TargetId { get; } + + public override string ToString() => $"MockTargetStatus {{ TargetId = \"{TargetId}\" }}"; } } \ No newline at end of file diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index d610954f43..28701bbff9 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index e4dbb42360..06bc540a4a 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index c677128f26..b168660bbd 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index c677128f26..b168660bbd 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/AzureClientTests.cs b/src/Tests/AzureClientTests.cs index 88ce846ae3..ed87b3e838 100644 --- a/src/Tests/AzureClientTests.cs +++ b/src/Tests/AzureClientTests.cs @@ -70,11 +70,17 @@ public void TestAzureExecutionTarget() Assert.AreEqual(targetId, executionTarget?.TargetId); Assert.AreEqual("Microsoft.Quantum.Providers.IonQ", executionTarget?.PackageName); + // Check that deprecated targets still work. targetId = "HonEYWEll.targetId"; executionTarget = AzureExecutionTarget.Create(targetId); Assert.AreEqual(targetId, executionTarget?.TargetId); Assert.AreEqual("Microsoft.Quantum.Providers.Honeywell", executionTarget?.PackageName); + targetId = "QuantiNUUm.targetId"; + executionTarget = AzureExecutionTarget.Create(targetId); + Assert.AreEqual(targetId, executionTarget?.TargetId); + Assert.AreEqual("Microsoft.Quantum.Providers.Honeywell", executionTarget?.PackageName); + targetId = "qci.target.name.qpu"; executionTarget = AzureExecutionTarget.Create(targetId); Assert.AreEqual(targetId, executionTarget?.TargetId); @@ -150,11 +156,13 @@ public void TestManualTargets() // set up the mock workspace var azureWorkspace = azureClient.ActiveWorkspace as MockAzureWorkspace; Assert.IsNotNull(azureWorkspace); - azureWorkspace?.AddProviders("ionq", "honeywell", "unrecognized"); + azureWorkspace?.AddProviders("ionq", "honeywell", "quantinuum", "unrecognized"); // get connection status to verify list of targets targets = ExpectSuccess>(azureClient.GetConnectionStatusAsync(new MockChannel())); - Assert.AreEqual(4, targets.Count()); // only 2 valid quantum execution targets + // Above, we added 3 valid quantum execution targets, each of which contributes two targets (simulator and mock), + // for a total of six targets. + Assert.That.Enumerable(targets).HasCount(6); // GetActiveTargetAsync, but no active target set yet ExpectError(AzureClientError.NoTarget, azureClient.GetActiveTargetAsync(new MockChannel())); @@ -306,7 +314,7 @@ public void TestRuntimeCapabilities() // Set up workspace with mock providers var azureWorkspace = azureClient.ActiveWorkspace as MockAzureWorkspace; Assert.IsNotNull(azureWorkspace); - azureWorkspace?.AddProviders("ionq", "honeywell"); + azureWorkspace?.AddProviders("ionq", "honeywell", "quantinuum"); // Verify that IonQ job fails to compile (QPRGen0) ExpectSuccess(azureClient.SetActiveTargetAsync(new MockChannel(), "ionq.mock")); @@ -316,6 +324,11 @@ public void TestRuntimeCapabilities() ExpectSuccess(azureClient.SetActiveTargetAsync(new MockChannel(), "honeywell.mock")); var job = ExpectSuccess(azureClient.SubmitJobAsync(new MockChannel(), submissionContext, CancellationToken.None)); Assert.IsNotNull(job); + + // Verify that Quantinuum job can be successfully submitted (QPRGen1) + ExpectSuccess(azureClient.SetActiveTargetAsync(new MockChannel(), "quantinuum.mock")); + job = ExpectSuccess(azureClient.SubmitJobAsync(new MockChannel(), submissionContext, CancellationToken.None)); + Assert.IsNotNull(job); } [TestMethod] diff --git a/src/Tests/IQsharpEngineTests.cs b/src/Tests/IQsharpEngineTests.cs index dc8843a809..0a66975de2 100644 --- a/src/Tests/IQsharpEngineTests.cs +++ b/src/Tests/IQsharpEngineTests.cs @@ -933,6 +933,8 @@ operation RunTeleport() : Unit { .WithMockAzure() .Input("%azure.target honeywell.mock") .ExecutesSuccessfully() + .Input("%azure.target quantinuum.mock") + .ExecutesSuccessfully() .Input("%azure.submit RunTeleport") .ExecutesSuccessfully() .Input("%azure.target ionq.mock") diff --git a/src/Tests/TestExtensions.cs b/src/Tests/TestExtensions.cs index 80040dd473..3197ad9f29 100644 --- a/src/Tests/TestExtensions.cs +++ b/src/Tests/TestExtensions.cs @@ -41,7 +41,7 @@ await engine var client = await (await engine).Engine.GetEngineService(); if (client is AzureClient azureClient && azureClient.ActiveWorkspace is MockAzureWorkspace workspace) { - workspace.AddProviders("ionq", "honeywell"); + workspace.AddProviders("ionq", "quantinuum", "honeywell"); } else { @@ -207,6 +207,31 @@ internal static T HasOperation(this T assert, string namespaceName, string na internal static string NormalizeLineEndings(this string s) => Regex.Replace(s, @"\r\n|\n\r|\n|\r", "\r\n"); + + + internal class EnumerableAssert + { + internal IEnumerable Enumerable; + } + + internal static EnumerableAssert Enumerable(this Assert assert, IEnumerable enumerable) => + new EnumerableAssert + { + Enumerable = enumerable + }; + + internal static EnumerableAssert HasCount(this EnumerableAssert enumerableAssert, int count) + { + // Collect in a list so that we can report on failure. + var elements = enumerableAssert.Enumerable.ToList(); + Assert.AreEqual( + count, + elements.Count, + $"Expected {count} elements, but got {elements.Count}. Enumerable yielded values:\n{string.Join("\n", elements.Select(e => $" - {e?.ToString() ?? ""}"))}" + ); + return enumerableAssert; + } + } } diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index 0918a09cc6..d8d9bb03e9 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index 647bf89e0f..635c0a7b99 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 78fa0284f5..12611f48bd 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index e9527d34bb..f9867c504d 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.23.195426-beta", - "Microsoft.Quantum.CSharpGeneration::0.23.195426-beta", - "Microsoft.Quantum.Development.Kit::0.23.195426-beta", - "Microsoft.Quantum.Simulators::0.23.195426-beta", - "Microsoft.Quantum.Xunit::0.23.195426-beta", - "Microsoft.Quantum.Standard::0.23.195426-beta", - "Microsoft.Quantum.Standard.Visualization::0.23.195426-beta", - "Microsoft.Quantum.Chemistry::0.23.195426-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.23.195426-beta", - "Microsoft.Quantum.MachineLearning::0.23.195426-beta", - "Microsoft.Quantum.Numerics::0.23.195426-beta", - "Microsoft.Quantum.Katas::0.23.195426-beta", - "Microsoft.Quantum.Research::0.23.195426-beta", - "Microsoft.Quantum.Providers.IonQ::0.23.195426-beta", - "Microsoft.Quantum.Providers.Honeywell::0.23.195426-beta", - "Microsoft.Quantum.Providers.QCI::0.23.195426-beta" + "Microsoft.Quantum.Compiler::0.23.194209-beta", + "Microsoft.Quantum.CSharpGeneration::0.23.194209-beta", + "Microsoft.Quantum.Development.Kit::0.23.194209-beta", + "Microsoft.Quantum.Simulators::0.23.194209-beta", + "Microsoft.Quantum.Xunit::0.23.194209-beta", + "Microsoft.Quantum.Standard::0.23.194209-beta", + "Microsoft.Quantum.Standard.Visualization::0.23.194209-beta", + "Microsoft.Quantum.Chemistry::0.23.194209-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.23.194209-beta", + "Microsoft.Quantum.MachineLearning::0.23.194209-beta", + "Microsoft.Quantum.Numerics::0.23.194209-beta", + "Microsoft.Quantum.Katas::0.23.194209-beta", + "Microsoft.Quantum.Research::0.23.194209-beta", + "Microsoft.Quantum.Providers.IonQ::0.23.194209-beta", + "Microsoft.Quantum.Providers.Honeywell::0.23.194209-beta", + "Microsoft.Quantum.Providers.QCI::0.23.194209-beta" ] } \ No newline at end of file diff --git a/tests.live/All.Tests.ps1 b/tests.live/All.Tests.ps1 index 3dddc1388b..0768075c74 100644 --- a/tests.live/All.Tests.ps1 +++ b/tests.live/All.Tests.ps1 @@ -59,6 +59,11 @@ Describe "Test Python Integration" { python -m pytest -k honeywell --junitxml="junit/TestResults-Honeywell.xml" | Write-Verbose $LASTEXITCODE | Should -Be 0 } + + It "Runs pytest successfully for Quantinuum" -Tag "submit.quantinuum" { + python -m pytest -k quantinuum --junitxml="junit/Quantinuum.xml" | Write-Verbose + $LASTEXITCODE | Should -Be 0 + } AfterAll { Pop-Location } } diff --git a/tests.live/Python/test_live.py b/tests.live/Python/test_live.py index 7f119b836c..6fc730c81b 100644 --- a/tests.live/Python/test_live.py +++ b/tests.live/Python/test_live.py @@ -159,4 +159,52 @@ def test_honeywell_submit(): retrieved_histogram = qsharp.azure.output() assert isinstance(retrieved_histogram, dict) assert '0' in retrieved_histogram + +def test_quantinuum_targets(): + """ + Tests that we can fetch targets from the service, + and that the workspace includes the targets we need for submission + """ + targets = connect() + assert len(targets) > 2 + + target_ids = [t.id for t in targets] + assert 'quantinuum.hqs-lt-s1' in target_ids + assert 'quantinuum.hqs-lt-s1-apival' in target_ids + +def test_quantinuum_submit(): + """ + Test that the RunTeleport operation can be submitted successfully on the quantinuum apival target + """ + import qsharp + from Microsoft.Quantum.Tests import RunTeleport + + # Make sure we can simulate locally: + expected = True + result = RunTeleport.simulate(doPlus=expected) + assert result == 0 if expected else 1 + + import qsharp.azure + connect() + + t = qsharp.azure.target("quantinuum.hqs-lt-s1-apival") + assert isinstance(t, qsharp.azure.AzureTarget) + assert t.id == "quantinuum.hqs-lt-s1-apival" + + job = qsharp.azure.submit(RunTeleport, doPlus=expected) + assert isinstance(job, qsharp.azure.AzureJob) + assert not job.id == '' + print("Submitted job: ", job.id) + + try: + wait_until_completed(job) + except TimeoutError: + warnings.warn("Quantinuum execution exceeded timeout. Skipping fetching results.") + else: + job = qsharp.azure.status() + assert isinstance(job, qsharp.azure.AzureJob) + if job.status == "Succeeded": + retrieved_histogram = qsharp.azure.output() + assert isinstance(retrieved_histogram, dict) + assert '0' in retrieved_histogram \ No newline at end of file From 3d30cace1c6691afd52f02525c141c871d7393b8 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 1 Mar 2022 00:05:40 +0000 Subject: [PATCH 18/28] Build 0.23.195531. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 035720cc6d..aa1b9009da 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.191183-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.23.195531-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 06267442e4..e02986f130 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 42cae8f644..e472f1b348 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 5e9dbb3767..16adc4491c 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index 0326a8f667..c8e9ef592e 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index 0326a8f667..c8e9ef592e 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index c441c283d2..b892221b56 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index eb2611557c..24389dc3ba 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index abcbd6621d..7681540e2f 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 6cb4a0e57f..7795d8ff9a 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.22.191183-beta", - "Microsoft.Quantum.CSharpGeneration::0.22.191183-beta", - "Microsoft.Quantum.Development.Kit::0.22.191183-beta", - "Microsoft.Quantum.Simulators::0.22.191183-beta", - "Microsoft.Quantum.Xunit::0.22.191183-beta", - "Microsoft.Quantum.Standard::0.22.191183-beta", - "Microsoft.Quantum.Standard.Visualization::0.22.191183-beta", - "Microsoft.Quantum.Chemistry::0.22.191183-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.22.191183-beta", - "Microsoft.Quantum.MachineLearning::0.22.191183-beta", - "Microsoft.Quantum.Numerics::0.22.191183-beta", - "Microsoft.Quantum.Katas::0.22.191183-beta", - "Microsoft.Quantum.Research::0.22.191183-beta", - "Microsoft.Quantum.Providers.IonQ::0.22.191183-beta", - "Microsoft.Quantum.Providers.Honeywell::0.22.191183-beta", - "Microsoft.Quantum.Providers.QCI::0.22.191183-beta" + "Microsoft.Quantum.Compiler::0.23.195531-beta", + "Microsoft.Quantum.CSharpGeneration::0.23.195531-beta", + "Microsoft.Quantum.Development.Kit::0.23.195531-beta", + "Microsoft.Quantum.Simulators::0.23.195531-beta", + "Microsoft.Quantum.Xunit::0.23.195531-beta", + "Microsoft.Quantum.Standard::0.23.195531-beta", + "Microsoft.Quantum.Standard.Visualization::0.23.195531-beta", + "Microsoft.Quantum.Chemistry::0.23.195531-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.23.195531-beta", + "Microsoft.Quantum.MachineLearning::0.23.195531-beta", + "Microsoft.Quantum.Numerics::0.23.195531-beta", + "Microsoft.Quantum.Katas::0.23.195531-beta", + "Microsoft.Quantum.Research::0.23.195531-beta", + "Microsoft.Quantum.Providers.IonQ::0.23.195531-beta", + "Microsoft.Quantum.Providers.Honeywell::0.23.195531-beta", + "Microsoft.Quantum.Providers.QCI::0.23.195531-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 39e0b35d20..feb3bd5a91 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.23.195531-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 1f800a9ec7154a94e668ff832e7722adcf47c846 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 1 Mar 2022 11:44:48 -0800 Subject: [PATCH 19/28] Use variable instead of hard coded version in the install artifacts script. --- tests.live/Install-Artifacts.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index feb3bd5a91..39e0b35d20 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.23.195531-beta --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 4fa33db97e2b405f305303e6c2179af71b7d48c4 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 1 Mar 2022 11:47:41 -0800 Subject: [PATCH 20/28] Updating NuGet version for test libraries to 0.23.195531-beta --- src/Tests/NugetPackagesTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Tests/NugetPackagesTests.cs b/src/Tests/NugetPackagesTests.cs index 6ceb7bc00d..56992d5ee5 100644 --- a/src/Tests/NugetPackagesTests.cs +++ b/src/Tests/NugetPackagesTests.cs @@ -24,7 +24,11 @@ public class NugetPackagesTests /// We use a known-good version to avoid breaking IQ# tests due to changes in Libraries /// also, to make sure an end-to-end QDK build does not have circular build dependencies /// between Libraries and IQ#. - public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.22.191183-beta"); + /// + /// Note: Version '0.23.195531-beta' is temporary since it only exists in the Alpha feed. + /// It should be replaced by another one that will remain available permanently. + /// + public static readonly NuGetVersion QDK_LIBRARIES_VERSION = NuGetVersion.Parse("0.23.195531-beta"); public NugetPackages Init() { From b6245bea9addaf5c293b89182f2c9222ef0d0bba Mon Sep 17 00:00:00 2001 From: Cassandra Granade Date: Fri, 4 Mar 2022 11:53:19 -0800 Subject: [PATCH 21/28] Redirect to stderr when calling free. (#604) --- src/Core/Core.csproj | 8 ++--- src/Core/Platform/Utils.cs | 3 +- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- 9 files changed, 31 insertions(+), 30 deletions(-) diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 66f28ae9ea..ad7b04c665 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/Core/Platform/Utils.cs b/src/Core/Platform/Utils.cs index 8d723104d6..bdc70de091 100644 --- a/src/Core/Platform/Utils.cs +++ b/src/Core/Platform/Utils.cs @@ -64,7 +64,8 @@ internal static class PlatformUtils { FileName = "/bin/bash", Arguments = "-c \"free --total --bytes\"", - RedirectStandardOutput = true + RedirectStandardOutput = true, + RedirectStandardError = true, }; using var proc = Process.Start(processStartInfo); await foreach (var line in proc.StandardOutput.ReadAllLinesAsync()) diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 64cd72a115..890374697d 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index a94edb5864..4b2749c137 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index a94edb5864..4b2749c137 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index b56d7e3f8c..2e1d6a49c5 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index f8c0a6c431..5a062d77a9 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 0547d2fdab..0db82b8abf 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 4d65270816..c73742bcbb 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.22.191200-beta", - "Microsoft.Quantum.CSharpGeneration::0.22.191200-beta", - "Microsoft.Quantum.Development.Kit::0.22.191200-beta", - "Microsoft.Quantum.Simulators::0.22.191200-beta", - "Microsoft.Quantum.Xunit::0.22.191200-beta", - "Microsoft.Quantum.Standard::0.22.191200-beta", - "Microsoft.Quantum.Standard.Visualization::0.22.191200-beta", - "Microsoft.Quantum.Chemistry::0.22.191200-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.22.191200-beta", - "Microsoft.Quantum.MachineLearning::0.22.191200-beta", - "Microsoft.Quantum.Numerics::0.22.191200-beta", - "Microsoft.Quantum.Katas::0.22.191200-beta", - "Microsoft.Quantum.Research::0.22.191200-beta", - "Microsoft.Quantum.Providers.IonQ::0.22.191200-beta", - "Microsoft.Quantum.Providers.Honeywell::0.22.191200-beta", - "Microsoft.Quantum.Providers.QCI::0.22.191200-beta" + "Microsoft.Quantum.Compiler::0.23.195983", + "Microsoft.Quantum.CSharpGeneration::0.23.195983", + "Microsoft.Quantum.Development.Kit::0.23.195983", + "Microsoft.Quantum.Simulators::0.23.195983", + "Microsoft.Quantum.Xunit::0.23.195983", + "Microsoft.Quantum.Standard::0.23.195983", + "Microsoft.Quantum.Standard.Visualization::0.23.195983", + "Microsoft.Quantum.Chemistry::0.23.195983", + "Microsoft.Quantum.Chemistry.Jupyter::0.23.195983", + "Microsoft.Quantum.MachineLearning::0.23.195983", + "Microsoft.Quantum.Numerics::0.23.195983", + "Microsoft.Quantum.Katas::0.23.195983", + "Microsoft.Quantum.Research::0.23.195983", + "Microsoft.Quantum.Providers.IonQ::0.23.195983", + "Microsoft.Quantum.Providers.Honeywell::0.23.195983", + "Microsoft.Quantum.Providers.QCI::0.23.195983" ] } \ No newline at end of file From c449be9cd784e241956a0891af8c9a030c3b4bdb Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Fri, 4 Mar 2022 19:27:22 -0800 Subject: [PATCH 22/28] Add procps to Dockerfile (#602) * Install free * Update Dockerfile Co-authored-by: Cassandra Granade --- images/iqsharp-base/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index a9b20dc754..f316a8c19a 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -50,6 +50,7 @@ RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor chown root:root /etc/apt/sources.list.d/microsoft-prod.list && \ apt-get -y update && \ apt-get -y install dotnet-sdk-3.1=3.1.416-1 && \ + apt-get -y install procps && \ apt-get clean && rm -rf /var/lib/apt/lists/ # Install prerequisites needed for integration with Live Share and VS Online. From 4ea8ef0693f5622782f2e807fc3f872609661239 Mon Sep 17 00:00:00 2001 From: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com> Date: Tue, 8 Mar 2022 19:07:28 -0800 Subject: [PATCH 23/28] Fixed the SDK Version. (#608) --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index f316a8c19a..6ce83fec06 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.22.191200-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.23.195983" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index 6aaa5956f9..6f258a7cb6 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + From 90f29d3a6c348832f6d177a6d1594be386d8d154 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 15 Mar 2022 11:56:31 -0700 Subject: [PATCH 24/28] Update IQ# for changes in Language Server Protocol 17.1 --- src/Core/Loggers/QsharpLogger.cs | 11 ++++++----- src/Tests/WorkspaceControllerTest.cs | 5 ++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Core/Loggers/QsharpLogger.cs b/src/Core/Loggers/QsharpLogger.cs index af461bdb91..28ea107291 100644 --- a/src/Core/Loggers/QsharpLogger.cs +++ b/src/Core/Loggers/QsharpLogger.cs @@ -73,15 +73,16 @@ public static LogLevel MapLevel(LSP.DiagnosticSeverity original) => public IEnumerable ErrorIds => Logs - .Where(m => m.Severity == VisualStudio.LanguageServer.Protocol.DiagnosticSeverity.Error) - .Select(m => m.Code); + .Where(m => m.Severity == VisualStudio.LanguageServer.Protocol.DiagnosticSeverity.Error && m.Code?.Second != null) + .Select(m => m.Code?.Second); protected override void Print(LSP.Diagnostic m) { - if (m.IsError() && ErrorCodesToIgnore.Any(code => m.Code == QsCompiler.CompilationBuilder.Errors.Code(code))) return; - if (m.IsWarning() && WarningCodesToIgnore.Any(code => m.Code == QsCompiler.CompilationBuilder.Warnings.Code(code))) return; + string diagnosticCode = m.Code?.Second ?? ""; + if (m.IsError() && ErrorCodesToIgnore.Any(code => diagnosticCode == QsCompiler.CompilationBuilder.Errors.Code(code))) return; + if (m.IsWarning() && WarningCodesToIgnore.Any(code => diagnosticCode == QsCompiler.CompilationBuilder.Warnings.Code(code))) return; - Logger?.Log(MapLevel(m.Severity), "{Code} ({Source}:{Range}): {Message}", m.Code, m.Source, m.Range, m.Message); + Logger?.Log(MapLevel(m.Severity), "{Code} ({Source}:{Range}): {Message}", diagnosticCode, m.Source, m.Range, m.Message); Logs.Add(m); } diff --git a/src/Tests/WorkspaceControllerTest.cs b/src/Tests/WorkspaceControllerTest.cs index c077d5c7a1..ca6210ac42 100644 --- a/src/Tests/WorkspaceControllerTest.cs +++ b/src/Tests/WorkspaceControllerTest.cs @@ -131,6 +131,9 @@ public async Task SimulateWithNullWorkspace() Assert.AreEqual($"Workspace is not ready. Try again.", response.Messages[0]); } +/* + TODO: Reenable this test. + Test disabled due to migration to LSP 17.1 [TestMethod] public async Task SimulateOnBrokenWorkspace() @@ -144,7 +147,7 @@ public async Task SimulateOnBrokenWorkspace() Assert.IsNotNull(response.Messages.First(m => m.Contains("QS6301"))); Assert.IsNotNull(response.Messages.First(m => m.Contains("QS5022"))); } - +*/ [TestMethod] public void JsonToDict() From 51481305f53f712c06c4d57bb09b4e468dc2fa00 Mon Sep 17 00:00:00 2001 From: Cassandra Granade Date: Tue, 15 Mar 2022 14:08:21 -0700 Subject: [PATCH 25/28] Improve async discovery of magic commands. (#605) * Improve async discovery of magic commands. * Move async init of magic commands further up. * Fix bug in Execute override. --- src/Jupyter/Magic/Resolution/MagicResolver.cs | 30 ++++++++++++---- src/Kernel/IQSharpEngine.cs | 36 +++++++++++++++++-- src/Kernel/KernelApp/IQSharpKernelApp.cs | 1 - 3 files changed, 56 insertions(+), 11 deletions(-) diff --git a/src/Jupyter/Magic/Resolution/MagicResolver.cs b/src/Jupyter/Magic/Resolution/MagicResolver.cs index 1b91c9c001..7b1eb2bef6 100644 --- a/src/Jupyter/Magic/Resolution/MagicResolver.cs +++ b/src/Jupyter/Magic/Resolution/MagicResolver.cs @@ -54,7 +54,8 @@ public class MagicSymbolResolver : IMagicSymbolResolver .ToImmutableHashSet(); private readonly List kernelAssemblies = new List(); - private Dictionary cache; + private readonly Dictionary assemblySymbolCache; + private readonly Dictionary resolutionCache; private IServiceProvider services; private IReferences references; private IWorkspace workspace; @@ -67,14 +68,15 @@ public class MagicSymbolResolver : IMagicSymbolResolver /// public MagicSymbolResolver(IServiceProvider services, ILogger logger, IEventService eventService) { - this.cache = new Dictionary(); + this.assemblySymbolCache = new Dictionary(); + this.resolutionCache = new Dictionary(); this.logger = logger; this.services = services; this.references = services.GetService(); this.workspace = services.GetService(); - // Add the assmebly containing this type to the resolver. + // Add the assembly containing this type to the resolver. this.AddKernelAssembly(); eventService?.TriggerServiceInitialized(this); @@ -116,7 +118,17 @@ private IEnumerable RelevantAssemblies() /// public MagicSymbol? Resolve(string symbolName) { - if (symbolName == null || !symbolName.TrimStart().StartsWith("%")) return null; + if (symbolName == null || !symbolName.TrimStart().StartsWith("%")) + { + return null; + } + lock (resolutionCache) + { + if (resolutionCache.TryGetValue(symbolName, out var cachedSymbol)) + { + return cachedSymbol; + } + } this.logger.LogDebug($"Looking for magic {symbolName}"); @@ -125,6 +137,10 @@ private IEnumerable RelevantAssemblies() if (symbolName == magic.Name) { this.logger.LogDebug($"Using magic {magic.Name}"); + lock (resolutionCache) + { + resolutionCache[symbolName] = magic; + } return magic; } } @@ -149,9 +165,9 @@ public IEnumerable FindMagic(AssemblyInfo assm) return result; } - lock (cache) + lock (assemblySymbolCache) { - if (cache.TryGetValue(assm.Assembly.FullName, out result)) + if (assemblySymbolCache.TryGetValue(assm.Assembly.FullName, out result)) { return result; } @@ -215,7 +231,7 @@ public IEnumerable FindMagic(AssemblyInfo assm) logger.LogInformation("Took {Elapsed} to scan {Assembly} for magic symbols.", stopwatch.Elapsed, assm.Assembly.FullName); result = allMagic.ToArray(); - cache[assm.Assembly.FullName] = result; + assemblySymbolCache[assm.Assembly.FullName] = result; } return result; diff --git a/src/Kernel/IQSharpEngine.cs b/src/Kernel/IQSharpEngine.cs index 4caca1cfc8..2dfccea0b6 100644 --- a/src/Kernel/IQSharpEngine.cs +++ b/src/Kernel/IQSharpEngine.cs @@ -20,6 +20,7 @@ using System.Collections.Immutable; using Microsoft.Quantum.IQSharp.AzureClient; using Microsoft.Quantum.QsCompiler.BondSchemas; +using System.Threading; namespace Microsoft.Quantum.IQSharp.Kernel { @@ -150,6 +151,20 @@ private async Task StartAsync() ); }; + // Start registering magic symbols; we do this in the engine rather + // than in the kernel startup event so that we can make sure to + // gate any magic execution on having added relevant magic symbols. + services.AddBuiltInMagicSymbols(); + + // Start looking for magic symbols in the background while + // completing other initialization tasks; we'll await at the end. + var magicSymbolsDiscovered = Task.Run(() => + { + ( + services.GetRequiredService() as IMagicSymbolResolver + )?.FindAllMagicSymbols(); + }); + // Before anything else, make sure to start the right background // thread on the Q# compilation loader to initialize serializers // and deserializers. Since that runs in the background, starting @@ -178,6 +193,8 @@ private async Task StartAsync() this.Workspace = await serviceTasks.Workspace; var references = await serviceTasks.References; + + logger.LogDebug("Registering IQ# display and JSON encoders."); RegisterDisplayEncoder(new IQSharpSymbolToHtmlResultEncoder()); RegisterDisplayEncoder(new IQSharpSymbolToTextResultEncoder()); @@ -228,6 +245,7 @@ private async Task StartAsync() Process.GetCurrentProcess().Id ); + await magicSymbolsDiscovered; eventService?.TriggerServiceInitialized(this); var initializedSuccessfully = initializedSource.TrySetResult(true); @@ -332,6 +350,14 @@ private void RegisterPackageLoadedEvent(IServiceProvider services, ILogger logge }; } + /// + public override async Task Execute(string input, IChannel channel, CancellationToken token) + { + // Make sure that all relevant initializations have completed before executing. + await this.Initialized; + return await base.Execute(input, channel, token); + } + /// /// This is the method used to execute Jupyter "normal" cells. In this case, a normal /// cell is expected to have a Q# snippet, which gets compiled and we return the name of @@ -345,12 +371,16 @@ public override async Task ExecuteMundane(string input, IChanne { try { - await this.Initialized; - // Once the engine is initialized, we know that Workspace + // Since this method is only called once this.Initialized + // has completed, we know that Workspace // and Snippets are both not-null. + Debug.Assert( + this.Initialized.IsCompleted, + "Engine was not initialized before call to ExecuteMundane. " + + "This is an internal error; if you observe this message, please file a bug report at https://github.com/microsoft/iqsharp/issues/new." + ); var workspace = this.Workspace!; var snippets = this.Snippets!; - await workspace.Initialization; var code = snippets.Compile(input); diff --git a/src/Kernel/KernelApp/IQSharpKernelApp.cs b/src/Kernel/KernelApp/IQSharpKernelApp.cs index f22ad14d22..d7c67a8f9c 100644 --- a/src/Kernel/KernelApp/IQSharpKernelApp.cs +++ b/src/Kernel/KernelApp/IQSharpKernelApp.cs @@ -36,7 +36,6 @@ private void OnKernelStopped() private void OnKernelStarted(ServiceProvider serviceProvider) { var eventService = serviceProvider.GetService(); - serviceProvider.AddBuiltInMagicSymbols(); eventService?.Trigger(this); } } From 533b48ab1cfb17dd777f57629139aff8cf36d974 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Tue, 15 Mar 2022 03:44:49 +0000 Subject: [PATCH 26/28] Build 0.23.198514. --- images/iqsharp-base/Dockerfile | 2 +- src/AzureClient/AzureClient.csproj | 2 +- src/Core/Core.csproj | 8 ++--- .../ExecutionPathTracer.csproj | 2 +- .../Mock.Chemistry/Mock.Chemistry.csproj | 4 +-- .../Mock.Standard/Mock.Standard.csproj | 4 +-- .../ProjectA.csproj | 2 +- .../ProjectB.csproj | 2 +- .../Workspace.ProjectReferences.csproj | 4 +-- src/Tool/appsettings.json | 32 +++++++++---------- tests.live/Install-Artifacts.ps1 | 2 +- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index aa1b9009da..780faef6e4 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -129,7 +129,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \ # Install IQ# and the project templates, using the NuGet packages from the # build context. ARG IQSHARP_VERSION -RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.23.195531-beta" && \ +RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.23.198514-beta" && \ dotnet tool install \ --global \ Microsoft.Quantum.IQSharp \ diff --git a/src/AzureClient/AzureClient.csproj b/src/AzureClient/AzureClient.csproj index e02986f130..b07fe27d90 100644 --- a/src/AzureClient/AzureClient.csproj +++ b/src/AzureClient/AzureClient.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index e472f1b348..dbf2980a28 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -38,10 +38,10 @@ - - - - + + + + diff --git a/src/ExecutionPathTracer/ExecutionPathTracer.csproj b/src/ExecutionPathTracer/ExecutionPathTracer.csproj index 16adc4491c..a984ebe0bd 100644 --- a/src/ExecutionPathTracer/ExecutionPathTracer.csproj +++ b/src/ExecutionPathTracer/ExecutionPathTracer.csproj @@ -32,7 +32,7 @@ - + diff --git a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj index c8e9ef592e..7b9053125b 100644 --- a/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj +++ b/src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj index c8e9ef592e..7b9053125b 100644 --- a/src/MockLibraries/Mock.Standard/Mock.Standard.csproj +++ b/src/MockLibraries/Mock.Standard/Mock.Standard.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -6,6 +6,6 @@ - + diff --git a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj index b892221b56..c0a6578aed 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectA/ProjectA.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj index 24389dc3ba..843004fd57 100644 --- a/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj +++ b/src/Tests/Workspace.ProjectReferences.ProjectB/ProjectB.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 diff --git a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj index 7681540e2f..6da244e0d4 100644 --- a/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj +++ b/src/Tests/Workspace.ProjectReferences/Workspace.ProjectReferences.csproj @@ -1,4 +1,4 @@ - + netstandard2.1 @@ -7,7 +7,7 @@ - + diff --git a/src/Tool/appsettings.json b/src/Tool/appsettings.json index 7795d8ff9a..3d1e99e56c 100644 --- a/src/Tool/appsettings.json +++ b/src/Tool/appsettings.json @@ -6,21 +6,21 @@ }, "AllowedHosts": "*", "DefaultPackageVersions": [ - "Microsoft.Quantum.Compiler::0.23.195531-beta", - "Microsoft.Quantum.CSharpGeneration::0.23.195531-beta", - "Microsoft.Quantum.Development.Kit::0.23.195531-beta", - "Microsoft.Quantum.Simulators::0.23.195531-beta", - "Microsoft.Quantum.Xunit::0.23.195531-beta", - "Microsoft.Quantum.Standard::0.23.195531-beta", - "Microsoft.Quantum.Standard.Visualization::0.23.195531-beta", - "Microsoft.Quantum.Chemistry::0.23.195531-beta", - "Microsoft.Quantum.Chemistry.Jupyter::0.23.195531-beta", - "Microsoft.Quantum.MachineLearning::0.23.195531-beta", - "Microsoft.Quantum.Numerics::0.23.195531-beta", - "Microsoft.Quantum.Katas::0.23.195531-beta", - "Microsoft.Quantum.Research::0.23.195531-beta", - "Microsoft.Quantum.Providers.IonQ::0.23.195531-beta", - "Microsoft.Quantum.Providers.Honeywell::0.23.195531-beta", - "Microsoft.Quantum.Providers.QCI::0.23.195531-beta" + "Microsoft.Quantum.Compiler::0.23.198514-beta", + "Microsoft.Quantum.CSharpGeneration::0.23.198514-beta", + "Microsoft.Quantum.Development.Kit::0.23.198514-beta", + "Microsoft.Quantum.Simulators::0.23.198514-beta", + "Microsoft.Quantum.Xunit::0.23.198514-beta", + "Microsoft.Quantum.Standard::0.23.198514-beta", + "Microsoft.Quantum.Standard.Visualization::0.23.198514-beta", + "Microsoft.Quantum.Chemistry::0.23.198514-beta", + "Microsoft.Quantum.Chemistry.Jupyter::0.23.198514-beta", + "Microsoft.Quantum.MachineLearning::0.23.198514-beta", + "Microsoft.Quantum.Numerics::0.23.198514-beta", + "Microsoft.Quantum.Katas::0.23.198514-beta", + "Microsoft.Quantum.Research::0.23.198514-beta", + "Microsoft.Quantum.Providers.IonQ::0.23.198514-beta", + "Microsoft.Quantum.Providers.Honeywell::0.23.198514-beta", + "Microsoft.Quantum.Providers.QCI::0.23.198514-beta" ] } \ No newline at end of file diff --git a/tests.live/Install-Artifacts.ps1 b/tests.live/Install-Artifacts.ps1 index 39e0b35d20..aa0e97c4cf 100644 --- a/tests.live/Install-Artifacts.ps1 +++ b/tests.live/Install-Artifacts.ps1 @@ -50,7 +50,7 @@ function Install-FromBuild() { # Get the IQ# tool installed. "Installing IQ# from $Env:NUGET_OUTDIR using version $Env:NUGET_VERSION" | Write-Verbose - dotnet tool install --global Microsoft.Quantum.IQSharp --version $Env:NUGET_VERSION --add-source $Env:NUGET_OUTDIR + dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.23.198514-beta --add-source $Env:NUGET_OUTDIR if ($LASTEXITCODE -ne 0) { throw "Error installing Microsoft.Quantum.IQSharp" } dotnet iqsharp install --user if ($LASTEXITCODE -ne 0) { throw "Error installing iqsharp kernel" } From 2a1046bbac2e12be52706eb916ac681ac2240baa Mon Sep 17 00:00:00 2001 From: Angela Burton Date: Tue, 15 Mar 2022 17:17:26 -0700 Subject: [PATCH 27/28] Update Core.csproj (#613) Co-authored-by: Cassandra Granade --- src/Core/Core.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index ad7b04c665..07cb304bff 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -44,6 +44,7 @@ + From ffdb2d93aed807917cfbe9e94ee4abc206d6510b Mon Sep 17 00:00:00 2001 From: Angela Burton Date: Mon, 21 Mar 2022 12:02:50 -0700 Subject: [PATCH 28/28] Update local build to install .NET 6 (#621) * Update steps-selfcontained.yml * Update steps-selenium.yml * PR feedback * PR feedback --- build/steps-selenium.yml | 4 ++-- build/steps-selfcontained.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/steps-selenium.yml b/build/steps-selenium.yml index f00ac3d34f..78e28185c6 100644 --- a/build/steps-selenium.yml +++ b/build/steps-selenium.yml @@ -18,10 +18,10 @@ steps: workingDirectory: '$(System.DefaultWorkingDirectory)/build' - task: UseDotNet@2 - displayName: 'Use .NET Core SDK 3.1.100' + displayName: 'Use .NET Core SDK 6.0.100' inputs: packageType: sdk - version: '3.1.100' + version: '6.0.x' - pwsh: ./bootstrap.ps1 displayName: "Bootstrap" diff --git a/build/steps-selfcontained.yml b/build/steps-selfcontained.yml index 7db9fcc526..453d38bde6 100644 --- a/build/steps-selfcontained.yml +++ b/build/steps-selfcontained.yml @@ -17,10 +17,10 @@ steps: displayName: "Copy build artifacts to IQ# working directory" - task: UseDotNet@2 - displayName: 'Use .NET Core SDK 3.1.100' + displayName: 'Use .NET Core SDK 6.0.100' inputs: packageType: sdk - version: '3.1.100' + version: '6.0.x' ## # Pack