Can't Install Nuget Package
I am trying to install System.Runtime.Handles
so I can use SafeAccessTokenHandle
and RunImpersonated
, however when I try to install the package I get the error :
Could not install package 'System.Runtime.Handles 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0
. Does anybody have an idea on how to install this package?
c# visual-studio visual-studio-2013 nuget nuget-package
|
show 2 more comments
I am trying to install System.Runtime.Handles
so I can use SafeAccessTokenHandle
and RunImpersonated
, however when I try to install the package I get the error :
Could not install package 'System.Runtime.Handles 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0
. Does anybody have an idea on how to install this package?
c# visual-studio visual-studio-2013 nuget nuget-package
2
4.3.0 refers toSystem.Runtime.Handles
version; check here: the package requires .NET 4.6.0. You need to update your project configuration to support that version.
– Fer García
Nov 12 at 19:42
Okay I tried to install .NET 4.6.0 and it said it was already installed. So I checked and it looks like I have 4.7.1 installed. When I change my project to use 4.6.0 it tells me I have to install it.
– parrigin777
Nov 12 at 20:03
@parrigin777 you might need the "targeting pack": microsoft.com/en-us/download/details.aspx?id=48136
– Marc Gravell♦
Nov 12 at 20:12
@parrigin777 two questions: what's your Visual Studio version?, and how are you changing the .NET framework target version of your project?
– Fer García
Nov 12 at 20:17
@MarcGravell I downloaded and installed both executables via the link provided and I am still prompted saying I need to install v4.6.0
– parrigin777
Nov 12 at 20:18
|
show 2 more comments
I am trying to install System.Runtime.Handles
so I can use SafeAccessTokenHandle
and RunImpersonated
, however when I try to install the package I get the error :
Could not install package 'System.Runtime.Handles 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0
. Does anybody have an idea on how to install this package?
c# visual-studio visual-studio-2013 nuget nuget-package
I am trying to install System.Runtime.Handles
so I can use SafeAccessTokenHandle
and RunImpersonated
, however when I try to install the package I get the error :
Could not install package 'System.Runtime.Handles 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0
. Does anybody have an idea on how to install this package?
c# visual-studio visual-studio-2013 nuget nuget-package
c# visual-studio visual-studio-2013 nuget nuget-package
edited Nov 14 at 1:17
Leo Liu-MSFT
17.7k21832
17.7k21832
asked Nov 12 at 19:38
parrigin777
1286
1286
2
4.3.0 refers toSystem.Runtime.Handles
version; check here: the package requires .NET 4.6.0. You need to update your project configuration to support that version.
– Fer García
Nov 12 at 19:42
Okay I tried to install .NET 4.6.0 and it said it was already installed. So I checked and it looks like I have 4.7.1 installed. When I change my project to use 4.6.0 it tells me I have to install it.
– parrigin777
Nov 12 at 20:03
@parrigin777 you might need the "targeting pack": microsoft.com/en-us/download/details.aspx?id=48136
– Marc Gravell♦
Nov 12 at 20:12
@parrigin777 two questions: what's your Visual Studio version?, and how are you changing the .NET framework target version of your project?
– Fer García
Nov 12 at 20:17
@MarcGravell I downloaded and installed both executables via the link provided and I am still prompted saying I need to install v4.6.0
– parrigin777
Nov 12 at 20:18
|
show 2 more comments
2
4.3.0 refers toSystem.Runtime.Handles
version; check here: the package requires .NET 4.6.0. You need to update your project configuration to support that version.
– Fer García
Nov 12 at 19:42
Okay I tried to install .NET 4.6.0 and it said it was already installed. So I checked and it looks like I have 4.7.1 installed. When I change my project to use 4.6.0 it tells me I have to install it.
– parrigin777
Nov 12 at 20:03
@parrigin777 you might need the "targeting pack": microsoft.com/en-us/download/details.aspx?id=48136
– Marc Gravell♦
Nov 12 at 20:12
@parrigin777 two questions: what's your Visual Studio version?, and how are you changing the .NET framework target version of your project?
– Fer García
Nov 12 at 20:17
@MarcGravell I downloaded and installed both executables via the link provided and I am still prompted saying I need to install v4.6.0
– parrigin777
Nov 12 at 20:18
2
2
4.3.0 refers to
System.Runtime.Handles
version; check here: the package requires .NET 4.6.0. You need to update your project configuration to support that version.– Fer García
Nov 12 at 19:42
4.3.0 refers to
System.Runtime.Handles
version; check here: the package requires .NET 4.6.0. You need to update your project configuration to support that version.– Fer García
Nov 12 at 19:42
Okay I tried to install .NET 4.6.0 and it said it was already installed. So I checked and it looks like I have 4.7.1 installed. When I change my project to use 4.6.0 it tells me I have to install it.
– parrigin777
Nov 12 at 20:03
Okay I tried to install .NET 4.6.0 and it said it was already installed. So I checked and it looks like I have 4.7.1 installed. When I change my project to use 4.6.0 it tells me I have to install it.
– parrigin777
Nov 12 at 20:03
@parrigin777 you might need the "targeting pack": microsoft.com/en-us/download/details.aspx?id=48136
– Marc Gravell♦
Nov 12 at 20:12
@parrigin777 you might need the "targeting pack": microsoft.com/en-us/download/details.aspx?id=48136
– Marc Gravell♦
Nov 12 at 20:12
@parrigin777 two questions: what's your Visual Studio version?, and how are you changing the .NET framework target version of your project?
– Fer García
Nov 12 at 20:17
@parrigin777 two questions: what's your Visual Studio version?, and how are you changing the .NET framework target version of your project?
– Fer García
Nov 12 at 20:17
@MarcGravell I downloaded and installed both executables via the link provided and I am still prompted saying I need to install v4.6.0
– parrigin777
Nov 12 at 20:18
@MarcGravell I downloaded and installed both executables via the link provided and I am still prompted saying I need to install v4.6.0
– parrigin777
Nov 12 at 20:18
|
show 2 more comments
1 Answer
1
active
oldest
votes
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools
->Extensions and Updates
->Installed
.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties
->Application
->Target framework
:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
1
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
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%2f53268981%2fcant-install-nuget-package%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools
->Extensions and Updates
->Installed
.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties
->Application
->Target framework
:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
1
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
add a comment |
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools
->Extensions and Updates
->Installed
.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties
->Application
->Target framework
:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
1
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
add a comment |
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools
->Extensions and Updates
->Installed
.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties
->Application
->Target framework
:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools
->Extensions and Updates
->Installed
.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties
->Application
->Target framework
:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.
answered Nov 13 at 6:41
Leo Liu-MSFT
17.7k21832
17.7k21832
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
1
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
add a comment |
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
1
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
I did that and now I get the error message at runtime: Parser Error Message: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
– parrigin777
Nov 15 at 21:02
1
1
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
@parrigin777, Sorry to reply so late. It seems your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Check stackoverflow.com/questions/33412042/…
– Leo Liu-MSFT
Nov 21 at 6:24
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f53268981%2fcant-install-nuget-package%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
2
4.3.0 refers to
System.Runtime.Handles
version; check here: the package requires .NET 4.6.0. You need to update your project configuration to support that version.– Fer García
Nov 12 at 19:42
Okay I tried to install .NET 4.6.0 and it said it was already installed. So I checked and it looks like I have 4.7.1 installed. When I change my project to use 4.6.0 it tells me I have to install it.
– parrigin777
Nov 12 at 20:03
@parrigin777 you might need the "targeting pack": microsoft.com/en-us/download/details.aspx?id=48136
– Marc Gravell♦
Nov 12 at 20:12
@parrigin777 two questions: what's your Visual Studio version?, and how are you changing the .NET framework target version of your project?
– Fer García
Nov 12 at 20:17
@MarcGravell I downloaded and installed both executables via the link provided and I am still prompted saying I need to install v4.6.0
– parrigin777
Nov 12 at 20:18