Skip to main content
Question

Type conflict with BoxJWTAuth (It's in two places)

  • May 22, 2025
  • 2 replies
  • 38 views

Forum|alt.badge.img

I'm trying to develop a Windows console app in .Net Framework (not Core), using Visual Studio 2017.  Following the examples in the SDK, I created a new project and added the two Nuget packages that are required:

 

PM> Install-Package Box.V2
PM> Install-Package Box.V2.JWTAuth

Now I'm getting a type conflict, with this error message:

 

CS0433 The type 'BoxJWTAuth' exists in both 'Box.V2.JWTAuth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ddda8fe64dde1ac3' and 'Box.V2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ddda8fe64dde1ac3'

 

I tried putting in the full namespace path and still get the error.  Has anyone else had this problem? Thanks!

 

BOX_eja3v8gb02kgx7pguwz3ef17tn8oh3jq.png

2 replies

Forum|alt.badge.img

you just need to do and it should work:

 

PM> Install-Package Box.V2

Forum|alt.badge.img

That fixed it!  Thanks so much!