[英]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.