Build Fail Cannot Merge Into Read Only WinMD

Rebeka Fox 106 Reputation points
2023-08-07T05:40:26.5233333+00:00

Hello. I am unable to build my executable. The MIDL compiler compiles my idl files and generates the winmd's in the unmerged folder, but then the compiler starts throwing a read only error cannot write into merged file. This isn't the first time I've seen this, but it's been over a year since I have and I don't remember how I fixed it, if I did at all. I may have renamed my executable. I'd rather not have to rename my executable. I've used icalcs. I've renamed the solution, logged in/out. It does build if I switch to Release from Debug. I have gone through the project file top to bottom. I've released it from GitHub Desktop. I uninstalled and reinstalled Visual Studio. I recreated the project with the same name. The executable absolutely refuses to build if it requires idl. All of my dll's are building fine, just the executable. I moved about 50 pages from the executable into a dll and that's when it broke.

Rebeka Fox

uselessUser's image

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,225 questions
{count} votes

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.