简体   繁体   English

安装程序与 2010 64 位更改平台

[英]setup installer vs 2010 64 bit changed platform

I created a setup installer in vs 2010 and it is in .net Platform 3.0.我在 vs 2010 中创建了一个安装程序,它位于 .net Platform 3.0 中。 Because my app is 64 bit, I also made the setup installer x64 (solution explorer-> target platform).因为我的应用程序是 64 位的,所以我还制作了安装程序 x64(解决方案资源管理器-> 目标平台)。 it compiled and build fine.它编译并构建良好。 when I am ready to use it, I copied this installer file to another box and run it.当我准备好使用它时,我将此安装程序文件复制到另一个盒子并运行它。 It complains that I need .net platform 4.0.它抱怨我需要 .net 平台 4.0。 How is it possible?这怎么可能? How to changed it back to 3.0?怎么改回3.0? How to fix this?如何解决这个问题?

Sometimes Visual Studio setup automatically adds a .NET Framework launch condition to the package.有时 Visual Studio 安装程序会自动将 .NET 框架启动条件添加到 package。 So you can try this:所以你可以试试这个:

  • select your setup project in Solution Explorer select 您在解决方案资源管理器中的设置项目
  • click "Launch Conditions Editor" button in Solution Explorer top pane单击解决方案资源管理器顶部窗格中的“启动条件编辑器”按钮
  • modify or remove the .NET Framework launch condition修改或删除 .NET 框架启动条件

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

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