333 questions with .NET CLI-related tags

Sort by: Updated
1 answer

Error scaffolding Identity Fails the second time after using CLI code generator

Hi I ran the code generator once to scaffold the login and register pages. Then I ran it again because I needed to scaffold the password page but it wouldn’t build and I got errors. I am using vs studio for Mac and the cli commands to scaffold pages. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,492 questions
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,539 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 questions
asked 2023-04-29T19:25:41.21+00:00
ThunderBox 0 Reputation points
answered 2023-05-01T01:36:33.9666667+00:00
Zhi Lv - MSFT 32,131 Reputation points Microsoft Vendor
4 answers

Read app.config values in .Net 6 console

Can somebody tell me how can I read my connection strings in ths app.config file in a .net 6 console <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,756 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 questions
asked 2022-06-28T13:40:00.27+00:00
Salam 26 Reputation points
commented 2023-04-28T21:19:49.7466667+00:00
Justin Hull 0 Reputation points
0 answers

How to build with dotnet for linux-arm64 on a windows 11 x64 PC?

Hi, I have a C# source code (from Terraria/tModLoader (https://github.com/tModLoader/tModLoader/wiki/tModLoader-guide-for-contributors)) that is originally built for x86/x64 and I would like to compile it to linux-arm64. The project is originally set to…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 questions
asked 2023-04-23T03:24:43.46+00:00
ikki 10 Reputation points
commented 2023-04-24T08:00:13.4833333+00:00
Jack J Jun 24,496 Reputation points Microsoft Vendor
1 answer

Missing Package Management Console in Visual Studio 2022

Recently I installed the Visual Studio 2022 for Mac. The version is 17.3.6 (build 20). However, when I create a new .NET 6 web application, I can't find the Project Management Console at the bottom line. I refer to the website…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,030 questions
asked 2022-10-10T14:02:35.5+00:00
Miko Wen 1 Reputation point
commented 2023-04-17T19:32:23.7133333+00:00
2 answers

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.
333 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,800 questions
asked 2022-03-09T00:13:45.8+00:00
cyy 21 Reputation points
answered 2023-03-31T15:20:17.12+00:00
cyy 21 Reputation points
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.
333 questions
asked 2022-12-27T15:59:13.78+00:00
Sergio Topete 16 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
.NET
Microsoft Technologies based on the .NET software framework.
3,756 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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,800 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,150 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 80 Reputation points Microsoft Employee
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

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,446 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.
13,576 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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 43,896 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
.NET
Microsoft Technologies based on the .NET software framework.
3,756 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,492 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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,150 questions
asked 2023-01-30T05:50:44.7+00:00
mc 4,296 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
mc 4,296 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.
333 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,673 questions
asked 2023-01-26T05:11:08.6633333+00:00
Ero Min 41 Reputation points
accepted 2023-01-26T08:58:15.8366667+00:00
Ero Min 41 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
.NET
Microsoft Technologies based on the .NET software framework.
3,756 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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,150 questions
asked 2023-01-06T07:01:41.377+00:00
mc 4,296 Reputation points
commented 2023-01-23T09:55:36.52+00:00
Jiachen Li-MSFT 30,686 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,751 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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,800 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,150 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,756 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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,150 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 30,686 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,756 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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,150 questions
asked 2023-01-06T02:42:35.543+00:00
mc 4,296 Reputation points
answered 2023-01-06T17:08:16.907+00:00
Bruce (SqlWork.com) 63,341 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.
5,004 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 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.
333 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,704 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.
333 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,800 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 30,686 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.
333 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,800 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.
333 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,800 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,756 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,492 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
333 questions
asked 2022-12-17T11:34:42.237+00:00
mc 4,296 Reputation points
commented 2022-12-21T09:20:07.36+00:00
Lex Li (Microsoft) 5,492 Reputation points Microsoft Employee