I recently updated my machine from Windows 8 to Windows 10. Since then, I get a NullReferenceException in SharpDX.Toolkit.Game.dll when I call
this.game.Run(context)
Where game inherits from SharpDX.Toolkit.Game and context is a SharpDX.Toolkit.GameContext with a ContextType of DesktopWpf.
On the SharpDX Homepage I could not find any information about migrating projects to Windows 10.
Before upgrading, everything worked fine. Do I need to tweak any special setting? Or do I need to upgrade to SharpDX 3.0.0, which is still alpha?
Edit: The exception is not raised in my code, but in the code of SharpDX - just to make it clear.
I just found the solution:
After upgrading Windows from 8.1 to 10, you need to upgrade your Windows SDK as well by installing the Windows 10 SDK.
The Windows 10 SDK can be downloaded here.
Related
I have a Universal app built for Windows 8.1 using Visual studio 2015. (This was done before UWP, there are 2 separate projects for phones and others. But we are not actually using the phone version anymore)
The client wants to add OAuth 2.0 authentication with Windows Azure DS to this app. https://learn.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
I am bit worried, since this app is some what old, will there be any issues doing that? Will it be supported?
If supported will the code be the same as for doing this for a UWP app done using VS 2017 or 2019 or will there be changes.
Because we need to do the same for another UWP app built with VS2017 as well. So do you think we will be able to use the same code in both apps or will there be differences due to version differences?
Any guidance on this is really appreciated.
Thank you.
i have one project that runs on windows 7 machines
Well windows 7 embeded, but that still uses win7 SDK.
Its a combination of windows C# and C++
Under vs2017 i no longer have the option to build to the windows 7 target platform (C++ and c#), the lowest i have is windows 8.1
Trying to install 7 sdk results in all kind of chickken egg problems
Took me 2 days install vs2017 with a working c++ crt, so i hope there is a way to re-add win 7 sdk for vs2017.
Or maybe I wonder is there an option to build 8.1 but not use too advanced futures, as 8.1 and 7 besides the glitter graphics was not such a huge change (ea most win 7 apps run fine on 8.1, and i never saw serious programs who worked only on 8.1) Maybe even 8.1 SDK has some backward compatibility build in?
I've got a small app that was built and shipped for Windows Phone 8.0. I need to publish a small update and I'm encountering all sorts of IDE bugs & missing classes/types when upgrading to VS2015/WP8.1 platform.
So, I'd like simply to keep the app at WP 8.0 but:
Question 1: Will this app run on WP 8.1 and Windows 10 phones?
Question 2: Will Microsoft's app store let me publish this update despite target platform being 8.0?
Firstly, Microsoft provides awesome backward compatibility when it comes to running your old OS apps on new devices. As per your question,
Yes, all your apps that were built to target windowsphone 8.0 OS will run successfully with no issues on all latest windows supported MOBILE devices.
I have tested my old Windowsphone 8.0 OS apps on latest windows 10 preview without any issues.
You can easily support your app with new updates based on windowsphone 8.0 OS. You will have no problem submitting your ( .xap ) packages on the new Windows 10 dashboard.
A large portion of windowsphone mobile devices ,the old lumias still don't have windows 10 yet so there is still a market for your apps. You don't have to consider your apps dead just because you belong to an older OS version.
You're encountering these missing types because Windows Phone 8.0 apps are written in Silverlight and Windows Phone 8.1 (on VS 2015) and Windows 10 are Windows Runtime apps. This is a different API, so some types are moved to other namespaces (most likely for small apps) or completely missing.
Your app should still run on WP 8.1/10 devices, although they might not scale perfectly to the newest screen ratios and will miss access to the newest features of these platforms.
For extra help on getting your app packaged and published, check this reply on another SO question.
Im having serious problems with screen rotation in Windows Phone. The project Im currently working started in the WP 8.0 version. After the 8.1 release, I updated my VS 2013 to the 2nd update and I migrate my project to 8.1. My problems is that, when I try to use the command: “DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape”, inside a click button event, the app running on my device (nokia lumia 920 with 8.1) does absolutely nothing.
I also tried to change the Supported Orientation Option in Package.appxmanifest but such option is not presented there! !
The weirdest thing is that everything works just fine (both code, and the appearance of the “Supported Orientation” option in the Package.appxmanifest) when I create from scratch a new project WP 8.1 project in visual Studio. I also noticed some other differences like the lack of wmappmanifest.xml on this scratch project.
Image comparing both projects
If you guys want to check the issue, download the google ad sample for WP, upgrade it to 8.1 and add the rotation code above. It will do nothing. If you create a new empty 8.1 project and do the same thing, everything works fine.
https://developers.google.com/mobile-ads-sdk/download#downloadwp
My question is, what the hell is going on with project migration? Is there anything I`m missing, so that the old project is no totally upgraded yet?
DisplayInformation.AutoRotationPreferences is for WP8.1 RT (RunTime) apps only. When your upgrade your existing WP8 app to WP8.1 it is still a WP silverlight app. Thats what the problem is. When you create a WP8.1 from scratch you are creating a WP8.1 RT app. So the code works.
Take a look at the MSDN reference on the bottom is states that the API is only for Win8.1 RT Apps
I've made c# application in VS 2010 and Windows 7 OS and used .Net 2.0 but when I tried to run it under Windows xp service pack 3 it won't start. There is no error, nothing is happening. Windows xp has .Net 3.5 installed. Does anyone have any idea what could be the problem?
Check if you have some icon in project larger then 32x32. Just solved my problem deleting icon.