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",…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
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…
![](https://techprofile.blob.core.windows.net/images/cc5ccc83eeb3431c9ac8f6b8ff0dd8a6.png)
![](https://techprofile.blob.core.windows.net/images/cc5ccc83eeb3431c9ac8f6b8ff0dd8a6.png)
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…
Remove SUB on line
Hi, In C#, how to remove SUB on the line below?
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…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
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…
Issue to namespace
Hi, How to resolve issue below? The type or namespace name 'ExchangeService' could not be found
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
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. …
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…
![](https://techprofile.blob.core.windows.net/images/b4ZSj_2_BgAAAAAAAAAAAA.png?8D9283)
Construction of frame content failed.
<description>Construction of frame content failed. System.UnauthorizedAccessException: Access is denied at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext …
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…
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…
![](https://techprofile.blob.core.windows.net/images/JbS0ZEgKCEWBPHgHCqfcaw.png?8D87A2)
![](https://techprofile.blob.core.windows.net/images/JbS0ZEgKCEWBPHgHCqfcaw.png?8D87A2)
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…
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…
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…
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...…
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…
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…
Open Windows Console on Blazor Server App Start VS2019
I'm developing a Blazor Server App which interfaces with an API I have built. At one point, my project was set up to open a Windows Console output window which showed essentially the same info as the Output window in VS but also the content of my…
![](https://techprofile.blob.core.windows.net/images/VIHPRKc2WUiRdmgc7bDVpw.png?8D9020)
![](https://techprofile.blob.core.windows.net/images/VIHPRKc2WUiRdmgc7bDVpw.png?8D9020)
C++ CLI .NET core 5 function returning IEnumerable
Hi how to return IEnumerable from a C++/CLI .NET Core library in a function List<MyClass> li = gcnew List<MyClass>(); IEnumerable<MyClass^>^ Find(String^ key) { // how to return from list } Also Task/await is not…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)