如何使用dotnet-cli/vscode将清单文件添加到c#?
我正在尝试将清单文件添加到我的C#项目中,但是我发现的所有答案/解决方案都应该右键单击Visual Studio中的C#项目。我使用Visual Studio代码,因此我无法真正这样做。有人有解决方案吗?
我需要清单文件来索取运行时的管理权。我找到了很多答案,我唯一的问题是我无法添加清单文件。
I'm trying to add a manifest file to my C# project, but all the answers/solutions I find say that I should right click on the C# project in Visual Studio. I use Visual Studio Code so I can't really do that. does anyone have a solution?
I need the manifest file to ask for admin rights on runtime. I found a lot of answers to that, my only problem is that I can't add a manifest file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题-hth;):
在您的
.csproj
文件的同一目录上单击“新文件...”将您的文件命名为:
app.manifest
在下面复制代码(默认app.manifest content)中的文件:
现在您可以编辑它;如默认文件中所述,您可以使用三个级别来
requesteDexecutionLevel
标签EG:保存后,您应该通过将下面的标签添加到
.csproj 在第一个
propertyGroup
标签下的任何位置的文件:I had a same issue -HTH ;):
At the same directory of your
.csproj
file click on "New File..."Name your file to:
app.manifest
Copy below code (The default app.manifest content) in it:
Now you can edit it; As commented in the default file you can use three levels for
requestedExecutionLevel
tag e.g.:After saving that, you should add it to your project by adding below tag to your
.csproj
file anywhere under firstPropertyGroup
tag: