如何运行C#埃克没有.Net框架 [英] How to Run C# Exe without .Net Framework

查看:205
本文介绍了如何运行C#埃克没有.Net框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用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。 (最容易的。我用这个来部署我的。)

  •   

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.)

这篇关于如何运行C#埃克没有.Net框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆