Visual studio metadata file could not be opened




















Asked 7 years, 2 months ago. Active 6 years, 9 months ago. Viewed 4k times. OS: Windows 8. I have tried to clean and rebuild the application. Have you tried installing. NET 4. It is Windows 8. I figured. This must be a typo then. Add a comment.

Active Oldest Votes. I have no idea if my solution will work for you, but here is what someone told me to do: Delete the files from the bin folder so they can be rebuilt with the next publication. I have no idea why it worked, but I was able to use the solution after that.

Unfortunately, I can't provide any additional insights or directions beyond this. Sign up or log in Sign up using Google. Sign up using Facebook. I tried all the steps above with various permutations and combinations with restarting VS few times. But, it did not help me. Try all solutions as mentioned in section 1 above and any other solutions for getting rid of the error. If nothing works out, as per the blog mentioned in section 2 above, delete the entries of all source files which are no longer present in the source control and the file system from your.

The suggested answer did not work for me. The error is a decoy for another problem. Found out that I was targeting a slightly different version of.

NET and this was flagged as a warning by the compiler but was causing building to fail. This should have been flagged as an error and not warning. Net version higher that my project target. Net version. So the solution was to change target framerork of my project. I also met this problem. Firstly you have to manually build you DLL project, by right-click, Build. Then it will work.

Well nothing above worked for me, so it got me thinking about why am I clicking and hoping when as developers we should really try to understand what is going on here. A quick search of the. I had a section called that seemed to be hanging onto the old incorrect filepath. So a simple fix really: 1 backup your. I was pulling my hair out with this problem also, but after trying the above the only thing that worked for me was to open each project in my solution 1 by 1 and build them individually.

I had to open them alone in their own solutions. The reason? The project I brought in was targeting a different. Net framework 4. My instance of the problem was caused by a common project that had a duplicate class name in it under a different filename. Strange that VS could not detect that and instead just blew up the build process. The Solution had the correct path to the Project, but Visual Studio somehow kept looking in the old location.

Solution: Rename each problem Project — just add a character or whatever — then rename it back to its original name. This must reset some global cache of some kind in Visual Studio, because this clears both this issue up and several like it, while things like Clean do not.

I was getting this problem in VS in a solution that has many projects. What fixed it for me was to rebuild each project in the solution manually in the same order as the Project Build Order right-click and rebuild in Solution Explorer. Eventually I got to one that gave me a compile error. I fixed the error, and the solution would build correctly after that. Coming back to this a few years later. This problem is more than likely related to the Windows max path limit:.

Once I deleted the reference to the now-missing file and recompiled — all was well. Running VS It appears that the build dependencies were incorrect. Initial Consultation. Yesterday, I concentrated on those other 4 errors. Tried everything, but could not get rid of those. If this happened suddenly, it could also mean a change in antivirus policy symantec. I updated the symantec policy and then tried it.

It should take a while to update it. Also tried building without network cable attached. Finally it succeeded to build the project. Your email address will not be published.

Save my name, email, and website in this browser for the next time I comment. This site uses Akismet to reduce spam.



0コメント

  • 1000 / 1000