I use the method Auth.SetUserCredentials(...);
When i try to authenticate in a test console app and publish a tweet everything is fine. When i do the same in a uwp app i get this error when trying to authenticate:
System.TypeInitializationException: The type initializer for 'Tweetinvi.Auth' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Tweetinvi.Core.TweetinviCoreModule.Initialize() at Tweetinvi.Injectinvi.AutofacContainer.InitializeModules()
If you want to see my code: https://github.com/matdestr/TwitterShared.git
I was having the same issue. I found a post that said to use the command Install-Package tweetinviapi -version 0.9.10.2-w10-uap -pre
This stopped the error happening and now the app appears as though it should have posted, no error, but nothing is posted to Twitter.