From ed8e195009a6e1b7c69a8ee9d7a148412184e29c Mon Sep 17 00:00:00 2001 From: "Stefan J. Wernli" Date: Tue, 26 May 2020 23:34:39 -0700 Subject: [PATCH] Add IncludeProviderPackages option This allows clients to suppress automatic loading of provider packages for testing or development purposes. --- src/QuantumSdk/DefaultItems/DefaultItems.props.v.template | 1 + src/QuantumSdk/README.md | 3 +++ src/QuantumSdk/Sdk/Sdk.props | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/QuantumSdk/DefaultItems/DefaultItems.props.v.template b/src/QuantumSdk/DefaultItems/DefaultItems.props.v.template index ea3594c422..6a5a926646 100644 --- a/src/QuantumSdk/DefaultItems/DefaultItems.props.v.template +++ b/src/QuantumSdk/DefaultItems/DefaultItems.props.v.template @@ -32,6 +32,7 @@ Normal true true + true false false dotnet "$(MSBuildThisFileDirectory)../tools/utils/Microsoft.Quantum.Sdk.BuildConfiguration.dll" diff --git a/src/QuantumSdk/README.md b/src/QuantumSdk/README.md index 682fab4c86..b5259154f3 100644 --- a/src/QuantumSdk/README.md +++ b/src/QuantumSdk/README.md @@ -115,6 +115,9 @@ Specifies the simulator to use by default for execution. Valid values are Quantu - `IncludeQsharpCorePackages`: Specifies whether the packages providing the basic language support for Q# are referenced. This property is set to true by default. If set to false, the Sdk will not reference any Q# libraries. +- `IncludeProviderPackages`: +Specifies whether the packages for specific hardware providers should be automatically included based on the specified `ExecutionTarget`. This property is set to true by default. If set to false, the Sdk will not automatically reference any provider packages. + - `QscExe`: The command to invoke the Q# compiler. The value set by default invokes the Q# compiler that is packaged as tool with the Sdk. The default value can be accessed via the `DefaultQscExe` property. diff --git a/src/QuantumSdk/Sdk/Sdk.props b/src/QuantumSdk/Sdk/Sdk.props index 53285be4a7..c83600e557 100644 --- a/src/QuantumSdk/Sdk/Sdk.props +++ b/src/QuantumSdk/Sdk/Sdk.props @@ -32,9 +32,9 @@ - - - + + +