简体   繁体   English

如何更改.NET框架引导程序包?

[英]How do I change the .NET framework bootstrapper package?

I have a C# project that I previously had targeting .NET 4.0, and now I want to target .NET 3.5, but I am getting this warning: 我有一个C#项目,我以前曾针对.NET 4.0,现在我想针对.NET 3.5,但我收到此警告:

The version of the .NET Framework launch condition '.NET Framework 3.5' does not match the selected .NET Framework bootstrapper package. .NET Framework启动条件“.NET Framework 3.5”的版本与选定的.NET Framework引导程序包不匹配。 Update the .NET Framework launch condition to match the version of the .NET Framework selected in the Prerequisites Dialog Box. 更新.NET Framework启动条件以匹配在“先决条件”对话框中选择的.NET Framework版本。

But when I look under Publish->Prerequisites, .NET framework 3.5 SP1 is checked. 但是,当我查看Publish-> Prerequisites时,将检查.NET framework 3.5 SP1。

What do I need to do to get rid of this warning? 我需要做些什么来摆脱这个警告? There is no checkbox for .NET framework 3.5 without SP1, can I just not check any box? 没有SP1的.NET framework 3.5没有复选框,我可以不检查任何框吗?

I checked the launch condition, and the .NET framework launch condition version is already 3.5. 我检查了启动条件,.NET框架启动条件版本已经是3.5。

I found that I needed to right click on my Setup and Deployment project, hit properties, go to prerequisites, and uncheck .NET framework 4 and check .NET framework 3.5. 我发现我需要右键单击我的安装和部署项目,点击属性,转到先决条件,取消选中.NET framework 4并检查.NET framework 3.5。

I had done that for all of the projects but for the setup and deployment project. 我已经为所有项目做了这个, 但是对于设置和部署项目。 I didn't realize it had its own prerequisites section. 我没有意识到它有自己的先决条件部分。

It's likely coming from the installer project that you have within the solution. 它可能来自解决方案中的安装程序项目。 I'm guessing you do have one, as it's the only place I've seen Visual Studio talk about launch conditions. 我猜你有一个,因为它是我见过Visual Studio谈论发射条件的唯一地方。

Select it in Solution Explorer , and then at the top click the little icon with binoculars (Launch Condition Editor). 解决方案资源管理器中选择它,然后在顶部用双筒望远镜单击小图标(启动条件编辑器)。

Under Launch Conditions, right click on the .NET Framework and open the properties, and then change the Version to .NET Framework 3.5. 在“启动条件”下,右键单击.NET Framework并打开属性,然后将“版本”更改为“.NET Framework 3.5”。

I just got that error and i fixed it easily by double clicking the error message. 我刚刚收到该错误,我通过双击错误消息轻松修复它。

A window shows up. 出现一个窗口。 Then you can modify the properties of the different elements on the page by right clicking them -->> properties. 然后,您可以通过右键单击它们来修改页面上不同元素的属性 - >>属性。

Just make sure all the items on this page have the desired framework version. 只需确保此页面上的所有项目都具有所需的框架版本。

PS: on VS2010 PS:在VS2010上

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

相关问题 如何使用clickonce / bootstrapper安装.Net Framework 4.7? - How to install .Net Framework 4.7 with clickonce/bootstrapper? 如何确定特定 NuGet 包所需的 .NET Framework? - How do I determine .NET Framework needed for a particular NuGet package? 如何在项目中更改.NET框架版本? - How do I change the .NET framework version on a project? c#,带有wix的MSBuild Bootstrapper,如何下载.net framework 4.5 - c#, MSBuild Bootstrapper with wix, how to download .net framework 4.5 .net Framework 3.0引导程序是否包括.net Framework 2.0? - Does the .net framework 3.0 bootstrapper include the .net framework 2.0? 如何将.Net Framework从版本3.5更改为版本4.0 - How do I change the .Net Framework from version 3.5 to version 4.0 c#, MSBuild 引导程序与 wix,如何下载 Z2D50972FECD376129545507F106?208Z 框架。 - c#, MSBuild Bootstrapper with wix, how to download .net framework 3.5 SP1? 如何使用.NET框架终止进程? - How do I kill a process with the .NET framework? 如何在不使用安装程序的情况下将.NET框架与可执行文件打包在一起? - How can I package the .NET framework with an executable without using an installer? 如何将 .NET 标准库更改为 .NET 框架库? - How can I change a .NET standard library to a .NET framework library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM