我正在尝试猜测如何在JetBrains Rider中要求我的应用程序具有管理员权限。在Visual Studio中,有一个添加"App.manifest"文件的选项,您可以设置属性<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />,应用程序将需要管理员权限。我找不到在JetBrains Rider中执行此操作的方法。如何使用JetBrains Rider请求管理员权限?我正在使用C#语言开发.NetFramework应用程序。这是我的项目结构: 提前感谢。
我不认为在Rider上有可视化的方法来完成这个任务,但是你可以通过在.csproj文件中添加ApplicationManifest标签来手动完成。 <PropertyGroup> <ApplicationManifest>path/to/app/manifest/app.manifest</ApplicationManifest> </PropertyGroup> 然后,创建您的 app.manifest 文件并按照您的要求进行配置!(app.manifest 通常位于您的应用程序属性文件夹中)
AssemblyInfo.cs
中的某些信息。 - ProtectedVoid