ReSharper warnings with MVVM

You can use External Annotations to indicate to ReSharper the method is used and thus not to warn you. See the ReSharper docs on that here. You need to decorate any such methods with [UsedImplicitlyAttribute]. Before using the attribute, you see: and then, after applying the attribute: [UsedImplicitly(ImplicitUseTargetFlags.WithMembers)] class NotUsed { public int Field1 { … Read more

CS1607: The version specified for the ‘file version’ is not in the normal ‘major.minor.build.revision’ format in .NET

You’re assuming that the problem is with this line: [assembly: AssemblyVersion(“3.0.*”)] when it is actually with this one: [assembly: AssemblyFileVersion(“3.0.*”)] Like the accepted answer to the question that you say is not a duplicate of this one says: For the AssemblyFileVersionAttribute you cannot use the * special character so you have to provide a full … Read more

Gradle deprecated annotation processor warnings for lombok

Change the lombok dependency type from compile to annotationProcessor, so your dependencies section in your build.gradle file should look like: dependencies { compileOnly(‘org.projectlombok:lombok:1.16.20’) annotationProcessor ‘org.projectlombok:lombok:1.16.20’ // compile ‘org.projectlombok:lombok:1.16.20’ <– this no longer works! // other dependencies… }

Disabling a specific warning in a specific line in Xcode

For CLANG, this works: #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wdeprecated-declarations” // Here I like to leave a comment to my future self to explain why I need this deprecated call NSString *myUDID = [[UIDevice currentDevice] uniqueIdentifier]; #pragma clang diagnostic pop You can use it inside a method, which allows you to be … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)