326 questions with .NET CLI-related tags

Sort by: Updated
0 answers

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
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,706 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
asked 2021-07-08T10:41:15.673+00:00
Markus Freitag 3,786 Reputation points
commented 2021-07-08T19:45:49.28+00:00
RLWA32 42,476 Reputation points
0 answers

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
Microsoft Technologies based on the .NET software framework.
3,572 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
asked 2021-07-08T06:07:43.213+00:00
AmaraCode LLC 261 Reputation points
0 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
asked 2021-07-07T16:06:34.243+00:00
kamalasubha muthukumar 41 Reputation points
commented 2021-07-08T02:07:02.637+00:00
Timon Yang-MSFT 9,576 Reputation points
1 answer One of the answers was accepted by the question author.

Remove SUB on line

Hi, In C#, how to remove SUB on the line below?

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
asked 2021-07-05T04:17:23.253+00:00
Peter_1985 2,586 Reputation points
accepted 2021-07-05T07:35:07.35+00:00
Peter_1985 2,586 Reputation points
0 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,612 questions
asked 2021-06-30T18:58:17.22+00:00
Markus Freitag 3,786 Reputation points
commented 2021-07-05T03:01:20.977+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-06-27T09:16:09.463+00:00
Schachter, Alon 96 Reputation points
accepted 2021-06-27T16:45:51.95+00:00
Schachter, Alon 96 Reputation points
2 answers One of the answers was accepted by the question author.

Issue to namespace

Hi, How to resolve issue below? The type or namespace name 'ExchangeService' could not be found

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
asked 2021-06-25T13:53:28.237+00:00
Peter_1985 2,586 Reputation points
commented 2021-06-26T13:32:28.697+00:00
Castorix31 82,751 Reputation points
1 answer

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
Microsoft Technologies based on the .NET software framework.
3,572 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
asked 2021-05-10T09:12:47.46+00:00
Prabs 1 Reputation point
answered 2021-06-10T18:24:51.277+00:00
Bruce (SqlWork.com) 60,361 Reputation points
2 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-05-26T07:45:48.57+00:00
Joel Bloch 1 Reputation point
answered 2021-06-06T17:39:34.17+00:00
ApplicGate 11 Reputation points
0 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-05-20T05:41:19.97+00:00
Murugesesan Govindaraj 1 Reputation point
commented 2021-05-21T07:26:24.807+00:00
Timon Yang-MSFT 9,576 Reputation points
1 answer

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-05-20T03:52:25.44+00:00
RICKY GAI 1 Reputation point
answered 2021-05-20T05:40:05.883+00:00
RICKY GAI 1 Reputation point
3 answers One of the answers was accepted by the question author.

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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,498 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,446 questions
asked 2021-05-12T17:57:28.527+00:00
Matthew Turner 21 Reputation points
commented 2021-05-17T14:40:23.083+00:00
Matthew Turner 21 Reputation points
3 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
336 questions
asked 2021-05-04T15:39:05.247+00:00
Hichem 26 Reputation points
commented 2021-05-13T01:07:53.787+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
1 answer

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
Microsoft Technologies based on the .NET software framework.
3,572 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
asked 2021-05-01T07:52:50.023+00:00
SUBRAMANIAN Prabhakaran 1 Reputation point
answered 2021-05-03T02:19:56.367+00:00
Cheong00 3,471 Reputation points
1 answer

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
asked 2021-04-26T05:52:33.053+00:00
Prabs 1 Reputation point
answered 2021-04-26T10:54:33.043+00:00
Cheong00 3,471 Reputation points
0 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-04-24T20:27:13.2+00:00
Rudolf Meier 291 Reputation points
0 answers

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
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-04-24T16:39:36.053+00:00
Rudolf Meier 291 Reputation points
2 answers One of the answers was accepted by the question author.

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…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
asked 2021-04-11T02:29:22.25+00:00
Saga 426 Reputation points
accepted 2021-04-24T01:22:33.92+00:00
Saga 426 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,477 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
962 questions
asked 2021-04-18T00:33:05.077+00:00
Felicity Winter 21 Reputation points
answered 2021-04-22T09:40:19.43+00:00
Felicity Winter 21 Reputation points
1 answer

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…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,612 questions
asked 2021-04-19T06:44:12+00:00
Arathi Jinde 6 Reputation points
commented 2021-04-21T08:44:12.99+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor