如何在安装项目中包含.NET Framework [英] How to include .NET Framework in setup project
问题描述
大家好,
我正在尝试建立安装项目,以分发使用C#和.NET Framework 4构建的程序.
我知道,除非在目标计算机上安装了.net框架,否则该程序将永远无法运行.但是,我尝试将.net框架包括在安装项目中,但是它不起作用.
现在我对夹心文件感到困惑,我应该将其包括在安装项目中吗?这是文件列表:
1-Microsoft .NET Framework 4(x86和x64)
2-Microsoft .NET Framework 4客户端配置文件(x86和x64)
3-Microsoft .NET Framework 2.0版可再发行组件包(x86)
4-Microsoft .NET Framework 2.0软件开发工具包(SDK)(x86)
请注意,在.NET Framework 4中开发的程序
Hello All,
I''m trying to build setup project to distribute program built using C# with .NET Framework 4.
I know that the program will never work until the .net framework has been installed on the target machine. however, I tried to include the .net framework to the setup project but it doesn''t work.
Now I''m confused about wich file should I include it to the setup project and this is the list of files:
1 - Microsoft .NET Framework 4 (x86 and x64)
2 - Microsoft .NET Framework 4 Client Profile (x86 and x64)
3 - Microsoft .NET Framework Version 2.0 Redistributable Package (x86)
4 - Microsoft .NET Framework 2.0 Software Development Kit (SDK) (x86)
Note that the program developed in .NET Framework 4
thanks.
推荐答案
AFAIK,只需1就足够了.
AFAIK, just 1 should be enough.
这篇关于如何在安装项目中包含.NET Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!