DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN.ClientDependency Not Available

Sort:
You are not authorized to post a reply.





New Around Here





    I receive the following error messages after opening DNN Platform V9,6,2 in MS Visual Studio 2019 and 2022:

    Severity    Code    Description    Project    File    Line    Suppression State
    Error        NuGet Package restore failed for project DNN Platform\DotNetNuke.Web: Unable to find version '1.9.2.7' of package 'Dnn.ClientDependency'.
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
      https://api.nuget.org/v3/index.json: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'https://api.nuget.org/v3/index.json'.
      https://api.nuget.org/v3/index.json: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'https://api.nuget.org/v3/index.json'.
    . Please see Error List window for detailed warnings and errors. 

    Severity    Code    Description    Project    File    Line    Suppression State
    Error        NuGet Package restore failed for project DNN Platform\DotNetNuke.Library: Unable to find version '1.9.2.7' of package 'Dnn.ClientDependency'.
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
      https://api.nuget.org/v3/index.json: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'https://api.nuget.org/v3/index.json'.
      https://api.nuget.org/v3/index.json: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'https://api.nuget.org/v3/index.json'.
    . Please see Error List window for detailed warnings and errors.    

    I have tried to locate this version of the code; but cannot find it.  I can only find the code for Version 1.9.1.0.

    How can this be corrected so that I can compile the platform, release V9.6.2?

    Thanks is advance,

    Hans

                
                   






    Veteran Member





      This should be added automatically if you're using Nuget. You don't need to directly target that. In fact, I don't think you can.

      I'd recommend updating your Nuget references to being the most current they can be for your development environment, and then checking that all of the Nuget references are targeting the same version of DNN Platform. :)





      New Around Here





        Will,
        I am using a clone of the nuget directory for release 9.6.2 or 9.7.2. The error comes for initializing MS Visual Studio. If I look into the nuget.config file, and follow the links there is no mention of the ClientDependency code.

        I am trying to compile the base DNN version, so that I can implement the new Azure email service.

        I think that I can update the references in the code to the correct version of the ClientDependency.Core.dll file; but I don't think that I would be able to compile the code.

        Any idea on how to work around this?

        Thanks for your responses ....
        Hans





        Veteran Member





          Oh, you're trying to compile DNN itself?  You'll want to follow the steps described in the video series linked below.  

          https://www.youtube.com/w...jVAt50ORp1TIIiaeLtq2

          DNN is not a hobbyist platform and instead is better suited to larger companies and enterprises.  For those reasons, the build process is not as simple as open and build.  You'll have a tiny bit of setup, but once you go through the videos, you'll be good.  

          Now, I do want to put out a disclaimer...  

          It's not a good idea to download and/or build the DNN source code unless you're intending to build in new features and/or fix bugs to submit as a Pull Request (PR).  The primary reasons include: 

          • The source code is not necessary to build or debug anything (unless it's a deeply rooted bug in DNN); 
          • Any extension can be built and debugged without DNN's source code; 
          • If you need to look at the source code at any point in time for any reason, it's always available on GitHub; 
          • Having the source code ready to build encourages people to make core code changes (this is not a best practice).  

          Making core code changes can be okay if you're never ever ever ever going to upgrade in the future.  In this scenario, you'd be forking DNN and would be responsible for making any and all updates moving forward.  This is because any upgrade from that point will either be overwritten - or fail and crash the website immediately.  

          With that being said, please feel free to work with DNN in any way that meets your needs.  :)  






          New Around Here





            Will,

            Thank you for the response. Just a short note regarding your note of caution. I am fully aware of the dangers of working with the DNN source code. I have and will continue to with and learn from Peter Donker's excellent video series.





            Veteran Member





              Awesome! 

              FYI - It wasn't necessarily just for you.  ;)  My responses are also written in a way that knows anyone can potentially see it in the future, so it's just a normal message to be sure to educate those who aren't aware of the dangers.  A lot of people just decide to open the source code and get to work. 

              For example, we're literally just wrapping up a 3-year consulting engagement with a client where the core code changes were so significant over the years, we've had to slowly remove them over the course of a handful of (modified) upgrades.  About half the updates were things that would've been gained from upgrading too.  [facepalm]  It was a nightmare, but it's finally (almost) over.  :)  

              I'm happy to help and happy coding!  

              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved