The ClickOnce manifests cannot be signed because they contain one or more references that are not hashed

Dave 96 Reputation points
2022-02-01T16:57:45.777+00:00

I need to crate an ClickOnce install. When I try to do this I receive the error,

"The ClickOnce manifests cannot be signed because they contain one or more references that are not hashed"

I'm assuming it's a plugin .dll that I need in this solution. How can I verify this, and if this is the problem how do I create an install for the app?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,239 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jack J Jun 24,286 Reputation points Microsoft Vendor
    2022-02-02T07:56:54.517+00:00

    anonymous user-9454, based on my research, you could try the following steps to solve the problem.

    1.Go to the Publish page of the Project Designer.

    2.Click Application Files.

    3.Set the Hash value to Include for all files that are to be published.

    You could also refer to the following link.

    MSBuild Error MSB3128

    Example to change it:

    170407-image.png


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.