Unity Universal Windows App Development - visual-studio-2017

I am trying to create windows store build using Visual studio 17 with Universal Windows App Development tool.
When I create a build from unity, it creates a visual studio solution but finishes with a lot of errors.
When I try to build the resulting visual studio solution, it fails to generate a build.
I am attaching related settings and build outputs screenshot in sequence that I encounter them.
My unity build settings
Unity console errors on Build complete
Vs error on opening/building VS solution output
Can anybody help with this UWA tool. I am trying this for the first time.

It is because Unity .Net version and UWP .NET are not the same. They have much in common and also some differences.
For instance, you can build and import in VS. Then you have async/await available which are not in Unity.
For your case, here's an excerpt from there : https://msdn.microsoft.com/en-us/library/mt185488.aspx
"This topic displays the types in the System.Security and
System.Security.Principal namespaces that are included in .NET for UWP
apps. Note that .NET for UWP apps does not include all the members of
each type. For information about individual types, see the linked
topics. The documentation for a type indicates which members are
included in .NET for UWP apps."

Related

Visual Studio application deployment and external libraries

I'm currently developing a program that uses two external libraries - OpenSSL and SDL2 - and I'm still a little wet behind the ears when it comes to software development. I'm planning on having my app run on both Windows and Mac and I am wondering about the process behind the installation of external dependencies on another machine.
First of all, when I come to deploy my application in Visual Studio, will Visual Studio export those external dependencies/libraries to the output release folder along with my application? If not, how do I have my application install those dependencies on another machine?
Secondly, is it best to build those libraries within, or adjacent to, my project folders, or can they be anywhere on my computer and I just point Visual Studio to them and Visual Studio does the rest?
Any relevant documentation would be greatly appreciated.
I suggest that you could use two tools: depends.exe/ProcessExplorer and InstallShield.
depends.exe/ProcessExplorer is used to check the dll and lib used. InstallShield is used to deploy .exe.
For example:
In ProcessExplorer, you can see the third-party libraries needed for the program PointCloudUI2.0.exe to run.
Then, you could add the corresponding directories and files in the Application Files, this can add the corresponding dependent DLL.
Also, you could refer to Microsoft Docs for more informantion.

convert Windows Forms Application in C++ to executable file

I am using VS10 C++ and try to convert Windows Forms Application project to executable file: this what I did
select project-> properties -> configuration properties -> C/C++
-> Code Generation -> Runtime library
then I select Multi-threaded Debug(/MTd)
when I built my project I got the following error
A Windows Forms application depends on classes from the .NET Framework Base Class Library. To develop a Windows desktop application in C++ that does NOT depend on .NET, you should use the project template for a Microsoft Foundation Classes (MFC) Application instead. This type of project will compile as a native .exe, instead of a .NET assembly. (By the way, not sure why you would still be using Visual Studio 2010 for C++ development, when the free VS 2015 Community Edition fully supports C++11 and many features of C++14. I do not yet recommend VS 2017 however, since it is still very buggy for C++ development.)
EDIT: In Visual Studio 2017, there is another option (which was not available in VS 2015). If you choose the Windows Desktop Application project template, you will get a project that depends on neither .NET (aka CLR support) nor MFC. I have never tried this approach, but on the surface, it looks very similar to MFC. Again, so far I have found VS 2017 for C++ to be very buggy, so you might have a better experience using MFC in VS 2015 instead.

WinUSB Tutorial from MSDN Microsoft

I've been faced with problem to follow this tutorial of Write a Windows desktop app based on the WinUSB template from MSDN of Microsoft. Following the instructions, in the step where we need to create an WinUSB Application, the website tell us that two projects will be create, but in my application just one project is created.
I'm using Microsoft Visual Studio Community 2015, and I had installed the WDK. Note: I'm using Windows 10 64 bits.
Below is available the part of the tutorial saying that two projects was created:
Below is available a screenshot of my Solution Explorer:
Can you help me to figure out what it's happened and help me to solve this?
Actually, I'm working on a WinUSB project too. And, it seems like Microsoft split the WinUSB application and the driver package into two different projects.
You should be able to see each of the individual projects when you try to create a new project.
Check the picture below.
The WinUSB INF Driver Package project will contain the INF file you need.
WinUSB Projects

Deploy a C program compiled in VS2010

I have a compiled an older C++ program that runs fine in debug mode in VS2010 converted to VC++ 6 but I have no idea how to package or deploy the application.
VS2010 may not have anything to do with deploying the program at all but I thought I should mention it.
The "release" folder not only contains the executable but some "obj", "tlog", "vc100.pdb", "exe.intermediate.manifest" and "lastbuildstate".
This application is being installed on Windows Mobile OS (hopefully). It isn't as simple as copying the executable to the device is it?
Do I need to create a cab file or msi and, if so, how?
I am absolutely new at this being spoiled in C# and MVC for far too long!
Visual Studio 2010 does not have any of the Smart Device compilers (managed or native) required to even build for Windows Mobile (not Windows Phone). You must use Visual Studio 2008 to build, deploy and/or debug.
EDIT
FWIW, Studio 2012 will have support for Smart Devices (Studio 2010 still won't get support) in Q1 of next year. Backward-compatibility has yet to be announced, but it's always possible that you'll be able to develop for WinMo devices using the ARM compiler. There's a video here detailng some of the features.
Have you done a search on google yet? While I don't know anything about deploying to a windows phone, a quick google search found a few hits.
I searched for 'deploy windows phone app' and found a few things. Among which are:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/gg588378(v=vs.92).aspx
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff928362(v=vs.92).aspx
Last of all, it looks like this has been asked before on this website. For instance:
Can you install you own apps on your windows 7 phone

How to create a step by step wizard in C++ (with unmanaged code) in Visual Studio 2010

I would like to build a small wizard in C++ with no dependencies on any framework.
Apparently, is really simple, but I don't know where to start. Can you point me to good information (tutorials, etc) on it. Should I use MFC Application or a Win32 project? Is there any step by step guide ?
I'm using VS 2010. The majority of info I'd found on MFC is really old. It seems like the vast majority of development is going .net.
Look up Property Sheets in MFC http://msdn.microsoft.com/en-us/library/cfs4wk4e%28VS.80%29.aspx