.net 框架启动的版本与 .net 框架引导程序项目不匹配 [英] version of .net framework launch not match .net framework bootstrapper project

查看:39
本文介绍了.net 框架启动的版本与 .net 框架引导程序项目不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我构建刚开始使用的 vb.net 2010 的发布项目时,收到两个警告:

When I build the release project of the vb.net 2010 I just started using, I get two warnings:

  1. .net 框架启动条件的版本与选定的 .net 框架引导程序包不匹配.更新 .net framewk 启动条件以匹配在先决条件对话框中选择的 .netfrk 版本.

  1. the version of the .net framedwork launch condition does not match the selected .net framework bootstrapper package. Update the .net framewk launch condition to match the version of the .netfrk selected in the prerequisites dialog box.

项目中 .net 框架的目标版本与 .net 框架启动条件版本 .net 框架 4 客户端配置文件不匹配.在高级编译选项对话框中更新 .net 框架启动条件的版本以匹配 .net 框架的目标版本.

The target version of the .net framework in the project does not match the .net framework launch condition version .net framework 4 client profile. Update the version of the .net framework launch condition to match the target version of the .net framework in the advanced compile options dialog box.

我将主项目的框架从客户端配置文件(这是我第一次创建它时)更改为 frwk 4,因为我读到水晶报告不适用于 frwk 4 客户端配置文件.(真的吗).

I changed the framework of the main project from client profile (which it was when I first created it) to frwk 4 because I read that crystal reports would not work with frwk 4 client profile. (is that true).

引导版本框架适用于 x64 和 x86.我继续在网上找了一下,发现可以在setup项目的启动条件中更改framework.这些似乎分散在许多地方,这是我不记得其他版本的 .net 有过的问题.无论如何,这解决了这个问题,但还有另一个与此相关的问题.

The bootstrap version Framework is for x64 and x86. I continued to look around the web and found that one can change the framework in the launch conditions of the setup project. These seem to be scattered around in numerous places which is a problem I don't recall ever having with other verions of .net. Anyway, That solved that problem, but there is still another issue associated with this.

我已将主项目和辅助项目的 anycpu 更改为 x86,因为我在为 Crystal 安装两个 msi 时遇到问题.同时,其他二级项目(从 2008 年升级)我更改为 x86,但在配置文件中,它说这些的 anycpu 并且如这里所写,不能更改为 x86.我没有收到错误,但尚未测试安装是否有效.

I have changed anycpu to x86 for the main project and the secondary projects because I was having a problem with installing both msi's for crystal. Meanwhile, the other secondary projects (which were upgraded from 2008) I changed to x86 but in the configuration file, it says anycpu for these and as has been written here, cannot be changed to x86. I am not getting an error but have not yet tested whether the installation works.

我在你的网站上阅读了一个答案,进入 vbproj 并将记事本从 x86 更改为 x64,因为它们无法以这种方式从 anycpu 更改为 x86.但我不想要 x64,所以不知道该怎么做.

I read an answer on your site to go into vbproj and change in notepad from x86 to x64 because they could not change from anycpu to x86 that way. But I don't want x64 so not sure what to do.

似乎 anyCPU 将是一个不错的选择,但是它可以与 Crystal 一起使用吗?如果我更改它,我是否需要附加 x86 msi 以外的其他设备?或者我可以在这种不清楚的情况下保持原样吗.

It seems that anyCPU would be a good selection but will that work with Crystal and do I need to attach other than the x86 msi if I do change it? Or can I leave it as is in this unclear situation.

推荐答案

这个错误是因为不匹配.您可以通过使其中一个匹配另一个来修复它.

This error is because of a mismatch. You can fix it by making either one of them match the other.

一个是启动条件".另一个是先决条件".

One is the "Launch Condition." The other is the "Prerequisite."

要更改启动条件:

  • 在解决方案资源管理器中右键单击您的安装项目
  • 点击查看 - 启动条件
  • 在启动条件下选择.NET Framework"项
  • 在属性窗口中,查看版本项.您可以打开下拉菜单以选择合适的框架版本.

要更改先决条件:

  • 在解决方案资源管理器中右键单击您的安装项目
  • 选择属性,出现属性页对话框
  • 点击先决条件..."按钮
  • 根据需要勾选和取消勾选框架版本

这篇关于.net 框架启动的版本与 .net 框架引导程序项目不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆