VS2008 制作.net framework 2.0程序 安装部署的问题
最近做了一个小东西,用的是.net framework 2.0 ,我的开发工具是VS2008(VS2008可以制作.net 2.0 的程序 这个大家应该知道吧) 因为东西不大,考虑到.net 3.5 200多M实在是太大不方便,所以改成.net 2.0 只有20多M 还是可以接受的(一个程序还不到1M,却要要带一个20
最近做了一个小东西,用的是.net framework 2.0 ,我的开发工具是VS2008(VS2008可以制作.net 2.0 的程序 这个大家应该知道吧)因为东西不大,考虑到.net 3.5 200多M实在是太大不方便,所以改成.net 2.0 只有20多M 还是可以接受的(一个程序还不到1M,却要要带一个200M的.net 3.5 实在是有点夸张)
在制作安装包的时候遇到了一个问题,相信很多人也遇到过这个问题,网上搜了一下,没解决,然后到CSDN论坛上问,也没搞定,最后还是只能靠自己啦,终于被我找到了,这个地方实在是有点隐蔽啊!
就是项目已经是.net 2.0 的啦,打包部署的时候,系统必备也是选择的.net 2.0 ,但是安装的时候却提示需要.net 3.5?
废话不多说啦,直奔主题:
因为在建项目的时候是可以选择 .net framework2.0 如图:
如果没有在这里选择没有选择.net 2.0,而是选择的.net 3.5,但是你需要改成2.0 怎么办:
选择项目(类库不是解决方案) --- 右键 --- 属性 --- 应用程序(项) --- 目标 Framework --- 选择.net framework2.0,每个项目都要这样做,并且去掉cs文件里面的 using System.Linq
在制作安装包的时候,[系统必备]里面选择的就是.net framework 2.0(x86) 如图:
但是拿去安装的时候确提示需要.net framework 3.5 如图:
问题来啦.............找了半天终于找到地方啦!
双击依赖项中的 Microsoft .Net Framework 看图:
您会看到一个启动条件,选择.net framework --- 右键 --- 属性窗口
属性栏里会看到一个Version 项,默认是:3.5 .30729 , 您只要选择2.0.50727 即可
OK ,这样就完成,重新生成一下,然后在把安装包拿到用户机器上,就不在会提示需要.net 3.5 啦
需要运行程序,请到微软官方站上下载 .net framework 2.0 sp2
http://blog.csdn.net/wxm3630478/article/details/5823167,在此感谢作者。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



.NET Framework 4 is required by developers and end users to run the latest versions of applications on Windows. However, while downloading and installing .NET Framework 4, many users complained that the installer stopped midway, displaying the following error message - " .NET Framework 4 has not been installed because Download failed with error code 0x800c0006 ". If you are also experiencing it while installing .NETFramework4 on your device then you are at the right place

Whenever your Windows 11 or Windows 10 PC has an upgrade or update issue, you will usually see an error code indicating the actual reason behind the failure. However, sometimes confusion can arise when an upgrade or update fails without an error code being displayed. With handy error codes, you know exactly where the problem is so you can try to fix it. But since no error code appears, it becomes challenging to identify the issue and resolve it. This will take up a lot of your time to simply find out the reason behind the error. In this case, you can try using a dedicated tool called SetupDiag provided by Microsoft that helps you easily identify the real reason behind the error.
![SCNotification has stopped working [5 steps to fix it]](https://img.php.cn/upload/article/000/887/227/168433050522031.png?x-oss-process=image/resize,m_fill,h_207,w_330)
As a Windows user, you are likely to encounter SCNotification has stopped working error every time you start your computer. SCNotification.exe is a Microsoft system notification file that crashes every time you start your PC due to permission errors and network failures. This error is also known by its problematic event name. So you might not see this as SCNotification having stopped working, but as bug clr20r3. In this article, we will explore all the steps you need to take to fix SCNotification has stopped working so that it doesn’t bother you again. What is SCNotification.e

1. Start PPT, create a new blank document, select all text boxes and delete them. 2. Execute the Insert-Shape command, drag a rectangle in the document, and fill the shape with black. 3. Drag the rectangle to elongate it, execute the Insert-Shape command, drag out the small square, and set the fill color to white. 4. Copy and paste the small squares one by one so that the top and bottom are evenly distributed on both sides of the film. After selecting them all with ctrl+a, right-click and select Group. 5. Execute the Insert-Picture command, find the picture to be inserted in the pop-up dialog box, click to open, and adjust the size and position of the picture. 6. Repeat step 5 to insert and set the remaining pictures in order to form a film picture. 7. Select the film, execute animation-add animation command

How to make the cover of Tomato novel? You can make exclusive novel cover in Tomato novel, but most friends don’t know how to make the cover of Tomato novel. Next is the picture of how to make the cover of Tomato novel brought by the editor to the players. Tutorial, interested players come and take a look! Tomato Novel usage tutorial How to make a Tomato Novel cover 1. First open the Tomato Novel APP, enter the work management page to create a new book, and select the [Cover Template] as shown by the arrow below; 2. Then enter the cover template page and select your favorite cover Template; 3. After finally selecting the cover, click [Confirm] in the upper right corner.

The development of artificial intelligence (AI) technologies is in full swing today, and they have shown great potential and influence in various fields. Today Dayao will share with you 4 .NET open source AI model LLM related project frameworks, hoping to provide you with some reference. https://github.com/YSGStudyHards/DotNetGuide/blob/main/docs/DotNet/DotNetProjectPicks.mdSemanticKernelSemanticKernel is an open source software development kit (SDK) designed to integrate large language models (LLM) such as OpenAI, Azure

Mobile Excel table creation tutorial With the popularity of mobile devices and the continuous advancement of technology, mobile phones have become one of the indispensable tools in our daily life and work. Using Excel spreadsheets on your mobile phone can easily record, calculate and analyze data and improve work efficiency. This article will share with you the basic operations and techniques for creating mobile Excel tables. 1. Choose the right application. There are many mobile Excel applications on the market to choose from, such as GoogleSheets, Micro

Whether you are a beginner or an experienced professional, mastering C# will pave the way for your career.
