在大型C#项目中创建标准exe程序

编程入门 行业动态 更新时间:2024-10-28 06:34:05
本文介绍了在大型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程序

本文发布于:2023-11-17 06:19:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609130.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标准   程序   项目   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!