简体   繁体   中英

Target framework in VB.NET project

I am working on a Visual Basic project using Visual Studio Community 2013, running on Windows 7 SP1 with .NET Framework 4.5.1. In my project properties I changed target framework from 4.5.1 to 4.5. When I try to install my application on another computer running Windows 7 SP1 with .NET 4.5, I get the following error message: "A failure occured attempting to install the .NET Framework 4.5.1"

Why won't my application install on a computer with .NET 4.5 when I have built/published the application with target framework set to .NET 4.5?

I tried creating a new project with target framework set to 4.5, and I have no problems installing this new application. When creating my main project, I did set target framework to 4.5.1 and later changed it to 4.5. I am thinking that maybe my main project was created with some kind of "template" for 4.5.1 ??

As mentioned in the question ClickOnce won't install .NET 4.5 :

Try Project Properties -> Publish -> Prerequisites -> Change to the framework you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM