322 questions with .NET CLI-related tags

Sort by: Updated
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,362 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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,118 questions
asked 2023-01-06T02:42:35.543+00:00
mc 3,641 Reputation points
answered 2023-01-06T17:08:16.907+00:00
Bruce (SqlWork.com) 55,366 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,594 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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.
322 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,569 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.
322 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,228 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 26,426 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.
322 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,228 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.
322 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,228 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,362 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,154 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
asked 2022-12-17T11:34:42.237+00:00
mc 3,641 Reputation points
commented 2022-12-21T09:20:07.36+00:00
Lex Li (Microsoft) 4,662 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.
322 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,362 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,154 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
asked 2022-12-19T14:45:16.737+00:00
mc 3,641 Reputation points
commented 2022-12-20T18:00:43.467+00:00
Bruce (SqlWork.com) 55,366 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.
12,680 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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,228 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.
322 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,228 questions
asked 2022-12-15T12:31:19.617+00:00
Dineshkumar.S 446 Reputation points
commented 2022-12-16T07:14:07.31+00:00
Dineshkumar.S 446 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.
322 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,228 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,118 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 26,426 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.
322 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,118 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.
322 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,526 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.
327 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.
322 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,228 questions
asked 2022-12-06T09:29:02.637+00:00
mc 3,641 Reputation points
answered 2022-12-08T12:59:52.96+00:00
Karen Payne MVP 35,031 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,362 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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,228 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,118 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,286 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.
322 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,526 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
1 answer

Scheduled task executes but not calling console exe

I have created an console application on my personal windows 10 laptop (having admin rights) using .Net Framework 4.5.2 which performs conversion of .csv/.xls/.xlsx file to .pdf. Application contains configurable paths in config file and also a class…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
asked 2021-07-19T15:13:53.983+00:00
Chetan Navale 11 Reputation points
commented 2022-12-01T06:36:14.857+00:00
상준 이 251 Reputation points
1 answer One of the answers was accepted by the question author.

Create and run a new cloud function when a VM is not connected to any network

I have a question regarding func command. I am doing a test to see if we can create and run a new cloud function when a VM is not connected to any network. (the Azure Core Tools is already installed) After disconnecting the VM from network, when I…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,238 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
asked 2022-11-14T21:20:56.603+00:00
Mohammed, Zahir 46 Reputation points
commented 2022-11-29T14:59:37.477+00:00
Mohammed, Zahir 46 Reputation points
0 answers

Localization or globalization of the windows application

I am working on a windows application which need to localized to spanish language . Once localization is done while testing the tool screen reader the contents are available in spanish visually but when we chewck them with screen reader thne contents are…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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,228 questions
asked 2022-11-24T04:33:27.867+00:00
Dineshkumar.S 446 Reputation points
commented 2022-11-29T08:49:00.687+00:00
Dineshkumar.S 446 Reputation points