3

Full error.

 error MC1000: Unknown build error, 'Method 'get_Command' in type 'System.Windows.Controls.Primitives.RepeatButton' from assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. Line 6 Position 14.' 

I am attempting to upgrade a vb.net project from .Net 4.0 to .Net 4.7.1 The above error is being thrown in all the xaml files in the project with different controls e.g RepeatButton, MenuItem. There are no error lines showing when i open the file.

I have also upgraded another branch with that points at the same PresentationFramework.dll from .Net4.7.1 which built fine.

  • Save your project, Clear Solution and Rebuild Solution. If problem still exists close VS and open again – Nawed Nabi Zada Apr 11 '18 at 08:21
  • RepeatButton.Command returns an ICommand. It is one of the notorious types that got moved from one assembly to another in .NET45. You are surely building with the wrong reference assemblies, the kind of problem described in [this post](https://stackoverflow.com/a/22353220/17034). – Hans Passant Apr 11 '18 at 08:27
  • @NawedNabiZada, unfortunately that did not work – user9199295 Apr 11 '18 at 08:31
  • @HansPassant how would i go about making sure the project is looking at right 4.7.1 assemblies even when the dll path is correct and not 4.0 – user9199295 Apr 11 '18 at 08:52
  • "even when the dll path is correct". You have good evidence that it is not correct. We can't tell how you verified this, nor is it something that is easy to get wrong. Consider repairing it by opening the project in VS, removing all references from the References node and adding them back. Beware of wonky custom build systems, "MC1000" is pretty wonky, if you use one then be sure to reformat its disk. – Hans Passant Apr 11 '18 at 08:56
  • @HansPassant before when i removed and added the presentationframework.dll it still didnt work. This time i went through and removed all .net dlls and added them again. It solved the issue. If you want to post as an actual answer il accept it – user9199295 Apr 11 '18 at 09:42
  • you are allways on old version ; from assembly 'PresentationFramework, Version=4.0.0.0 – GCamel Apr 11 '18 at 10:09
  • @GCamel no, file version is not the .net version. It is still version 4.0.0.0 and working – user9199295 Apr 11 '18 at 11:43
  • do you have an app.config file with the supportedRuntime ? – GCamel Apr 11 '18 at 12:10
  • Did you managed to resolve this issue? I am having the same problem.. – danicode Jan 16 '19 at 10:04
  • @DaniCode yes. I went removed all .net dlls from project and cleaned then added them again – user9199295 Jan 16 '19 at 10:33
  • It was an empty windows, I've deleted it :) I saw that if I add a new one, it is different because of the different .Net Framework. – danicode Jan 16 '19 at 14:19

0 Answers0