.NET framework 4.7.2 to .NET core 3.1 Identical code, 10x SLOWER!
Hi, first time posting here, I'm really puzzle. My company have legacy .NET application and we plan to move to .NET core. While testing stuff I found the code slow. I did a minimal benchmark and it was 10x slower on my machine. The same identical…
.NET CLI
RestClient receiving no reponse
Hello, I have copied the RestSharp code from POSTMAN into a c# console application, but I am getting no response back (where POSTMAN was working fine). If I copy the URL into a browser, I get a JSON (error) response, so I am not sure what I am…
.NET CLI

Call UserControl from a C# DLL, works not.
Hello, how can I call a WPF UserControl from a C#DLL and check the OK event? With C# WinForms this is possible. Why not with WPF? public static void Setup() { Uri iconUri = new Uri(@"test.ico",…
Windows Presentation Foundation
.NET CLI
C#

Is Docker the right tool for for multiple instances
I'm building a large solution which contains multiple applications and databases. The main "worker" in this solution is a console application which I need to run 20 instances. From an architectural view is Docker the correct tool for…
.NET
.NET CLI
C#


How to include the C# Interop Excel in Visual Studio .Net Core app in MAC OS?
Hi all, I am trying to build the C# application which will be using C# Interop Excel in MAC OS. I tried using the .Net Core Console application template from Visual Studio 2019. Before that, I am having a set of questions: Will it be possible to…
.NET CLI
C#
Remove SUB on line
Hi, In C#, how to remove SUB on the line below?
.NET CLI
C#
C# to C++/MFC duplex mode - Concept
Hello, I have a static MFC C++ application, I cannot change it. (CLI is not possible) I now need to pass data from a C# DLL in the C++ application and transfer it from the C++ to the C# DLL. What possibilities do I have to implement this…
.NET CLI
C#
C++

Automating .NET 5 webAPI project builds
Hello. When I'm looking at how VS2019 builds my webAPI project I see a csc.exe execution with many references to .NET5 SDK dlls (dozens) from within the program files folder. I also see references to 3rd parties that Nuget chose to download into my…
.NET CLI
Issue to namespace
Hi, How to resolve issue below? The type or namespace name 'ExchangeService' could not be found
.NET CLI
C#

Environment.GetFolderPath is not working properly in Linux
Hi, I have a C#.Net core 3.1 console application which supports on Linux server. I have created log file folder path by using Environment.GetFolderPath(Environment.SpecialFolder.MyComputer) path. In Redhat, the folder path created on my computer. …
.NET
.NET CLI
C#
.NET Runtime
How to retrieve ActivationUri after ClickOnce application has been restarted?
I am doing the following code in a ClickOnce Application : int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { if…
.NET CLI

Construction of frame content failed.
<description>Construction of frame content failed. System.UnauthorizedAccessException: Access is denied at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext …
.NET CLI
How to add include path and win32 .lib files to .wapproj ( Windows Application packaging project for Visual C++ .NET /CLI WinForm application ) ?
I am having issues on publishing a Visual C++ /CLI WinForm application using Windows Application packaging project to Windows Store. At Windows Application packaging project stage: it cannot find the .h files where I have specified to the .vcxproj…
.NET CLI
Does Microsoft have plans to make executables obsolete?
In the last 5 years I noticed Microsoft making a distinct move from batch to PowerShell as the main console provider. With more research from a developer's perspective I found a fascinating pattern of Application-As-A-Library with PowerShell's binary…
Windows API - Win32
.NET CLI
Windows Server PowerShell


Nunit is throwing a BadImageFormatException when trying to load tests for win-arm64 dll
Hello, When trying to excute tests from my .net5 dll, I'm getting "BadImageFormatException: Could not load file or assembly" error. Checking my dll info, I verified that it has ARM64 arch: I also verified that my execution…
.NET CLI
Visual Studio Testing
Socket.IOControl method is not supported on Linux platform
Hi, I have one .Net Core 3.1 console application in which Socket.IOControl method used. When running at linux server(RedHat),it is getting error at runtime. Please find the below code, Code: Socket m_Socket = new…
.NET
.NET CLI
C#
.NET Runtime
How to close .net core console application on linux machine?
Hi, How to close .Net core console application in linux machine? Becasue .Net core console application is running on terminal window on linux. If user want to close application,how to allow to user to close it? my application is long running…
.NET CLI
C#
.NET Runtime
how do those attributes work????
I'm producing a C++ CLI powershell cmdlet. Now... my parameters have those attributes set [Parameter(ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] and I want to set the "switch" attribute too... now, what I found out...…
.NET CLI
Get-Module
when writing a module for PowerShell in C# ... how can you control what "Get-Module" shows? ... currently I get strange information shown when I call this for my module... e.g. it says "version 0.0.0.0" but... I've no idea where it…
.NET CLI
References for TCP programming
Hi all, I have project that involves an app that will be receiving data from the network. It must have the ability to receive the data and send data back tot he client. There can be more than one client. After doing some research, I found and got…