Trying to Install Package that Targets .NETFramework V4.6.1 WPF
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
add a comment |
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
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 courseMicrosoft.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
add a comment |
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
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
c# wpf nuget package
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 courseMicrosoft.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
add a comment |
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 courseMicrosoft.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
add a comment |
2 Answers
2
active
oldest
votes
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:
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
add a comment |
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:
add a comment |
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:
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:
answered Nov 27 '18 at 14:57
mm8mm8
84.9k81932
84.9k81932
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 27 '18 at 7:33
Mathivanan KPMathivanan KP
1,023918
1,023918
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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