I'm trying to find words in image and I found this library using Windows.Media.Ocr.
MS gives really good library using Windows.Media.Ocr but I can't use it in winform or wpf application project.
how can i load using Windows.Media.Ocr; and use it in winform or wpf project?
I got this error when I tried to add it in winform project.
after downloading UWPDesktop from nuget, I got this another error.
I am working at windows 10.
Install the UwpDesktop Nuget package in your WPF application. You should then be able to use the classes in the Windows.Media.Ocr namespace. Please refer to this blog post for more information.
Windows.Media.Ocr was originally limited to UWP applications only. Previously, developers had to install the UwpDesktop package via Nuget. However, there is now an official package from Microsoft that replaces the previous UwpDesktop package. Simply add the Microsoft.Windows.SDK.Contracts NuGet package to your project.
Check out this link for more info.
Related
I have a page that contains a CollectionView of images. I want the user to be able to LongPress on an image and then they will have the option to delete or edit the image.
I'm trying to implement LongPress functionality in my .Net Maui project, however I can't find any documentation for this. How do you guys handle LongPress? Am I missing something?
Due to the TouchEffect has not yet been ported from Xamarin Community Toolkit to Maui Community Toolkit, you can add the Xamarin.CommunityToolkit.MauiCompat 2.0.2-preview1013 to your project. It is the .NET MAUI Compatible version of Xamarin.CommunityToolkit.
Here is the codes you can directly run in the package manager console to add this package:
NuGet\Install-Package Xamarin.CommunityToolkit.MauiCompat -Version 2.0.2-preview1013
There's a Xamarin package to implement signing feature in a Xamarin application. For now this repository is archived and there's no .net6.0 implementation for MAUI.
I tried to find a substitute for this package but did not succeed. Unfortunately commercial packages are not an option for my case.
Maybe I am missing something and MAUI has a such package?
There is a package in maui called Maui.CommunityToolkit. You can use the DrawingView as a replacement.
You can refer to this article.
In addition, I found a discussion about SignaturePad package for MAUI on git.
Here is the website: https://github.com/CommunityToolkit/Maui/discussions/270?sort=new
I see in the documentation I must download a Template to use the bot Framework https://learn.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-quickstart
There is a way to install this tempalte with nuget ? I find the package for nuget https://www.nuget.org/packages/Microsoft.Bot.Builder/
But I must create a project to use the cmd Install-Package
How install the bot framewokr only with nuget ?
The documentation article, which you are referring to, does not say you have to install any framework. What it recommends is to install the project template. Project templates are not frameworks, they just have some pre-included files.
The same documentation article clearly says that the framework itself is a nuget package. They say:
By using the Bot Application template, you're creating a project that already contains all of the components that are required to build a simple bot, including a reference to the Bot Builder SDK for .NET, Microsoft.Bot.Builder. Verify that your project references the latest version of the SDK:
Right-click on the project and select Manage NuGet Packages.
In the Browse tab, type "Microsoft.Bot.Builder".
Locate the Microsoft.Bot.Builder package in the list of search
results, and click the Update button for that package.
Follow the prompts to accept the changes and update the package.
Thanks to the Bot Application template, your project contains all of the code that's necessary to create the bot in this tutorial. You won't actually need to write any additional code. However, before we move on to testing your bot, take a quick look at some of the code that the Bot Application template provided.
This basically means that there is no requirement to have this project template. What you can do is actually install the template, create a project and look at the project structure and packages. Then, you are free to reproduce the same project structure and add necessary references yourself, without using project template.
Again, the template is just a bootstrap code.
I am new to windows app development. I want to use OxyPlot in UWAP C++/Xaml project. I am able to use it in C# based project but not in C++/Xaml project. First I tried to add it using Nuget package manager but it didn't install. Then I followed this (https://social.msdn.microsoft.com/Forums/en-US/8b77c775-21e0-4b43-b9f3-fb3777c43212/adding-libraries-and-use-them?forum=winappswithnativecode). In this Windows runtime component (with OxyPlot) is created in C# and used in C++ project. Here I am able to build the project but app crashes saying OxyPlot (added in C# project) not found.
Can someone please guide me. Regards
This may not 100% apply but it should. I was not trying to do this: "Use OxyPlot in Windows Universal app c++/xaml project". But I was tyring to use OxyPlot in a C++ .Net class so that it could do somethings fast, and eventually pass things back to a C# Class or WPF form. The idea I needed to know was could I create an OxyPlot.DataPoint array in C++ then put it into a C# Double array or an List in C# fast. And I can do that now fast! I hope this approach might help someone here doing this. I don't know how easy it is to use this technique to be able to use the opti chart in a C++ app or not. But if the GUI is done in C# this approach works.
I was getting the error: "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." when I tried to install OptiPlot.WPF or the NuGet.Commandline.
This may not be a complete solution for everyone's needs, but it worked for me. I found a "cheatin" way of getting OptiPlot.WPF into a sample C++.Net project. I had a C# main program project in my solution - I installed the package there:
Install-Package OxyPlot.Wpf -Version 2.0.0
Then I copied the packages.config file and the packages folder from there to my C++ .Net Class Library Project. Then I edited the packages.config file and took something out that didn't apply, and I probably took out a package in packages that wasn't needed. Then I added my references in the C++ .Net Class Library Project to packages/OxyPlot.Wpf.2.0.0 folder.
Now I could use the OxyPlot inside of C++! Cool!
Is it possible to inlcude AzureMobileServices client in a PCL that includes WP8?
I used to have a PCL project that had it up until I upgraded it to VisualStudio 2013.
The required PCL is profile78: .NET4.5, Windows Store apps (Win8), WP8, and the Xamarin twins.
I tried following this recommendation from Xamarin to reference the component's DLL directly, however the DLL was compiled for profile7 (that does not include WP8).
Yes. Make sure you are using at least version 1.1.5 of the Mobile Services NuGet package or Xamarin Component and you will be able to successfully use it from a PCL that includes WP8. For a tutorial on how to do this, see here.
It looks like their nuget package only includes directories for Store, .Net 4.5, Wp8, and Portable-Store+.Net 4.5. However if I ildasm the dll in the portable folder I see it was built for Profile78, which does support phone.
This looks like a bug with the WindowsAzure.MobileServices.nupkg nuspec authoring.