Microsoft Q&A

.NET CLI

290 questions

A cross-platform toolchain for developing, building, running, and publishing .NET applications.

Browse all .NET CLI tags

290 questions with .NET CLI-related tags

Sort by: Updated
1 answer

winget upgrade command error

I keep getting the following error message when try to use winget ugprade trying researching the error but no luck : "Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
asked 2022-12-27T15:59:13.78+00:00
Sergio Topete 11 Reputation points
answered 2023-03-21T20:45:22.72+00:00
Fabian Wilson 0 Reputation points
3 answers

Microsoft.mshtml throws exception in platform targert x64 but works fine in x86 in windows 10 machine

I was trying to read the html elements using Microsoft.mshtml.dll and this is working fine when the project platform target is x86. Its able to extract the html elements, but when I tried to change the platform target as x64 its getting me exception as…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
981 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.
7,566 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2022-03-10T12:19:48.193+00:00
Dilip kumar Pal 1 Reputation point
edited an answer 2023-03-09T18:16:00.97+00:00
Tanya Solyanik 0 Reputation points Microsoft Employee
1 answer

MSMQ in .NET 6

In.NET 6 (C# 10), I'm creating a console/worker service. In order to store and retrieve messages, I intend to use Microsoft Message Queuing. Like when one service queues up a message and another service retrieves it from the queue. Recently, I read that…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,833 questions
asked 2022-07-22T11:13:38.573+00:00
Nikhil Kumar 21 Reputation points
commented 2023-03-07T23:02:27.4233333+00:00
James Haring 0 Reputation points
2 answers

How to fix error in visual studio 2019

The code .DataSource = ds.Tables[0]; doesn't work for me. What might be the error?? In Microsoft vs 2019

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,116 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,323 questions
asked 2023-01-30T16:17:13.57+00:00
Kenny Robby 0 Reputation points
answered 2023-01-31T06:33:50.4466667+00:00
Olaf Helper 27,211 Reputation points
1 answer One of the answers was accepted by the question author.

how to get parameter name in c#?

public string BuildParameter(object[] para) { var parameters = ""; for (var i = 0; i < para.Length; i++) { if (para[i] != null) { …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,833 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
981 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 questions
asked 2023-01-30T05:50:44.7+00:00
打玻璃 1,591 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
打玻璃 1,591 Reputation points
1 answer

Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'

I have a .NET Console 6 to access API data. The application works on my desktop (Windows 10) but an error "System.Net.Http.HttpRequestException: The SSL connection could not be established" is thrown when running the application on Windows…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 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.
7,566 questions
asked 2022-03-09T00:13:45.8+00:00
cyy 21 Reputation points
commented 2023-01-27T21:07:09.8766667+00:00
Pamani, Praveen Kumar 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix c++ Compiler Error C2483 in managed code

And I also defined unmanaged

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 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.
2,751 questions
asked 2023-01-26T05:11:08.6633333+00:00
Ero Min 21 Reputation points
accepted 2023-01-26T08:58:15.8366667+00:00
Ero Min 21 Reputation points
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 CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
981 questions
asked 2023-01-06T07:01:41.377+00:00
打玻璃 1,591 Reputation points
commented 2023-01-23T09:55:36.52+00:00
Jiachen Li-MSFT 11,801 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…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 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.
7,566 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
981 questions
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,283 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 CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
981 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 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 11,801 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 CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
981 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2023-01-06T02:42:35.543+00:00
打玻璃 1,591 Reputation points
answered 2023-01-06T17:08:16.907+00:00
Bruce (SqlWork.com) 31,336 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…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,792 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.
290 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,972 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
0 answers

Extender Setup Installation Stuck

Installation of Linksys Extender Setup stuck.?

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
asked 2022-10-04T04:51:30.827+00:00
Tommy Wilson 1 Reputation point
commented 2023-01-03T06:33:17.62+00:00
Dietician Ankita 1 Reputation point
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.
290 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.
7,566 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 11,801 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…

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.
7,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
asked 2022-12-21T18:44:08.537+00:00
Reza Jaferi 271 Reputation points
commented 2022-12-27T15:14:43.033+00:00
Reza Jaferi 271 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.
290 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.
7,566 questions
asked 2022-12-14T03:49:58.633+00:00
Reza Jaferi 271 Reputation points
commented 2022-12-23T02:41:21.717+00:00
Reza Jaferi 271 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 CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,833 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2022-12-17T11:34:42.237+00:00
打玻璃 1,591 Reputation points
commented 2022-12-21T09:20:07.36+00:00
Lex Li (Microsoft) 3,286 Reputation points
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.
290 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 CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,833 questions
asked 2022-12-19T14:45:16.737+00:00
打玻璃 1,591 Reputation points
commented 2022-12-20T18:00:43.467+00:00
Bruce (SqlWork.com) 31,336 Reputation points