简体   繁体   English

Windows窗体在Windows Xp sp3上安装时询问.Net Framework 4.5

[英]Windows Form asking .Net framework 4.5 while installing on Windows Xp sp3

I have developed a Windows Form application in .Net C# using visual studio 2013. I am very sure that I have selected .Net framework version 3.5 while creating the project, so that it can install on Windows XP sp3 as well. 我已经使用Visual Studio 2013在.Net C#中开发了Windows窗体应用程序。我非常确定在创建项目时选择了.Net Framework 3.5版,以便它也可以安装在Windows XP sp3上。

I have created the setup file using Visual Studio installer plugin. 我已经使用Visual Studio安装程序插件创建了安装文件。 But when I have tried to install it in a machine which have windows xp sp3 with .net framework installed, there is an error showing that it is required .net framework 4.5 to run this application. 但是,当我尝试将其安装在装有Windows XP SP3和.NET Framework的计算机上时,出现错误,表明要运行该应用程序需要.NET Framework 4.5。

I have tried recreating the app, but it didn't work. 我尝试重新创建该应用程序,但没有成功。

Alryt.. I have figured it out myself... Thank you dennis.. you gave me the clue... Alryt ..我自己弄清楚了...谢谢Dennis ..你给了我线索...

It have to select from setup project properties--> Prerequisites... 它必须从安装项目属性中选择->先决条件...

that worked for me... :) 对我有用... :)

In Visual Studio, right-click your project (not the solution, but rather the concrete project), go to properties, select the "Application"-ledger and check what is selected as Target Framework. 在Visual Studio中,右键单击您的项目(不是解决方案,而是具体项目),转到属性,选择“应用程序”分类帐,然后检查选择了哪些作为目标框架。 You should be able to select .Net Framework 3.5 as build target. 您应该能够选择.Net Framework 3.5作为构建目标。

Right click on Setup Project > View > Launch Conditions. 右键单击安装项目>视图>启动条件。 Over here, it was already referring to .Net Framework, Right click on it > Properties, change the version to .Net Framework 3.5. 在这里,它已经指向.Net Framework,右键单击它>属性,将版本更改为.Net Framework 3.5。 It solved the problem. 它解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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