# Q# How to use a namespace in another project?

I have some utility operations that I'd like to use across projects. How can I import its namespace using Q# in Visual Studio 2017 in other projects?

Second, you need to open the namespace which contains the utility operations in each Q# file which uses them. To do this, add an open statement after the declaration of the namespace and before definition of any functions or operations:
namespace ProjectNamespace {

• Thanks so much, worked like a charm! Now that Q# 0.3 is out, I'd like to update my Utilities project with the new code, but allow some of my other projects to use the old version. I see the quantum development kit's version can be referenced like so  <PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.3.1810.2508-preview" />. I'm having trouble finding documentation on how I can do this with my custom namespace. Can you point me in the right direction? – nikojpapa Oct 31 '18 at 22:55