Skip to main content

General questions and feedback on Microsoft's Quantum Developer Kit

Bug in Microsoft.Quantum.Development.Kit.props in nuget package

When attempting to use the QDK, I had an issue where nothing would build. After some troubleshooting, I found that the build command that invokes qsc.dll was failing to find that dll as the path to it (in a folder off .nuget off my home directory) contained a space (my home directory's full path has a space in it). The path, as outlined in the Microsoft.Quantum.Development.Kit.props file did not quote the path.

This was on a Mac, running MacOS 10.13.3.

This section...

<PropertyGroup>
<QscExe Condition="'$(QscExe)' == ''">dotnet $(MSBuildThisFileDirectory)../tools/qsc/qsc.dll</QscExe>
<QDocGen Condition="'$(QDocGen)' == ''">dotnet $(MSBuildThisFileDirectory)../tools/qdocgen/qdocgen.dll</QDocGen>
</PropertyGroup>

Needed to be changed to this...

<PropertyGroup>
<QscExe Condition="'$(QscExe)' == ''">dotnet &quot;$(MSBuildThisFileDirectory)../tools/qsc/qsc.dll&quot;</QscExe>
<QDocGen Condition="'$(QDocGen)' == ''">dotnet &quot;$(MSBuildThisFileDirectory)../tools/qdocgen/qdocgen.dll&quot;</QDocGen>
</PropertyGroup>

After those changes, all is well.

2 votes
Sign in
Signed in as (Sign out)

We’ll send you updates on this idea

Jeffrey Six shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base