简体   繁体   English

如何为ClickOnce应用程序添加应用程序清单

[英]How to add application manifest for ClickOnce applications

I have a Winforms application (C# - .NET 4.5.2) integrated with CefSharp.WinForms nuget package. 我有一个与CefSharp.WinForms nuget软件包集成的Winforms应用程序(C#-.NET 4.5.2)。 It is deployed using ClickOnce. 使用ClickOnce部署它。

It works well, but I have an issue with tooltips. 它运作良好,但工具提示出现问题。 The issue is exactly this: https://github.com/cefsharp/CefSharp/issues/1328 问题恰好是这样: https : //github.com/cefsharp/CefSharp/issues/1328

The proposed solution is to ad an application.manifest file, and I did it. 建议的解决方案是添加一个application.manifest文件,而我做到了。

Unfortunately I get this build error now: 不幸的是,我现在得到这个构建错误:

16>C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\Microsoft.Common.CurrentVersion.targets(3797,5): error MSB3113: Could not find file 'Microsoft.Windows.Common-Controls, Version=6.0.0.0, Culture= , PublicKeyToken=6595b64144ccf1df, ProcessorArchitecture= , Type=win32'. 16> C:\\ Program Files(x86)\\ Microsoft Visual Studio \\ 2017 \\ Community \\ MSBuild \\ 15.0 \\ Bin \\ Microsoft.Common.CurrentVersion.targets(3797,5):错误MSB3113:找不到文件'Microsoft.Windows。通用控件,版本= 6.0.0.0,文化= ,PublicKeyToken = 6595b64144ccf1df,ProcessorArchitecture = ,Type = win32'。

How can I fix this error? 如何解决此错误?

Posting the answer for future reference: 发布答案以供将来参考:

When providing a custom application manifest, you have to disable ClickOnce security from 提供自定义应用程序清单时,您必须从以下位置禁用ClickOnce安全性:

Project Properties -> Security Tab -> "Enable ClickOnce security settings" checkbox 项目属性->安全选项卡->“启用ClickOnce安全设置”复选框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM