Adding Microsoft 365 package to Xamarin Studio - api

I'm trying to add 'Microsoft Office 365 Mail, Calendar and Contact Library' package to a project on Xamarin Studio for OSx and get the error :
Adding Microsoft.Office365.OutlookServices...
Attempting to resolve dependency 'Microsoft.OData.Client (≥ 6.8.1)'.
Attempting to resolve dependency 'Microsoft.OData.Core (= 6.9.0)'.
Attempting to resolve dependency 'Microsoft.Spatial (= 6.9.0)'.
Attempting to resolve dependency 'Microsoft.OData.Edm (= 6.9.0)'.
Downloading Microsoft.Office365.OutlookServices 1.0.22...
Object reference not set to an instance of an object
All of the dependencies listed above are installed and other Microsoft packages such as 'Microsoft Authentication Library' were installed successfully.
Any solutions would be helpful. Thanks.

It seems to be a problem with Mono failing to resolve the portable library folder which is using %2B instead of +
portable-net40%2Bsl5%2Bwp8%2Bwin8%2BMonoAndroid10%2BMonoTouch10%2BWindowsPhoneApp81
The NuGet package works fine with Xamarin Studio on Windows.
There is a similar problem with Mono.Data.Sqlite.Portable 1.0.33 where it was using %2BXamarinMac which seemed to be incorrectly being resolved to a part in the zip file. To fix the Mono.Data.Sqlite.Portable NuGet package the Xamarin frameworks were removed from the portable library folder inside the NuGet package and that fixed the problem. I suspect it could be fixed by changing the %2B to + in the NuGet package.

I think you can use the Microsoft Graph.

Related

Unable to Install Microsoft.Toolkit.Uwp.UI.Controls 3.0.0

Using NuGet Package Manager, I get this error message:
Could not install package 'Microsoft.Toolkit.Uwp.UI.Controls 3.0.0'.
You are trying to install this package into a project that targets 'native,Version=v0.0',
but the package does not contain any assembly references or content files that are compatible with that framework.
For more information, contact the package author. 0
The app is a Blank App (C++/winRT). Visual Studio 15.8.0 Preview 4.0.(10.0.17134.0, 10.0.17704.0)
Despite it's name, the Windows Community Toolkit is only intended for C# developers.

'MySql.Data' already has a dependency defined for 'System.Text.Encoding.CodePages' [duplicate]

I'm trying to add AutoMapper as a dependency to a project using NuGet on Visual Studio Premium 2012, but it fails.
It says:
Operation failed
'AutoMapper' already has a dependency defined for
'Microsoft.CSharp'.
I'm able to add other dependencies.
I'm using the last version of the package manager for VS 2012:
NuGet Package Manager 2.8.60318.667
Any ideas what should I check?
The problem is that your NuGet Package Manager is too old. You need NuGet 2.12 since this supports the newer .NETStandard frameworks that the AutoMapper 5.0.1 NuGet package is using.
The AutoMapper has a group dependency which specifies a target framework of .NETStandard. Since your version of NuGet Package Manager is too old it does not recognise this target framework and converts it to an Unknown target framework and you end up with duplicate frameworks since there .NETStandard is used a few times in that NuGet package. This causes the error:
'AutoMapper' already has a dependency defined for 'Microsoft.CSharp'
Unfortunately NuGet 2.12 is not available for Visual Studio 2012 but is available for Visual Studio 2013.
So either you need to update to Visual Studio 2013 or above, or you will have to use the older AutoMapper NuGet package which does not support .NETStandard.
Seems to be a problem with the current version of automapper:
AutoMapper 5.0.0 Tuesday, June 28, 2016
I tried with the previous version and it works:
PM> Install-Package AutoMapper -Verbose
Install-Package : 'AutoMapper' already has a dependency defined for 'Microsoft.CSharp'.
At line:1 char:16
+ Install-Package <<<< AutoMapper -Verbose
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM> Install-Package AutoMapper -Version 4.2.1
Installing 'AutoMapper 4.2.1'.
Successfully installed 'AutoMapper 4.2.1'.
So, if you can't update NuGet Package Manager, the answer is:
PM> Install-Package AutoMapper -Version 4.2.1
I ended up needing to update NuGet.exe that was included in the solution to be able to build NuGet packages by running:
nuget.exe update -self
I had the same issue on VS2013. I had to update to VS2013 Update 5 and get the latest nuget distro for VS2013 at
https://dist.nuget.org/visualstudio-2013-vsix/v2.12.0/NuGet.Tools.vsix
Once that was done, I rebooted Visual Studio. After that I was able to use the Automapper 5.0.2 package
Go to Visual Studio > Tools > Extension and Updates
Find Updates in left accordion menu, Go to Visual Studio Gallery.
You will find a update for Nuget.
Update the nuget package and try installing or builing the project.
Thanks,
GT
An other workaround if you're stuck with VS2012 and the old Nuget version:
Find the Cache folder of VS 2012's Nuget Package Manager (with Tools - Options - Nuget Package Manager)
Open AutoMapper.5.x.x.nupkg with your favorite Zip Tool
Modify the file AutoMapper.nuspec - I simply deleted all dependencies except .NETFramework4.5
Add the cache folder as a Nuget source (also in Tools - Options - Nuget Package Manager)
Install Automapper either with the console or the GUI but make sure to choose first the newly added cache folder as package source.
Of course, the next version of Automapper probably needs to be adapted, too, in order to install it.
This looks like a mismatch between the .NET version used by the Automapper package and your project. Can you confirm the .NET version that your project is using?
Automapper 6.0.2 - nuget 2.8.8 gives this error. Needed to update to 3.4.4 to get this working.
Removed both CSharp and AutoMapper. Installed CSharp (4.0.0.0) first and then added Automapper (6.1.1.0). This resolved the problem for me.
I observed this exact problem when opening a project with Visual Studio 2010.
After opening with VS2017, I was able to install AutoMapper without any error.

Unable to load DLL 'lua52': The specified module could not be found

I have the same problem as described here:
https://github.com/NLua/NLua/issues/33
Though I have followed the instructions to create a console application...
http://www.screencast.com/t/M12TqePQxW
...which works just fine, when I create a library project and reference it from another project (in this case, a Web API project) the following error occurs:
Unable to load DLL 'lua52': The specified module could not be found.
At this line:
using (var lua = new Lua())
How can a library project be made with the NLua nuget package without failing?
It is the exact same issue as described in the GitHub issue, the Nuget package is missing two DLLs that you need to use lua52.dll. One small difference, the current package (version 1.3.2.1) includes a newer version of lua52.dll that was built with VS2013. And therefore has a dependency on msvcr120.dll and msvp120.dll.
Beware that this may change in the future when Nuget updates your project.
As-is, you need to download and install the Visual C++ redistributable package for VS2013. Run both vcredist_x64.exe and vcredist_x86.exe so your project can run either in 32-bit or 64-bit mode.
To avoid having to do this on the machine on which you want to deploy your program, I recommend you copy the two DLLs from the c:\windows\system32 (64-bit) or c:\windows\syswow64 (32-bit) directories into the same directory as your EXE.
The package author could have done a better job putting this package together. Short from including the DLLs in the package, the better solution would be for him to rebuild lua52.dll with the /MT option so these dependencies are linked in. Consider clicking the New Issue button to let him know.

VS2015 Nuget error but not using Nuget at all

Yesterday i upgraded from visual studio 2010 to vs2015. I have an existing project, a simple Windows Forms application that used to build without problem. Now when building the project in VS2015 i get Error while restoring Nuget packages, HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY).
I'm not using Nuget, don't know what Nuget is, have no nuget package folder in my project, so don't have the slightest idea what goes wrong.
Searched a lot for solutions but they all seem to refer to problems using packages, not to problems with not using packages.
Can anyone help me out?

windows 8 store app - dependency issue - certification failed

We just submitted app in windows 8 store (metro style app) and got the error:
XXX takes a dependency on Microsoft Visual C++ Runtime Package framework but is missing the framework dependency declaration in the manifest.
We had our app working fine in release version but it was not getting accepted as package so we needed to migrate our app as Windows RTM. During that we had following entry
in manifest:
<Dependencies>
<PackageDependency Name="Microsoft.VCLibs.110" MinVersion="11.0.0.0" />
</Dependencies>
If we keep this, we get following error while build the app.
Error : DEP0700 : Registration of the app failed. Windows cannot install package 5d6f272d-c915-4de1-a9d6-c0c08d63ab94 because
this package depends on another package that could not be found. This package requires minimum version 11.0.50727.1 of framework Microsoft.VCLibs.110
published by any publisher to install. Provide the framework along with this package. (0x80073cf3) Test_App1
So we removed it and submit the app, it just got failed and gave following error.
XXXX takes a dependency on Microsoft Visual C++ Runtime Package framework but is missing the framework dependency declaration in the manifest.
We need to keep this package itself in the manifest but not getting it done.
I had similar problem.
Add a reference in your project to Microsoft Visual C++ Runtime Package
Just click on project i select Add reference and find this Package. Adding this should resolve your problem
The issue got resolved by updating
"Microsoft.VCLibs.110" to Name="Microsoft.VCLibs.110.00"
Just I've repaired the VS 2012 for windows 8 from Control panel > Programs and the designer works fine.