System Namespace not found - visual-studio

I am using using System.Net.Http , It shows
error missing directive or dll
How can I fix in visual studio 2015 Community Edition? Its an universal windows phone project.
Actually I am creating the Universal Windows application.

Related

Error: this template attempted to load component assembly 'Microsoft.VisualStudio.Universal.TemplateWizards, Version=15.0.0.0

I'm using Visual Studio Community 2017 Version 15.7.1 on Windows 10 Home Version 10.0.16299 32-bit, Windows SDK Version 10.0.17134.12 and C++/WinRT Version 1.0.180505.2. When I try to create a new project using any of C++/WinRT templates, I'm getting this error message:
Error: this template attempted to load component assembly
'Microsoft.VisualStudio.Universal.TemplateWizards, Version=15.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more
information on this problem and how to enable this template,
please see documentation on Customizing Project Templates.
Is there an easy fix to this problem?
This error was caused by missing UWP SDK. My first installation of Visual Studio was configured for Desktop development with C++ workfload only, so UWP development workload components were missing. I added UWP development workload using Visual Studio Installer.
This error comes due to absence of UWP tools. For Visual Studio 2019, you simply have to go to Extensions>Manage Extensions>Online and search for "UWP Essentials" then download it for free. Close all Visual Studio windows and then when you open it again, the problem should be solved.
The easiest way to fix this is to install the whole UWP Essentials package. It contains a lot, but it gives you everything to fix the issue. Go to Tools > Extensions and Updates > Online and search for "UWP Essentials", and use the Visual Studio Installer to get it.

Error FS0039: The namespace or module 'Xamarin' is not defined. (FS0039) in Visual Studio for Mac

I created a multiplatform app in F# in Visual Studio Community edition for Mac.
Then I try to run the skeleton app in Debug mode. It instantly reports these namespace error
I expect Xamarin to be installed during VS installation. Why the namespace is missing and how can I fix it?

WindowsDriver.common.targets error

I have installed Visual Studio 2013 then installed Windows Driver Kit (WDK) 8.1. I'm using Windows 7. I already had a project which is a modified fastfat. I was building that using VS 2012 and everything was fine. But today when I try to build the same project using VS2013 I get the following error:
C:\Program Files (x86)\Windows Kits\8.1\build\WindowsDriver.common.targets(77,5): error : Unknown or unsupported property value (Vista) for TargetVersion
Note that I ran the clean procedure before doing the build.
Does anyone know what to try next?
What flavor of Visual Studio 2013 are you using (i.e., Professional, Premium or Ultimate)?
Be aware that Professional does not support Device Driver Templates. Check this by clicking on File/New/Project. Then Templates/Visual C++. If "Windows Driver" does not show up then your flavor does not support device drivers. I would try Ultimate.

Targeting WP7 async powered projects in Visual Studio 2012

Is it possible to use async stuff in Windows Phone 8.0 SDK (Visual Studio 2012) and still targeting Windows Phone 7.1?
I installed Windows Phone 8.0 SDK and opened my WP7.1 project with references to AsyncCTP nuget package. The following compilation error occurs:
Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
I do not want to drop support of WP7.1, so upgrade to WP8 is not an option.
It is possible using the latest version of the async CTP. You can find it on NuGet at Microsoft.Bcl.Async.
More information on the BCL Team blog: http://blogs.msdn.com/b/bclteam/archive/2012/10/22/using-async-await-without-net-framework-4-5.aspx
Note: The installation of this NuGet package seems a bit random. I had to try twice to make it work.

AppFabric development on Windows XP?

Installed app fabric x64 on Windows Server 2008.
Copied Microsoft.ApplicationServer.Caching.Client.dll and Microsoft.ApplicationServer.Caching.Core.dll from %windir%\System32\AppFabric ref to Win XP Pro 32-bit dev machine.
Added reference to both these files in project
Added using Microsoft.ApplicationServer.Caching;
Cleaned solution
Receive error: The type or namespace name 'ApplicationServer' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Any ideas?
Thanks!
Did you verify that you were using .NET framework >= 2.0?
Do not use the client profile for the target framework version. In Visual Studio 2008,
uncheck the Client-only Framework subset checkbox. In Visual Studio 2010, select .NET
Framework versions that do not specify "Client Profile".
See here

Resources