Deployed C# application requires Windows 8.1 and Universal CRT SDKs - c#

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!

Related

Is it possible to remotely debug a Mono console app from Visual Studio?

I want to use latest Mono (5.4.1.6) to write a console app in Visual Studio 2015/2017 for a Raspberry Pi 3 (Linux). Searching the web I've found that it is possible to use Visual Studio, but there are limitations.
I can use MonoRemoteDebugger, but I also need to target Mono framework, not .NET framework, because I do not know if they are fully compatible. Adding the Mono target profile works only up to profile 4.0 and I want to use the latest Mono (.NET 4.5).
MDebug looks fine, but it is not free.
Mono Helper also looks fine, but how can I remotely debug the app?
I can use Xamarin Studio 6.3 configured for remote debugging, but I have not tested it and I do not know how well it works. Also, I prefer Visual Studio and it would be great if I avoided installing a different IDE if VS could do the job.
So, is it possible to remotely debug Mono app from Visual Studio? Should I try Visual Studio Code?
If I finished my app, then how can I generate the release build?
I've noticed that the plugins have the option to debug the app, but not for generating the release build.
This is new to me and information found on the web did not help me understand everything I need to do my work. Any help would be appreciated. Thank you!
It seems it is not possible with free software. I can use Visual Studio with MonoRemoteDebugger and if I have doubts about code compatibility, I can build the project in Xamarin which permits targeting Mono.

How can I make SQLite work on Windows 10?

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.

Visual studio 2013 cannot resolve metadata. C# Store app

I installed an sdk to upload my app to the store. After the package creation I went home, only to see this error the next day when I started VS2013 again. note: It worked fine the same day I installed it, problem began after system reboot
error:
Cannot resolve 'Windows.metadata'. Please install the Windows Software Development Kit. You can retarget your project to Windows 8.1. The Windows 8.1 SDK is installed with Visual Studio. See http://go.microsoft.com/fwlink/?LinkID=278967&clcid=0x409 for more information on how to retarget your project
So I reinstalled the development kit and followed the steps on the Microsoft website, but i still can't retarget it (VS doesn't provide me with an option to do so), also, VS tells me my app already is targeted to 8.1.
Anyone has any ideas how to solve this problem?
Most stupid problem ever. Missed the visual update 2013 update. Just updated it and now its fine

How to install the XNA Game Studio 4.0 in Windows 8?

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!!!

Can I use a full version of Visual Studio 2010 to develop Windows 7 Phone Apps instead of the download package

I have Visual Studio 2010 Professional as well as Expression Blend 4 loaded on my development machine already. Everything I read says to develop apps for the Windows 7 Phone, I need to download the vm_web.exe file which includes Visual Studio 2010 for the phone and the emulator as well as a stripped down version of Expression Blend. What I would like to do is not have to install this package and risk some sort of corruption by having both of these on my computer at one time if it will even let me but instead use my own VS2010 and Blend to develop the apps. What that means is I need a plugin of some kind and the emulator. I already checked my VS2010 and the Windows 7 Silverlight templates are not included.
Can I do this or do I have to set up a completely different VM and load this package on it to develop Windows 7 Phone apps?
You can install the WP7 dev tools just fine on a machine with VS2010. The installer will install the WP7 VS Express, and will also register the WP7 tools with VS2010, so you can develop WP7 apps with either of them. The two VS editions will work just fine side-by-side.
Same goes for Blend the two Blend editions will work just fine side-by-side. The only difference with VS is that the WP7 tools are not registered with the standard Blend4, so for WP7 apps you have to use the WP7 Blend. (Note: This is not going to be the final story, as far as I know)
I've done a similar thing (Ultimate + Phone 7). It works without problems. As far as I know, you can install any Express editions side by side, even with the full one.
I have Visual Studio 2010 Professional and Win7, I downloaded full pack (vm_web.exe) and there's no problem to work them simultaneously. ( I was trying to find it without VS, but without result as well)

Categories

Resources