Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm porting some legacy code to .Net core and I'm almost done except for this class. I searched but couldn't find any. So is there after all any replacement or alternative to System.Text.UTF8Encoding class in .NET core?
http://packagesearch.azurewebsites.net/?q=UTF8
You should use Encoding.UTF8.
It exist but is not yet in a stable release.
This is the nuget package for dnxcore50 which contain UTF8Encoding:
"System.Text.Encoding" : "4.0.11-beta-23509"
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
What all tasks should I use to create a build pipeline for .NET Framework solution? I want to add specific settings for each task.
You can find many yaml templates here: azure-pipelines-yaml/templates/, .NET Desktop
For the classic pipelines just use predefined templates:
Create a new pipeline:
Select a source
Select a template
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
what is the best way to embed all of this .dll from system.text.json into my final .exe file?
https://i.imgur.com/FblAZO5.jpg
With .NET Core 3, you can use <PublishSingleFile> in your .csproj to create a single executable. You can also use <PublishTrimmed> to reduce the size of the executable by only including what your application actually uses.
https://www.hanselman.com/blog/MakingATinyNETCore30EntirelySelfcontainedSingleExecutable.aspx
If you're on .NET Framework, you can use ILMerge.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is it possible to use a WinRT component in a .NET Core 3 application?
Found a solution: registration-free WinRT.
For anyone reading this please see the following articles:
Enhancing Non-packaged Desktop Apps using Windows Runtime Components
Identity, Registration and Activation of Non-packaged Win32 Apps
There is also this repo with an example.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have a project "Implementation of cca" using dlib library c++, on the other hand, I have a project which used c#.
Actually, I have no idea how to link them.
Please can you help me
Use the System.Runtime.InteropServices-namespace like described here: https://msdn.microsoft.com/en-us/library/ms235282.aspx
Good examples are http://www.dotnetperls.com/dllimport or https://drthitirat.wordpress.com/2013/05/30/combine-gui-of-c-with-c-codes/
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
After creating a PCL class library in VS2015 with targets .NET Framework 4.5, Windows 8, and ASP.NET Core 5.0 (Profile 7) I expected to be able to reference SortedList<K, V> but it's not available. All the other generic containers seem to have been retained so I'm wondering if MS posted somewhere why this particular container was dropped. And, more generally, how I figure out which of these targets is preventing me access to a type SortedList<K, V>.
The version section at the bottom of the MSDN docs tells you if the type is .NET Core.