Hi, I am new to Pulumi, so this might be a total n...
# azure
n
Hi, I am new to Pulumi, so this might be a total newbie mistake, but I have a problem getting the NuGet-packages installed. I am using Azure and C#. The project created with "pulumi new" seems to have some problems with the packages. Both the Pulumi and the Pulumi.Azure have this problem.
t
This looks weird… Could you share your
csproj
file? You should only have one reference there like:
Copy code
<ItemGroup>
    <PackageReference Include="Pulumi.Azure" Version="1.14.0-preview" />
  </ItemGroup>
n
Copy code
<Project Sdk="<http://Microsoft.NET|Microsoft.NET>.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Pulumi.Azure" Version="1.14.0-preview" />
  </ItemGroup>

</Project>
However this gives a compile error of "Cycle detected". So I removed it earlier and tried to add it back through VS2019, which was impossible.
Hmm... It seems to work when creating a new project. I will compare them and see if I can find my error.
All files seem identical, so I have no idea what caused this. It threw a Cycle error as soon as I used "pulumi new" and the second time it did not. One project works, the other does not. But I have a compiling project, so I am happy.
t
What if you delete bin/obj files in the broken project and rebuild?
n
That didn't work, but I found the error. If the project you are creating is also called "Pulumi" then you get the Cycle Error.
t
a-ha
yeah, that makes sense
It can’t understand the difference between the two
n
Yup, admittedly is was a silly name, I was just going through the "Getting started" and testing things out. Sorry for the inconvenience, saw the error from NuGet and thought it was the cause.
t
We could actually prevent this…. would you please create an issue at https://github.com/pulumi/pulumi and describe your situation?
n
Of course. I have created this: https://github.com/pulumi/pulumi/issues/4013
Thank you for your help 🙂
👍 1