325 questions with .NET CLI-related tags

Sort by: Updated
1 answer

what is `LPSERVICE_MAIN_FUNCTIONA ` in .net?

I want to use c++ func in .net there is a parameter LPSERVICE_MAIN_FUNCTIONA what is it in .net?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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 2023-01-06T07:01:41.377+00:00
mc 4,006 Reputation points
commented 2023-01-23T09:55:36.52+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
2 answers

Show/Hide Console or HowTo Write to Console in a Windows Application in .NET 5.0

Hi There I plan to make a mixed application, means, the user can start them to open a black console window or to open it with a WPF-GUI. The user can select with a start option like -console or -window. Thus I created a WPF-application and set the…

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,705 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 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-02-05T11:36:34.287+00:00
Thomas Gössi 1 Reputation point
answered 2023-01-20T19:07:27.1533333+00:00
Rustamxon Rahimov 0 Reputation points
0 answers

Portability analyzer tool reports not compatible for Array.Reverse example but Microsoft API documentation has it in the examples

I have created .NET core 2.0 project and added the below code int nMonths = DateTimeFormatInfo.CurrentInfo.Calendar.GetMonthsInYear(DateTime.Now.Year); int[][] months = new int[nMonths][]; Array.Reverse(months); (complete code is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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 2023-01-06T10:23:32.69+00:00
Mallesh_MS 1 Reputation point
commented 2023-01-09T02:02:50.863+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

how to use ServiceBase in .net core 3.1?

can not use ServiceBase in .netcore 3.1 right? I want to create windows services in .net core 3.1 how to do it?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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 2023-01-06T02:42:35.543+00:00
mc 4,006 Reputation points
answered 2023-01-06T17:08:16.907+00:00
Bruce (SqlWork.com) 60,201 Reputation points
2 answers

Incorrect Console display, although the code is good

Hello, my first question here, but got a really strange error. Asked my teacher but he was surprised too, and could not repeat this. So I have a code with no errors, works fine on other computers, but mine almost always us with an incorrect…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,814 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 questions
asked 2023-01-04T23:14:32.99+00:00
Paulius Paulaitis 1 Reputation point
answered 2023-01-05T07:12:59.947+00:00
Paulius Paulaitis 1 Reputation point
1 answer One of the answers was accepted by the question author.

Unable to compile .net 6.0 projects in VS 2022

I am unable to compile .net 6.0 projects in VS 2022 (version 17.4.3). I see error message that - MSB3971 The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 questions
asked 2023-01-03T15:52:56.48+00:00
Datta Kulkarni 21 Reputation points Microsoft Employee
accepted 2023-01-03T20:35:34.583+00:00
Datta Kulkarni 21 Reputation points Microsoft Employee
1 answer

Adding distinct value to each CSV file given my code

Hello. I have the following code which seperates my Records.CSV files to two different CSV files based on COMPID (-> a key given in a dictionary I created): (the first 3 files): records -> sepereated into two above : anyways, I…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 questions
asked 2022-12-15T10:46:27.967+00:00
gal mor 141 Reputation points
commented 2022-12-29T06:41:27.327+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How can we be sure that the number of iterations of commands in "Parallel.ForEach" matches the number of iterations that were set for it?

Hi guys, In my article, I want to compare the speed of sequential processing to parallel processing in various conditions, so in one example, I want to convert the following sequential command to parallel, but after converting it to parallel, it…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 questions
asked 2022-12-21T18:44:08.537+00:00
Reza Jaferi 331 Reputation points
commented 2022-12-27T15:14:43.033+00:00
Reza Jaferi 331 Reputation points
3 answers One of the answers was accepted by the question author.

How can we be sure that the number of iterations of commands in "Parallel.For" matches the number of iterations that were set for it?

Hi guys, In my article, I want to compare the speed of sequential processing to parallel processing in various conditions, so in one example, I want to convert the following sequential command to parallel, but after converting it to parallel, it seems…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 questions
asked 2022-12-14T03:49:58.633+00:00
Reza Jaferi 331 Reputation points
commented 2022-12-23T02:41:21.717+00:00
Reza Jaferi 331 Reputation points
2 answers

How to create async thread?

public async Task Update() { //code. } how to run it in thread? I can not use like this: var thread =new Thread(Update); it must be void.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 questions
asked 2022-12-17T11:34:42.237+00:00
mc 4,006 Reputation points
commented 2022-12-21T09:20:07.36+00:00
Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
0 answers

Modifying a key to a dictionary and writing it back to file

I have a text file that's read into a dictionary using a .net 6.0 console app. What's the best solution for modifying one or more of the keys, write the dictionary back to the original file. Example: Current Text read into a dictionary …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 questions
asked 2022-12-20T21:34:09.553+00:00
George Tyrebyter 46 Reputation points
2 answers

how to get the assembly code of the code?

I want to get the assembly code of the code how to do it using .net? If I have one code: int i = 10; how to get its assembly code mov eax 10; ret;

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 questions
asked 2022-12-19T14:45:16.737+00:00
mc 4,006 Reputation points
commented 2022-12-20T18:00:43.467+00:00
Bruce (SqlWork.com) 60,201 Reputation points
3 answers

creating csv based on certain key of db table

hello, I have the following code: which will generate the following table : into a csv file: I want to split that csv into different CSVs using COMPANY_ID column as identifier. for example, first file will be named…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,183 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 questions
asked 2022-12-12T08:26:43.14+00:00
gal mor 141 Reputation points
answered 2022-12-20T14:39:58.923+00:00
gal mor 141 Reputation points
0 answers

System.NullReferenceException: 'Object reference not set to an instance of an object.'

In my windows application while trying to sync my app with live server I am getting this error can anyone suggest me how to solve this problem . Thanks in advance using c#

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 questions
asked 2022-12-15T12:31:19.617+00:00
Dineshkumar.S 451 Reputation points
commented 2022-12-16T07:14:07.31+00:00
Dineshkumar.S 451 Reputation points
0 answers

How to handle mutiple calls at OnReceive method in Actor class in AKKA.NET using c#

Hi, I have an C#.net core 3.1 console application. I have developed Actor model in my application using Akka.Net How to handle multiple calls at OnReceive method (below example: Method_A() invoked multiple times simultaneously, this will making…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 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 2022-12-15T10:54:55.8+00:00
Prabs 1 Reputation point
commented 2022-12-16T05:24:43.077+00:00
Jiachen Li-MSFT 28,001 Reputation points Microsoft Vendor
1 answer

Net Framework missing or blocked

In an efforts to enable an MVC IIS site to come up, someone suggested uninstall and reinstall of Net Framework. The removal of NET Framework causes Server Manager to disappear and control panel or "Turn Features On and Off" search in the…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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-02-22T12:26:31.14+00:00
J Longstreet 41 Reputation points
commented 2022-12-14T18:10:08.757+00:00
白石ユナリ 1 Reputation point
2 answers

Unit testing C++ CLR

What is the best approach to write Unit Tests for C++/CLR? We have a solution that includes C++ native, C++/CLR and C#.Net code. When I try to add a C++/CLR reference to a C#.net Unit Test project, it compiles, but when I run the tests it says…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,608 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 2022-11-08T11:49:22.9+00:00
Günther Humer 1 Reputation point
answered 2022-12-13T16:41:03.227+00:00
Günther Humer 1 Reputation point
2 answers

How to execute task in certern time every day?

I want run a function at certern time everyday . the programe is loop and will check every 1 minutes. I will read record in database and get one time such as "08:00" for another is "09:00" and I want to run function…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 questions
asked 2022-12-06T09:29:02.637+00:00
mc 4,006 Reputation points
answered 2022-12-08T12:59:52.96+00:00
Karen Payne MVP 35,291 Reputation points
3 answers

How to create pub-sub model in C#?

Hi, I have an C#.net core 3.1 console application. I need to develop pub-sub model in my application. How to create pub-sub model in C#? Can you share me some sample code for pub-sub model in C-Sharp code? Regards, Prabs

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,562 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 2022-11-29T07:09:26.193+00:00
Prabs 1 Reputation point
answered 2022-12-03T07:02:50.267+00:00
Jack J Jun 24,486 Reputation points Microsoft Vendor
4 answers

C++/CLI project with C++20 Standard

Hello, I got this compilation warning from a CLI project with C++20 standard setting: 1>c1xx : warning C4857: C++/CLI mode does not support C++ versions newer than C++17; setting language to /std:c++17 Will there be a support for C++20 and…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
325 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,608 questions
asked 2022-03-17T06:01:50.923+00:00
Barias, Abe [AUTOSOL/SYSS/MNL] 46 Reputation points
answered 2022-12-01T10:15:17.24+00:00
Wim 6 Reputation points