I've installed Visual Studio 2013 Premium and the WDK 8.1 Update, unfortunately though, when I open the Printer Extension Sample ([https://code.msdn.microsoft.com/windowshardware/Printer-extension-sample-0e3e1562][1]) from the WDK samples pack, the reference to PrinterExtensionLib is broken.
I'm sure there must be a prerequisite I'm missing somewhere, but I've got the latest .Net, latest updates to Visual Studio and the latest WDK 8.1, so I'm not sure what I'm missing.
I've placed the sample project in c:\apps as the sample tells you to do, but still not joy.
Does any body know what I'm missing / haven't installed?
Well, I've just spun up a Windows 8 VM and the reference seems to be satisfied, so I guess you can only build some of these samples on a Windows 8 Machine. The sample states that it should be run on Windows 8, but I didn't see build machine requirements.
So, I guess the answer is, I was missing Windows 8 (Yuk).
Related
For the first time I am trying Visual Studio for Mac and I located a tutorial for writing a exe that shows a window with a simple menu.
My two questions are:
How does a user of a Mac get the Mono platform? I can't find instructions for deploying Mono. When I look in my exe folder there is no other files. Just the exe.
Maybe this should be a different question but I could not find any "WinForms" version in Visual Studio for mac. I had to use Gtk2 (I think).
If there is a better place to ask these questions please direct me. Thanks.
I know understand that the best course of action was:
Create a Xamarin.Forms multi-platform project.
Create a Cocoa Mac OS project.
Add a reference to project 1 into project 2.
Using Nuget Package Manager download Xamarin.Forms into each project.
Now it is easy to create an application with XAML (similar to WPF).
Visual Studio for Mac creates the multi-platform project (step 1 above) automatically with the Android and iOS platform builds, but not the macOS.
I also see that I don't really need to download Mono as it is all dealt with automatically.
.NET Core does support Mac and Linux. And even though .NET Core now supports Windows Forms. Windows Forms is only supported on Windows. It's unlikely this will ever change due to Windows Forms dependency on the Windows APIs.
I'm building an UWP application using Visual Studio 2017 Community Edition.
Everytime I create a new UWP project, I cannot select Target version lower than version 1809. See below pic.
My problem is, my current windows 10 version is 1803, and when I want to update my windows 10 to 1809, I found that 1809 is somehow not available according to this post in windows forum below:
Link to forum
What happen then, when ever I want to design and preview my UWP app, I cannot render all controllers within the page. Like below pic.
My question are:
How can I resolve this besides waiting for update 1809 avail?
Is there anyway I can change the TARGET VERSION of my app? so I can have better experience in coding my app?
Thanks
If I understand correctly, you have to install older SDK for Min version before you start work.
You can find all versions of it on this page and download them Windows SDK and emulator archive .
for example If you want it to be at least compatible with the Windows 10 Anniversary Update then you should download and install SDK (ver. 10.0.14393.795)
I have an app that targets Windows 10 build 10240, but my local machine has the latest update.
for phone I see there are various emulators in Visual Studio. Is there a way to test an app on older versions of Windows 10 desktop?
(I know one way is to actually find an older windows and run it on a virtual machine, but I want an easier way)
Thought I should write an answer just to make it clearer.
Currently, if your target version is 15063 and min version is 10240, you do get some benefits like what's shown in the following picture -
Properties like FocusVisualMargin will be highlighted as
The property ‘FocusVisualMargin’ on type ‘ListViewItem’ is not
available in the target platform minimum version (10.0.10240.0)
supported by this project.
However, resources like ListViewItemForeground are also not available in 10240 but they are not highlighted. Same as in the following picture -
This SetImplicitShowAnimation API is also not available in 10240 but it's not highlighted.
This tells me Visual Studio doesn't not fully recognise everything in each version. This may change in the future, but for the time being, it's just a lot safer to either run it on a 10240 machine, or reduce the target version to 10240, then run and test.
If you want to create Version Adaptive Code, see here.
I have found a similar question already asked, and the solution did help somewhat, but the problem still persists: (this one).
So, what actually happened: I wanted to move the SDK to C:\ instead of AppData to make it accessible to other users, changed the path in Visual Studio Tools>Options>Xamarin>Android SDK and changed the Path variable, however Visual Studio couldn't find the files (even on the original profile) when I re-ran it(the API 23 android.jar in particular).
This was fixed by changing the registry entry, as described in the previously mentioned question. VS now displays
[I:Unknown]: Found Android SDK. API levels: 10, 18, 19, 20, 21, 22, 23
on project load.
However, when I try to deploy the project (onto a currently running and functioning emulated Android Virtual Device, no less,) this error message gets displayed:
Could not find android.jar for API Level 23.
This means the Android SDK platform for API Level 23 is not installed.
Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...),
or change your Xamarin.Android project to target an API version that is installed.
(C:\Users\User\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK\platforms\
android-23\android.jar missing.)
It's still looking for the SDK in the old AppData folder. Which system/environment variable, registry entry, or Visual Studio Setting do I change to fix this? Thank you very much in advance for any answer, and apologies for possible duplicity, it's the fifth hour I've been on this and my head would really prefer to sleep.
Since I installed Visual Studio 2015 Update 2 I can't create any app packages for the Windows Store anymore. The apps are linked to the store and compile without any mistakes, however every time I try to create a store package it fails because "C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\Tools\nutc_driver.exe" returns exit code -1073740791. I've already tried both repairing and reinstalling Visual Studio, I've also reinstalled every single Windows 10 SDK package (10240 as well as 10586.212), but none of these attempts fixed my problem. It doesn't even work with a completely new, empty project.
The weird thing is that I can create packages not linked to the store without any problems, the problem only occurs when I try to create the actual store packages.
I'm running the latest stable release of Windows 10 Pro x64 (10586.212) and never tried the Preview SDK or other sorts of pre-release things with these packages. Also, they're all located on my main partition (C:).
The next thing I'd do is to reinstall Windows 10, however that can't be the only option to fix this issue (supposing it would do). So is there anybody who knows what exactly causes Visual Studio to fail at this point?
Thanks!
Edit: The error is also specified as "ILT0005".
So I've figured out what had caused Visual Studio to fail. Believe it or not - the display language of Visual Studio was the problem. I changed the language from German into English and everything worked just fine afterwards.
However, thanks anyway. And maybe I can reach and help some other people who are struggling with the same bug.