Universal Windows Project, VS17, Cannot Install Microsoft.Azure.Devices.Client IOT SDK - azure-iot-sdk

I'm getting the following failure report when attempting to install version 1.31.2 in VS17 using Nuget.
Error NU1202 Package Microsoft.Azure.Devices.Client 1.31.2 is not compatible with uap10.0.15063 (UAP,Version=v10.0.15063) / win10-arm [and other Windows 10 versions]. Package Microsoft.Azure.Devices.Client 1.31.2 supports:
net451 (.NETFramework,Version=v4.5.1)
net472 (.NETFramework,Version=v4.7.2)
netstandard2.0 (.NETStandard,Version=v2.0)
netstandard2.1 (.NETStandard,Version=v2.1)
Any advice on how to resolve this would be appreciated. Do I need to use and earlier version?

You will need to meet the OS and hardware compatibility as described to install and use Microsoft.Azure.Devices.Client :
https://github.com/Azure/azure-iot-sdk-csharp#os-platforms-and-hardware-compatibility
See also: Prepare your development environment
"Visual Studio is not required to build the SDK. This may not be sufficient to run certain samples that require Visual Studio and other SDKs or frameworks installed on your machine."

Related

EntityFramework.Core.Tools nuget package installation error: "The process cannot access the file ef.exe because it is being used by another process"

While installing the package Microsoft.EntityFrameworkCore.Tools for using EF in my project using Nuget, I'm persistently running into the below error. Notice I didn't get any error while installing other related packages used for EF core
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Relational
Microsoft.EntityFrameworkCore.SqlServer
Here is the location of the file ef.exe
Basically the intention behind installing this package is to use EF command-line tools. I'm currently on Windows 10 and the .NET SDK installed on my machine is 3.1. I had previously 2 SDK's installed on my system(3.1 & 5.0). As per microsoft's documentaion, "The .NET CLI must choose an SDK version for every dotnet command. It uses the latest SDK installed on the machine by default." Therefore I went ahead and uninstalled .NET 5.0 SDK
Here are some of the solutions that I tried:
Deleting the package folder from '.nuget/packages/microsoft.entityframeworkcore.tools' & thereby the executable i.e. 'ef.exe' and reinstalling the same.
Installing the same package using dotnet cli.
Running Visual Studio 2019 as admin.
Deleted the folder "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions"
I have also tried some of the steps mentioned here on github: https://github.com/NuGet/Home/issues/1138
. Any kind of help would be really appreciated.
I have answered the detailed description of the solution here on microsoft's .NET Q&A platform.
'EntityFramework.Core.Tools' nuget package installation error

Vcpkg Libraries not detected by Visual Studio 2019 Community edition

I am currently working on a Open-Source Project, which has some third-party library dependencies, I have installed all of them using Vcpkg into a particular folder in my E: drive and integrated them with Visual Studio with the "vcpkg integrate install" command, and supplied the Cmake toolchain also in the IDE.
But the libraries (ie. WxWidgets currently) are not being detected while configuring the build.
I am attaching the configuration message as well as the error snapshots below.
Any suggestions regarding this, would of great help.
Thanks & Regards.
buildsnap
ErrorSnap

Visual Studio Mac extensions mpack failure

Visual Studio Mac Extensions mpack file installation failed with below error
Error:
The add-in Mytemplate could not be updated because some of its dependencies missing or not compatible
required:Mono.Develop.Core 8.2.5 , found : MonoDevelop.Core 8.1.2
required:Mono.Develop.Ide 8.2.5 , found : MonoDevelop.Ide8.1.2
required:Mono.Develop.Core 8.2.5 and required:Mono.Develop.Ide
Is there some mistakes here, should them be MonoDevelop.Core 8.2.5 and MonoDevelop.Ide?
The add-in Mytemplate could not be updated because some of its
dependencies missing or not compatible
Please check this document, I guess the reason why you get that issue is the extension you want to install is for MonoDevelop 8.2.5 designed by the add-in maker while the version in your machine is 8.1.2.
Check this monodevelop add-in repository and you can find the extensions there target different versions of MonoDevelop. So for your issue I think you can try to get the Mytemplate extension for 8.1.2, or you can choose to update your VS for MAC and the MonoDevelop in your machine to latest version.

Using VSCode and Paket to add file to `.fsproj`

I'm using VSCode and Paket to add libraries from Nuget to an F# project/.fsproj file.
From VSCode, I use ctrl+shift+p and use the command Paket: Add Nuget Package (to current project) and enter
FsVerbalExpressions version 0.4.0
Unfortunately, Paket fails with the following error:
Paket version 3.23.2.0
Adding FsVerbaExpressions 0.4.0 to
c:...\paket.dependencies into group Main
Resolving packages for group Main:
- FsVerbaExpressions is pinned to 0.4.0
Package not available.
Message: Couldn't get package details for package FsVerbaExpressions 0.4.0 on https://www.nuget.org/api/v2.
Paket failed with:
Could not find versions for package FsVerbaExpressions on https://www.nuget.org/api/v2.
I know that FsVerbalExpressions is available on Nuget. I need the older version because the project I'm working on is targeted at .NET 4.5 and the newer version of FsVerbalExpressions will only work with .NET 4.6.1.
Typos happen. Make sure you proofread your error messages before looking for answers that are already in front of you.

Xamarin Studio Package Console Edit Options

I'm using Xamarin Studio version 5.5.3 to build my ASP.NET MVC Application. When I create a MVC APP, is created with the version 5.2, however this version isn't totally supported and I need downgrade the package to some version < 5. I have to run the command "PM> Install-Package AspNetMvc -Version 4.0.20710" on package console, but it is readonly (as viewed on picture).
Someone have any idea to solve this problem?
The Package Console that ships with Xamarin Studio currently is read-only and only shows messages from NuGet.
There is a PowerShell console available as a separate addin but it is still an alpha release.
Alternatively you can install a specific version from the Add Packages dialog by running a search for all versions of a NuGet package:
Microsoft.AspNet.Mvc version:*
This will return all versions in the Add Packages dialog and you can then pick the version you want to install.

Resources