Microsoft Visual C++ Runtime Package framework is missing the framework dependency declaration in the manifest - windows-store-apps

I receive the following error on the Windows App Certification Kit for Windows 8.1.
The app manifest test detected the following errors:XXX takes a
dependency on Microsoft Visual C++ Runtime Package
(Microsoft.VCLibs.110.00) framework but is missing the framework
dependency declaration in the manifest.
My solution builds with zero errors. However, I receive an error after I create an app package and run the Windows Application Certification Kit.
I have added and removed references to the C++ runtime extension.
In addition, I do not see any fields in the app manifest editor to modify that would resolve this dependency error.

It sounds like you are including a library that was built with Visual Studio 2012. You will need to rebuild that library in Visual Studio 2013. If you just have the binary you will need to get an updated version from the author.
..
Or
Rename "Microsoft.VCLibs.110" to Name="Microsoft.VCLibs.110.00",
Or
Add a reference in your project to Microsoft Visual C++ Runtime Package
Add reference and find this Package. Adding this should resolve your problem

Related

C# .Net Framework Class Library proj - Newtonsoft.Json gives "The system cannot find the file specified..." error

The project is a Class Library which I want to use it from a Visual Foxpro application. Visual Foxpro is 32bit.
.Net project:
Target framework .Net Framework 4.7.2
Target Platform x86.
Using Newtonsoft.Json and RestSharp
I registered the DLL using RegAsm and I am able to create an object of that from Visual Foxpro. Things are fine, if I simply do some string manipulation and I am getting return value from DLL into Visual Foxpro program.
Now, when I enable RestSharp, it breaks and throws below error:
*OLE IDispatch exception code 0 from System.Memory: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified...
*
I am not sure how this version conflict came up when I installed packages afresh and have not copied any file manually.
Any clue?
Thanks in advance
Rajesh
My Visual Foxpro test folder is different and I have copied all files from my .Net Debug folder into that folder.

How to use assembly registered in GAC on MonoDevelop?

I recently registered Mysql.Data.dll assembly in GAC on 64bit Ubuntu 14.4 to use it following this example with an ASP.NET Mono project and verified.
I realized that although it is registered in GAC, it's not directly usable from Edit references dialogue on Monodevelop.
I tried to see how can this be made possible, the possibilities exists for Visual Studio which is something I don't need.
Doubts:
If the assembly is un-usable what is the concept of registering it in GAC?
How can this assembly be provided by a package (and advertised through a .pc file?
How can this assembly be bundled together with the application?
Are the steps I followed incorrect?

Connecting Microsoft Band SDK Preview to C++ project

I have just downloaded the Microsoft Band SDK Preview and trying to connect it to my C++/CX Windows Universal App project. Nuget gives me an error below, any way I could use the SDK preview from C++ code?
Install-Package : Could not install package 'Microsoft.Band 1.3.10219-preview'.
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.
At line:1 char:1
+ Install-Package Microsoft.Band -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
It seems the problem is generic to installing managed assemblies to C++ projects, but I haven't managed to find the workaround yet.
The Band SDK Preview (1.3.10219-preview) NuGet package does not specifically target Windows Runtime Components, which means it cannot be consumed (directly) by C++ or JavaScript Windows Runtime Component libraries. As an alternative, you could create a Windows Runtime Component library (C# or VB) that wraps the portion of the Band SDK you need and then consume that library from your C++ or JavaScript component.
My guess is that the Band SDK is only for VB.NET and C# projects - I've tried getting it for a WP JavaScript application, but I ran across the same problem that you are having.
I haven't seen anything from Microsoft or anyone else about this issue. Perhaps since the JS / C++ projects aren't 100% managed languages (there's native C++ and Visual C++ [managed]), it doesn't support them (correct me if I'm wrong, I don't know much about the internals). Hopefully in a future release.

Windows Store Certification Metadata test failes

When I run my program in debug mode, it runs nicely. Now that I want to upload it to the Windows Phone Store, it creates the App Package, but when running the Windows App Certification Kit, it returns the following error:
General metadata correctness test - failed
with the reason:
In the Winmd-File "myBackgroundPart.winmd" (that's my RunTime Component) there is missing "WindowsRuntime 1.3" or "WindowsRuntime 1.2" in the versionstring. The versionstring of the file is "WindowsRuntime 1.4;CLR v4.0.30319".
My environment is Visual Studio 2015 CTP5. The error message suggests, that my WinRT is too new for Store!? How do I downgrade it then?
Edit
This was an issue with VS2015 CTP5, with the new released CTP6 yesterday it was solved.
You need to build your app using Visual Studio 2013 (Update 4 is the latest). Note that Visual Studio 2015 does not have a "go live" license, meaning you can't use it for production purposes anyway. You need to wait until it is released.
Also, when you built the component, what Project Type did you choose? If you built a project for Windows 8.x then I don't think it should have used version 1.4 metadata. Did you build / test on Windows 10 Preview by any chance?

VS 2015 + universal app + mvvmcross 3.5.0 + sqlite

I started a new universal app using vs 2015 ctp 5, mvvmcross 3.5.0 + sqllite plugin 3.5.0.
I am using the famous N=.... serie of vídeos, especificaly n=12 Collect A Bull as a reference.
I created a new pcl Project as a core and a universal app Project(3 projects), added nuget packages to core , wp8.1 and to w8.1, everything good so far.
Then i copied the service folder from N=12 sample, added related nuget packages.
My trouble is: at this line _connection = factory.Create("collect.sql"); on repository i've got a exception :
A first chance exception of type 'System.DllNotFoundException' occurred in Cirrious.MvvmCross.Plugins.Sqlite.WindowsCommon.DLL
Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The message is pretty clear cannot found sqlite3.dll i've seen some articles to add file and reference manually, but i did not see nothing on the vídeo, and the N-12 sample runs ok?
How the sample can access the mentioned sqlite dll, it could be related to universal app?
By comparison i found a missing reference in wp project: Community.CsharpSqlite.WP7 i added manually but does not solve.
Any suggestions?
So, to solve this i just have to download from http://www.sqlite.org/download.html and add reference manually
Thanks to mohibsheth on jabbr room
Try adding
Install-Package MvvmCross.HotTuna.Plugin.Sqlite -Version 3.2.1
from package manager console. It worked for me.
If directly it didn't worked, then remove all the packages and add all packages of version 3.2.2 like :
Install-Package MvvmCross -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.FieldBinding -Version 3.2.2
Install-Package MvvmCross.HotTuna.Plugin.Messenger -Version 3.2.2
Still having problem with the packages?Uncheck Silverlight from Core project properties.
Version 3.5.0 raising problems for me too.
Hope this helps.
I would check out the SQLite.Net-PCL project. I've heard of some success in people using that although I have not personally used it yet.
I just submitted a pull request to the MvvmCross Community SQLite project to update it to MvvmCross 3.5 and unified iOS API - so you could give that a try as well. There is no new NuGet for that yet however. You'll need to clone the project and compile it yourself.