如何运行C#埃克没有.Net框架框架、埃克、Net

2023-09-04 00:34:25 作者:韶华倾负

我在使用Visual Studio 2010。 我做了一个C#项目,它运行完全在我的电脑上。

问题是这样的,当应用程序运行另一台计算机上,这要求.NET框架。 每个人都没有管理员权限才能安装.NET Framework和人民也不想安装。

我应该遵循什么样的替代弄清楚这个问题? (专为Windows 7)。

解决方案

的Windows默认包含一个版本的.NET。这里是他们的列表。

  

XP

         .NET 1.0 - 服务包1    .NET 2.0 - 服务包2及3         

Vista的

         .NET 3.0 - 所有的服务包         

Windows 7的

         .NET v3.5版本 - 所有版本和Service Pack         

Windows 8的

         .NET V4.0 + 的Metro UI 可用。         

的Windows 8.1

         的.Net V4.5 + 的Metro UI 可用。         

的Windows 10

         的.Net V4.6 + 的Metro UI + 通用的应用可用。         

注:

     

所有包含 .NET V4.6 如果 Windows更新已启用。 (不适用于所有版本的Windows)

部署

选项:

  

有部署的几个选项。

        

检查.NET安装。 (安装像NSIS系统都支持这一点)。   请参见这个获取更多的信息。

  

如果您要部署移动应用程序,通知用户安装所需的.NET版本。 (容易)

  

目标.NET 2.0,所有用户都能够运行你的应用程序,因为我觉得没有人使用XP SP1。 (最容易的。我用这个来部署我的。)

   .NET框架

I am using Visual Studio 2010. I made a C# project and it runs perfectly on my Computer.

Problem is this that when Application is run on another Computer, that ask for .Net Framework. Everybody doesn't have administrator Access to install .Net Framework and also peoples don't want to install that.

What alternative i should follow to sort out this problem? (Specifically for Windows 7).

解决方案

Windows contains a version of .NET by default. Here's a listing of them.

XP

.NET v1.0 -- Service pack 1 .NET v2.0 -- Service packs 2 & 3

Vista

.NET v3.0 -- All service packs

Windows 7

.NET v3.5 -- All versions and service packs

Windows 8

.NET v4.0 + Metro UI available.

Windows 8.1

.Net v4.5 + Metro UI available.

Windows 10

.Net v4.6 + Metro UI + Universal Apps available.

Note:

All contains .NET v4.6 if Windows Update is enabled. (Not for all versions of windows)

Options of deployment:

There are several options of deployment.

Checking for .NET in installation. (Install systems like NSIS support this). See this for more info.

If you want to deploy portable app, notify users to install the required .NET version. (easier)

Target .NET 2.0 and all users are able to run your app since I think nobody is using XP SP1. (easiest. I use this to deploy mine.)