Yo,
So I've been developing a Universal Windows Store app in Visual Studio 2013 on one machine, and wanted to continue developing it on an another machine running Windows 10 Technical Preview.
The problem is that in Visual Studio 2015 Preview there is a new C++ Redistributable package version (2015), and the latest SQLite requires version 2013, so that particular reference is missing. I can build the project, it deploys successfully, but there is an exception saying it can't load sqlite3.dll. I'm assuming this is because of the missing Visual C++ Redistributable Package 2013. I tried downloading it, but the entry is still missing from the Add reference dialog under Extensions, where it is seen on VS 2013.
Any experience of making it work? Any insider info on when SQLite will work for Windows 10?
Cheers
Yesterday I blogged about how to get SQLite working with Windows 10 Universal apps
It's really simple and comes down to using a pre-release version of SQLite Visual Studio extension, and then just using whatever library or ORM you used before.
Note that Windows 10 Universal apps will also be capable of using Entity Framework 7, which can be used with almost any DB provider including SQLite.
EDIT: The Visual Studio extension is not in pre-release as of build 10240.
SQLite for Universal App Platform is now available as pre-release
Sqlite download page
so after searching on the web a little i came across this
Seems that some (not very wise) software install incompatible sqlite3.dll to the windows system folder.
Check your C:\Windows\SysWOW64\ folder for sqlite3.dll and rename it to sqlite3-backup.dll.
If some other software can't start after it, just put sqlite3-backup.dll to the folder where main .exe resides and rename it to sqlite3.dll.
Also check registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\KnownDLLs.
If sqlite3.dll value is present - remove it. This registry key is designed only for system dlls, not for third-party dlls.
Hopefully rhis helps. I was thinking its a windows UAC system which requires you to run app as admin etc.. il keep searching but dp update if this fixes the issue
Add reference Runtime C++ 2013 package for Windows. That worked for me
Referencing a Windows 8.1 SqlLite requires referencing new “Microsoft Visual C++ 2013 Runtime Package for Windows Universal” extension. You can add using Add Reference dialog in a Universal Windows app.
That should fix the runtime exception.
Related
I have a C# application in Visual Studio which consists of a C++ project targeted for Windows SDK Version 8.1. This project also requires the Windows Universal CRT SDK to build. The Visual Studio Installer allows one to install these components individually. So everything runs as expected on this PC. However, when I deploy it to a PC without the SDKs installed, exceptions are thrown when the C++ dll is called. I thought the whole point of deploying a standalone applications is to have everything contained once built, without requiring additional SDKs. Is there a build option I am missing?
It doesn't seem super straight forward to download and install the SDKs individually either. The easiest way is to download Visual Studio and install them similarly to the development PC, which also requires a bare-bones version of Visual Studio. This isn't a huge problem but rather in convenient.
Any insight or help would be greatly appreciated! Thanks!
Yes, i've tried devenv/install, with no help.
So, I don't have the Console C# Project option when creating the project,
as shown here
Currently i have installed windows basic pack - there's my 'about' screen.
I have just reinstalled Windows because i was getting the same exact problem on old system, and because VS2015 had interface bugs and crashed consequently, but it didn`t help(as well as reinstalling both VS 2015 and 2017 numerous times)
Hope that you can guess whats wrong with my PC.
Visual Studio 2017 setup allows you to very fine-grainedly install various "components" separately, or groups of components delivered as "workloads".
You're missing the workload named ".NET desktop development", which contains among others these project templates. So re-run setup and install that workload.
You have a link, Open Visual Studio Installer in a New Project window that will allow you modify your installed components
In the new Visual Studio 2015 RC the XAML designer does not bring up a UI for a C# Windows Universal project but it does for a C++ Windows Universal project. This occurs with both the Professional and Community editions. Has any one experience the same problem and have a workaround/solution?
I have the same issue, when I upgraded the Win10 SDK from 10240 to 10586, set the project properties->Application->Target version to Windows 10(10.0;Build 10240),
the design view shows up again.
If the XAML designer is failing to open, check the "Flag" notifications in the top right corner. You might notice a message that your Windows 10 build needs to be updated.
1:
The target platform can't be newer than the Windows 10 build you're actually running.
To help clarify this a bit -
If you are building a Universal Windows 10 application with Visual Studio 2015 running on Windows 8.1 - something that we have enabled for the first time without requiring your to upgrade your OS, you will not be offered the XAML designer option - we will only allow you to edit XAML using the editor and IntelliSense. Similarly, you will not be allowed to test the application locally or using the Simulator (since it is a Windows 10 application and cannot run on your machine). Everything else should work fine, but for the best experience possible, consider upgrading to Windows 10.
If you are building a Windows 8.1 universal application, it should work just like before.
Windows 10 (fresh install + Developer mode)
VS 2015 Update 1 Ultimate
SDK Build 10586
By default no designer being available even via Shift-F7.
This expands the scope of the original problem, its not a VS edition based issue at all. Its a problem with the SDK support.
AS per Wener Henze
Swtich back to Build 10240.
Fixed. Designer now available.
Werners workaround is confirmed and saved me lots of time. I don't have the rep to thank him, or comment on his post directly.
I installed fresh Windows 10 and Visual Studio Community 2015, and the designer failed to load (for MainPage.xaml etc). I had to:
enable developer mode in system settings (update section) as suggested in info dialog
(re)install Visual C++ redistributable for VS 2015
But I don't know which one exactly resolved the problem... Now the designer loads as expected. (I tried only C# universal app yet)
In case if you have installed fresh Windows 10 Build 10240 and downloaded and installed latest Visual Studio 2015, target version 10240 is not available in Project Properties -> Application -> Target version and designer is not working too.
I have got Target version 10240 selection available after I've installed additionally Windows 10 RTM SDK from following page. As discussed above, designer works fine if Target version 10240 is selected.
As an update to the answer of #Ivan because I just had to do with this issue recently.
In my case I only had the option to change the Min Version from 10586 to 10240 but for the Target version I had no other choice than 10586. So solving this issue was not possible.
The solution was to install SDK Version 1506 (Version 10.0.26624.0) which can be found here https://developer.microsoft.com/de-de/windows/downloads/sdk-archive
After a restart of Visual Studio I was able to switch the Target version as well #Ivan mentioned and the XAML designer finally showed up. Heureka!
Thanks for the hint #Ivan.
you have to have the appropriate sdk installed on your machine, you can get it from the official site of Microsoft https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
before that please remove the old sdk you installed on your pc, so that VS will use the new one.
then it'll work... i fixed mine in this way.
I am stuck with this now, I had windows phone sdk installed on vs 2012 but suddenly, creating a project in it starts to give me object reference not set to an instance error! could not create project.
I uninstalled sdk ,uninstalled vs2012, installed again and now when i try to install phone sdk 8.0 i get this error saying
Microsoft visual studio express 2012 for windows phone cannot find requested object.
Windows phone 8.0 Emulator images Cannot find the requested object.
I am having heads gone moments now! please help..
I have windows 8 pro 64 bit and do have hyper v enabled and checked.
Try to either update or uninstall NuGet. This worked for me: UNINSTALLED NuGet (as updates to it did not work)
same happened to me.
it occurs because of corrupted .iso file.
so either download a new one or install using online installation, i'm afraid but this is the only possible solution.
This question is related, but NOT a duplicate: How to install XNA game studio on Visual Studio 2012?
I read the above mentioned post, and have got xna projects opening, but I now have a problem.
Some of the references to the XNA framework aren't found:
Microsoft.Xna.Framework.Avatar
Microsoft.Xna.Framework.GamerServices
Microsoft.Xna.Framework.Net
Microsoft.Xna.Framework.Storage
Microsoft.Xna.Framework.Video
And all references to Microsoft.Xna.Framework.Content.Pipeline
Without these, I can't compile or run any games that I've made. I can't find the dll that contains these, or where I should put them.
UPDATE: March 3, 2014
Use the download for VS2012 and VS2013 at this link: https://msxna.codeplex.com/releases. I have no idea of the legality on that project (the developers seem to have decompiled XNA), but it did help me ease the pain of needing VS2010 in order to utilize the content pipeline.
Old Answer
See: How to work around a possible XNA Game Studio or Windows Phone SDK install failure on Windows 8
How to work around this issue
If you run into this issue, here are steps that you can use to work around it:
Download and install the latest version of the Games for Windows – LIVE Redistributable from http://www.xbox.com/en-US/LIVE/PC/DownloadClient
If you are installing the Windows Phone SDK 7.1, re-run setup and choose to repair it. This will re-run the previously failing XNA Game Studio installers and they should install correctly this time.
If you are install a standalone XNA Game Studio product, re-run setup and it should install correctly this time.
If you are planning to do Windows Phone development, you should also install the Windows Phone SDK 7.1.1 Update after installing the Windows Phone SDK 7.1. This update fixes an issue that prevents the emulator in the Windows Phone SDK 7.1 from working correctly on Windows 8.
What to do if the workaround doesn’t help
If you have tried the above steps and setup still fails, you are running into a different issue than the one described above, and you will have to look at the setup log files to determine the root cause.
If you are installing the Windows Phone SDK 7.1, you can use the log collection tool to gather your setup log files. This log collection tool will create a file named %temp%\vslogs.cab.
If you are installing XNA Game Studio, you can find log files at the following locations:
XNA Game Studio 4.0 Refresh - %temp%\XNA Game Studio 4.0 Setup\Logs
XNA Game Studio 4.0 - %temp%\XNA Game Studio 4.0 Setup\Logs
XNA Game Studio 3.1 - %temp%\XNA Game Studio 3.1 Setup\Logs
XNA Game Studio 3.0 - %temp%\XNA Game Studio 3.0 Setup\Logs
XNA Game Studio 2.0 - %ProgramFiles%\Microsoft XNA\XNA Game Studio\v2.0\Setup\Logs
What is causing this failure behind the scenes
XNA Game Studio installs a version of the Games for Windows – LIVE
Redistributable behind the scenes. Some older versions of the Games
for Windows – LIVE Redistributable attempt to install and use a file
that is being installed by Windows 8, and the older versions of the
redistributable are not compatible with the newer version of the file
that is installed by Windows 8. Newer versions of the Games for
Windows – LIVE Redistributable are compatible with Windows 8, and if
you pre-install the new redistributable before installing XNA Game
Studio, setup will recognize that it is already there and use the new
version instead of trying to install the old version.
The installer for XNA Game Studio 4.0 has some issues on Windows 8. The installation process fails and removes all installation files. The fact is that the main installer extracts the following installers (at c:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\Setup):
XLiveRedist.msi
xnags_documentation.msi
xnags_platform_tools.msi
xnags_shared.msi
xnags_visualstudio.msi
xnaliveproxy.msi
The conflict is with the first one. So if you manually install all others, XNA should work fine. The problem is that after the installation failure this files are automatically deleted. My solution is to halt the installation process (using the task manager) in the moment when an error was detected, this way the installer don't have time to erase the installation files.
Once you have the files you can install it without repeating the procees.
It worked for me!!!