在大型C#项目中创建标准exe程序 [英] Creating a standard exe programe in big c# project

查看:95
本文介绍了在大型C#项目中创建标准exe程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我在c#frondend中创建了一个大项目并访问后端.这是我的第一个项目.我想将其转换为带有密码保护的标准exe程序.如何包括桌面图标,横幅,自述文件,条款和条件卸载等....请详细帮助我

MadhukumarViswanath

Dear all,
I make a big project in c# frondend and access backend.This is my first project. I wand to convert it to a standard exe programe with password protected. How to include desktop icon, banner, readme file, terms and conditions uninstal and so on.... Please help me in details

MadhukumarViswanath

推荐答案

使用Windows域用户ID和密码轻松嵌入您的应用程序. .NET框架提供WindowsPrincipal类来处理它.

Itz easy to embed your application with Windows domain user ID and password. .NET framework provides WindowsPrincipal class to handle it.

using System.Security.Principal;
{
  WindowsPrincipal myPrincipal = (WindowsPrincipal)Thread.CurrentPrincipal;
  if myPrincipal.IsInRole("BUILTIN\\" + "Users"))
  {...}
}


这篇关于在大型C#项目中创建标准exe程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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