Common Controls 64-bit C#

Tom Johnson 1 Reputation point
2021-11-30T13:44:32.233+00:00

I am converting my 32-bit .Net WinForms project to 64-bit. In the app.manifest, I have:

<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture=""
publicKeyToken="6595b64144ccf1df"
language="
"
/>
</dependentAssembly>
</dependency>

and Visual Studio 2019 says it could not find the file when building the project. I've tried changing processorArchitecture="amd64", without any luck. What I find odd, is that I am fairly certain this was working in October when I started, but now that I am back to it, getting this error. I've tried this on Windows 10 and Server 2019 . Any suggestions?

Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2021-12-01T07:15:59.53+00:00

    Hi @Tom Johnson ,
    You can try to delete this dependency or comment it in app.manifest since it may not be supported on the platform you are running on.
    About Common Controls
    Best Regards.
    Jiachen Li

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.