Can't Install Nuget Package












0














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?










share|improve this question




















  • 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
















0














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?










share|improve this question




















  • 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














0












0








0







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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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














  • 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








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












1 Answer
1






active

oldest

votes


















1















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.



enter image description here



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:



enter image description here



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.






share|improve this answer





















  • 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











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%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









1















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.



enter image description here



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:



enter image description here



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.






share|improve this answer





















  • 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
















1















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.



enter image description here



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:



enter image description here



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.






share|improve this answer





















  • 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














1












1








1







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.



enter image description here



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:



enter image description here



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.






share|improve this answer













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.



enter image description here



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:



enter image description here



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.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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


















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.





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.




draft saved


draft discarded














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





















































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

Bressuire

Vorschmack

Quarantine