ASP.NET Core 3.0 with GDI+ on CentOS 7 - asp.net-core

I have tried to draw number or text string, everything is good on Windows Server since I use GDI+ method "DrawString" to draw text I want. When I publish my web as linux-64 and try to generate image which based on GUI+ DrawSting, all I can see is my strings turn into blocks like below, even numbers and letters.
I follow the google's instruction to install related fonts then use "fc-list" to check. I still cannot see number or text.
Can anyone help me? Please!

This is a known bug on .NET Core 3.0, it could be solved on .NET 3.1
For now, the only way to solved this problem is downgrade to .NET Core 2.2
https://github.com/dotnet/corefx/issues/41292

Related

Query .dbf files in .net core 3?

I've been tasked with re-writing an old winforms app so that it works in .net core 3. I've ran into a brick wall where the original app uses OleDB to query some large .dbf files, and there's no equivalent in .net core. Has anybody had to do similar? If so what was the best approach?
I'm stuck with the .dbf files unfortunately as these are created by a 3rd party application (That I think was created using VF Pro many many many moons ago??)
I ran into a similar problem some time ago, needing to read DBase files and finding no C# support. I ended up writing the DBase.NET (GitHub) library - it may help you out.
After a bit more research, oledb library has been ported over to .net core 3.0+...
https://learn.microsoft.com/en-us/dotnet/api/system.data.oledb.oledbconnection?view=netframework-4.8
However it looks like it's still not completely stable when dealing with VF Pro judging from this git thread:
https://github.com/dotnet/runtime/issues/981
I came across this DbfDataReader

iTextSharp - where are PdfDocument, PdfCanvas, ...?

I'm generating PDF documents using iText(Sharp).
I'm developing the app using Visual Studio 2017.
I've added iTestSharp using NuGet and I've experimented with both VB and C#
All is fine for the 'high-level' stuff (chapter 1 from the jumpstart tutorial). Now I want to go more low-level using 'page', 'canvas' and 'low-level' drawing commands : chapter 2 from the jumpstart tutorial
http://developers.itextpdf.com/content/itext-7-jump-start-tutorial/chapter-2-adding-low-level-content
My problem is that I can't access the classes PdfDocument, PdfCanvas, etc. these classes are not available..
Also I can't create a New PdfWriter object (New operator is not implemented)
What's wrong ?
am I missing some Imports / using libraries ? (I currently include
iTextSharp.text and iTextSharp.text.pdf)
has this someting to do with iText V5 - > V7 and is the tutorial maybe a bit out of date ?
are these classes only available in the Java libraries, and not in the .NET port ?
Does anyone have an example of drawing stuff on a canvas using VB.NET - this would be very helpful!
Thanks.
To clarify further:
iText 5 .NET is nicknamed iTextSharp because of historical reasons that are beyond the scope of a Stack Overflow question.
iText 7 .NET doesn't have a nickname because we (iText Software) want to emphasize that it is exactly the same product as iText 7 Java, just for a different platform.
The tutorial you found is not out of date, on the contrary, it's the most recent one. It's the iTextSharp you got from NuGet that is out of date.
If you read the description on NuGet.org then you will clearly see that iTextSharp is the old version: https://www.nuget.org/packages/iTextSharp
We have two currently supported versions: iText 5 and iText 7. Both
are available under AGPL and Commercial license.
iText 5 AGPL
iText 7 community: https://www.nuget.org/packages/itext7/
iText 5 is a one solution library that is complex, but well documented
to help you create your solutions.
iText 7 is a complete re-write of iText 5, allowing you to choose your
adventure with add-ons, all based on a simple, modular code structure
that is easy to use and well documented.
and
iTextSharp is the .NET port of iText 5.
If this wasn't clear enough for you (and it obviously wasn't), then I would really, really appreciate your feedback on how we can improve the description on NuGet.org.
Make sure you have the right NuGet packages on your system.
To try this out, create an empty project and include NuGet packages
iText7 by iText Software v 7.0.4
The jumpstart tutorial was written for iText7, so it make sense you'd need that specific version. iText7 is a complete re-write of iText5. So you might indeed find several classes missing if you try to run the samples against the iText5 library.

T4MVC alternatives for ASP.NET 5?

T4MVC is not supported yet or ever in ASP.NET 5. Is there any other similar solution ? I need strongly typed views and controllers names.
Looks like there is a side project called R4MVC but it hasn't been updated in 5 months.
R4MVC is a Roslyn code generator for ASP.NET MVC vnext apps that
creates strongly typed helpers that eliminate the use of literal
strings in many places
As Stafford Williams pointed out, a side project was started a long time ago, but was stalled due to (at the time) breaking changes in the Roslyn compiler.
Luckily, the project was revived, and R4MVC has just released it's first alpha build, with more changes coming soon.
While the project works somewhat differently, and isn't using t4 templates, the end result is the same, and we're working to achieve feature parity with T4MVC in the near future.

Preview Templates of Asp.Net 5

I just installed VS2015 and I'm wondering if I should use the Asp.Net 5 preview template (this is the only option I currently have in VS2015) for my new website. Does anyone know if this preview is some sort of a beta version which might be unstable? If not, why is this version called a preview version?
I didn't find much information about this preview thing in Google so I'll be happy to get some relevant information or links to explanations about this preview version.
Thanks.
ASP.NET 5 is still in beta, and is not yet released as a finished product nor recommended for production applications. It's marked as preview because of this, as it may (and will) continue to change how it does things until it reaches the RTM version.
If you are happy with the above, and want to tinker around, while understanding that updates in the coming months may break your code, then go for it! If you'd rather only write your code once and not have it break with updates, then stick with the previous ASP.NET project types like MVC 5.
Here's the roadmap/schedule for ASP.NET 5 which notes that RTM is expected to be available in Q1 2016.

How to get all processes running in .net cf

I want to get a list of all running application in my windows mobile 6.5 from my application.
Can anyone tell me how to do this for CF??
You have to P/Invoke the toolhelp APIs. There used to be an MSDN article that covered this (it's a bit long to put it all into a post here, though maybe that's a better idea?). The gist of it can also be found in the SDF source code over on Github.