Trying to Install Package that Targets .NETFramework V4.6.1 WPF












0















I have seen read how many people have faced this problem. Specifically I'm trying to install the package: Microsoft.Toolkit.Wpf.UI.Controls.Webview although as the title states it:



Could not install package 'Microsoft.Toolkit.Wpf.UI.Controls.WebView 5.0.1'.
You are trying to install this package into a project that targets
.NETFramework,Version=v4.6.1', but the package does not contain any assembly
references or content files that are compatible with that framework.


The problem I face is that the two solutions across all the similar posts don't seem to solve the problem for me. I have cleared the Nuget cache, which didn't resolve the issue and the second solution, which states renaming the Package .net folder to the current targeted framework is impossible as I cannot install it at all.



Is there something I'm missing?










share|improve this question























  • Is your project an UWP application. The toolkit targets UWP.

    – H.G. Sandhagen
    Nov 27 '18 at 6:48











  • No I'm creating a WPF project. Out of curiousity why is WPF in the package name if it's meant for UWP?

    – Explorex
    Nov 27 '18 at 6:49











  • Apparently it only supports .Net Framework 4.6.2 or higher. And of course Microsoft.Toolkit.Wpf.UI.Controls targets WPF, not UWP.

    – Clemens
    Nov 27 '18 at 7:21













  • Can I change the project framework on the fly or do I need to create an entire new project?

    – Explorex
    Nov 27 '18 at 7:29











  • Just go to the project's Properties page and select another Target framework.

    – Clemens
    Nov 27 '18 at 7:29


















0















I have seen read how many people have faced this problem. Specifically I'm trying to install the package: Microsoft.Toolkit.Wpf.UI.Controls.Webview although as the title states it:



Could not install package 'Microsoft.Toolkit.Wpf.UI.Controls.WebView 5.0.1'.
You are trying to install this package into a project that targets
.NETFramework,Version=v4.6.1', but the package does not contain any assembly
references or content files that are compatible with that framework.


The problem I face is that the two solutions across all the similar posts don't seem to solve the problem for me. I have cleared the Nuget cache, which didn't resolve the issue and the second solution, which states renaming the Package .net folder to the current targeted framework is impossible as I cannot install it at all.



Is there something I'm missing?










share|improve this question























  • Is your project an UWP application. The toolkit targets UWP.

    – H.G. Sandhagen
    Nov 27 '18 at 6:48











  • No I'm creating a WPF project. Out of curiousity why is WPF in the package name if it's meant for UWP?

    – Explorex
    Nov 27 '18 at 6:49











  • Apparently it only supports .Net Framework 4.6.2 or higher. And of course Microsoft.Toolkit.Wpf.UI.Controls targets WPF, not UWP.

    – Clemens
    Nov 27 '18 at 7:21













  • Can I change the project framework on the fly or do I need to create an entire new project?

    – Explorex
    Nov 27 '18 at 7:29











  • Just go to the project's Properties page and select another Target framework.

    – Clemens
    Nov 27 '18 at 7:29
















0












0








0


1






I have seen read how many people have faced this problem. Specifically I'm trying to install the package: Microsoft.Toolkit.Wpf.UI.Controls.Webview although as the title states it:



Could not install package 'Microsoft.Toolkit.Wpf.UI.Controls.WebView 5.0.1'.
You are trying to install this package into a project that targets
.NETFramework,Version=v4.6.1', but the package does not contain any assembly
references or content files that are compatible with that framework.


The problem I face is that the two solutions across all the similar posts don't seem to solve the problem for me. I have cleared the Nuget cache, which didn't resolve the issue and the second solution, which states renaming the Package .net folder to the current targeted framework is impossible as I cannot install it at all.



Is there something I'm missing?










share|improve this question














I have seen read how many people have faced this problem. Specifically I'm trying to install the package: Microsoft.Toolkit.Wpf.UI.Controls.Webview although as the title states it:



Could not install package 'Microsoft.Toolkit.Wpf.UI.Controls.WebView 5.0.1'.
You are trying to install this package into a project that targets
.NETFramework,Version=v4.6.1', but the package does not contain any assembly
references or content files that are compatible with that framework.


The problem I face is that the two solutions across all the similar posts don't seem to solve the problem for me. I have cleared the Nuget cache, which didn't resolve the issue and the second solution, which states renaming the Package .net folder to the current targeted framework is impossible as I cannot install it at all.



Is there something I'm missing?







c# wpf nuget package






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 27 '18 at 6:40









ExplorexExplorex

617




617













  • Is your project an UWP application. The toolkit targets UWP.

    – H.G. Sandhagen
    Nov 27 '18 at 6:48











  • No I'm creating a WPF project. Out of curiousity why is WPF in the package name if it's meant for UWP?

    – Explorex
    Nov 27 '18 at 6:49











  • Apparently it only supports .Net Framework 4.6.2 or higher. And of course Microsoft.Toolkit.Wpf.UI.Controls targets WPF, not UWP.

    – Clemens
    Nov 27 '18 at 7:21













  • Can I change the project framework on the fly or do I need to create an entire new project?

    – Explorex
    Nov 27 '18 at 7:29











  • Just go to the project's Properties page and select another Target framework.

    – Clemens
    Nov 27 '18 at 7:29





















  • Is your project an UWP application. The toolkit targets UWP.

    – H.G. Sandhagen
    Nov 27 '18 at 6:48











  • No I'm creating a WPF project. Out of curiousity why is WPF in the package name if it's meant for UWP?

    – Explorex
    Nov 27 '18 at 6:49











  • Apparently it only supports .Net Framework 4.6.2 or higher. And of course Microsoft.Toolkit.Wpf.UI.Controls targets WPF, not UWP.

    – Clemens
    Nov 27 '18 at 7:21













  • Can I change the project framework on the fly or do I need to create an entire new project?

    – Explorex
    Nov 27 '18 at 7:29











  • Just go to the project's Properties page and select another Target framework.

    – Clemens
    Nov 27 '18 at 7:29



















Is your project an UWP application. The toolkit targets UWP.

– H.G. Sandhagen
Nov 27 '18 at 6:48





Is your project an UWP application. The toolkit targets UWP.

– H.G. Sandhagen
Nov 27 '18 at 6:48













No I'm creating a WPF project. Out of curiousity why is WPF in the package name if it's meant for UWP?

– Explorex
Nov 27 '18 at 6:49





No I'm creating a WPF project. Out of curiousity why is WPF in the package name if it's meant for UWP?

– Explorex
Nov 27 '18 at 6:49













Apparently it only supports .Net Framework 4.6.2 or higher. And of course Microsoft.Toolkit.Wpf.UI.Controls targets WPF, not UWP.

– Clemens
Nov 27 '18 at 7:21







Apparently it only supports .Net Framework 4.6.2 or higher. And of course Microsoft.Toolkit.Wpf.UI.Controls targets WPF, not UWP.

– Clemens
Nov 27 '18 at 7:21















Can I change the project framework on the fly or do I need to create an entire new project?

– Explorex
Nov 27 '18 at 7:29





Can I change the project framework on the fly or do I need to create an entire new project?

– Explorex
Nov 27 '18 at 7:29













Just go to the project's Properties page and select another Target framework.

– Clemens
Nov 27 '18 at 7:29







Just go to the project's Properties page and select another Target framework.

– Clemens
Nov 27 '18 at 7:29














2 Answers
2






active

oldest

votes


















1














You need to upgrade the target framework of your project to .NET Framework 4.6.2 or later to be able to consume and use the Microsoft.Toolkit.Wpf.UI.Controls.WebView package.



You do this under Project->Properties->Application->Target Framework in Visual Studio:



enter image description here






share|improve this answer































    0














    The package targets .NET v4.6.2. You cant install it in a lower framework project.



    Simply download the package and open it in 7Zip or any zip extractor to see the package's target framework version. Open lib directory.



    enter image description here






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53494088%2ftrying-to-install-package-that-targets-netframework-v4-6-1-wpf%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      You need to upgrade the target framework of your project to .NET Framework 4.6.2 or later to be able to consume and use the Microsoft.Toolkit.Wpf.UI.Controls.WebView package.



      You do this under Project->Properties->Application->Target Framework in Visual Studio:



      enter image description here






      share|improve this answer




























        1














        You need to upgrade the target framework of your project to .NET Framework 4.6.2 or later to be able to consume and use the Microsoft.Toolkit.Wpf.UI.Controls.WebView package.



        You do this under Project->Properties->Application->Target Framework in Visual Studio:



        enter image description here






        share|improve this answer


























          1












          1








          1







          You need to upgrade the target framework of your project to .NET Framework 4.6.2 or later to be able to consume and use the Microsoft.Toolkit.Wpf.UI.Controls.WebView package.



          You do this under Project->Properties->Application->Target Framework in Visual Studio:



          enter image description here






          share|improve this answer













          You need to upgrade the target framework of your project to .NET Framework 4.6.2 or later to be able to consume and use the Microsoft.Toolkit.Wpf.UI.Controls.WebView package.



          You do this under Project->Properties->Application->Target Framework in Visual Studio:



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 27 '18 at 14:57









          mm8mm8

          84.9k81932




          84.9k81932

























              0














              The package targets .NET v4.6.2. You cant install it in a lower framework project.



              Simply download the package and open it in 7Zip or any zip extractor to see the package's target framework version. Open lib directory.



              enter image description here






              share|improve this answer




























                0














                The package targets .NET v4.6.2. You cant install it in a lower framework project.



                Simply download the package and open it in 7Zip or any zip extractor to see the package's target framework version. Open lib directory.



                enter image description here






                share|improve this answer


























                  0












                  0








                  0







                  The package targets .NET v4.6.2. You cant install it in a lower framework project.



                  Simply download the package and open it in 7Zip or any zip extractor to see the package's target framework version. Open lib directory.



                  enter image description here






                  share|improve this answer













                  The package targets .NET v4.6.2. You cant install it in a lower framework project.



                  Simply download the package and open it in 7Zip or any zip extractor to see the package's target framework version. Open lib directory.



                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 27 '18 at 7:33









                  Mathivanan KPMathivanan KP

                  1,023918




                  1,023918






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53494088%2ftrying-to-install-package-that-targets-netframework-v4-6-1-wpf%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Contact image not getting when fetch all contact list from iPhone by CNContact

                      count number of partitions of a set with n elements into k subsets

                      A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks