337 questions with .NET CLI-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

System.AccessViolationException when adding a new item in Visual Studio using IVsProject.AddItem

I'm encountering a System.AccessViolationException while working in Visual Studio 2022. The error occurs specifically when I try to add a new UI or CLR item to a project using the IVsProject.AddItem() method. Below is the full exception log: Aplicación:…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,181 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,758 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,166 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,861 questions
asked 2024-10-16T21:32:58.7566667+00:00
Julius 20 Reputation points
accepted 2024-10-28T18:06:14.2033333+00:00
Julius 20 Reputation points
0 answers

Cannot programatically create subscription

![Error-image] (/api/attachments/e4531a14-2bbe-4145-bb35-ef665d46065c?platform=QnA)Hi, I am having issues programatically creating MCA subscriptions. we want to use terraform to create the subscription but keep getting the following error. (See image) I…

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,672 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
373 questions
asked 2024-08-21T12:25:38.19+00:00
Whitmore, Rachel 0 Reputation points
commented 2024-10-17T14:07:59.4+00:00
Pranay Reddy Madireddy 365 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Azure CLI ERROR when add extensions: An error occurred. Pip failed with status code 1

Hi everyone I'm trying to add extensions in Azure CLI with the command: az extension add --name subscription however I get the following message: An error occurred. Pip failed with status code 1. Use --debug for more information. Here the debug…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,955 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,579 questions
asked 2023-12-01T05:55:00.18+00:00
Carlos Ochoa Medrano 40 Reputation points
commented 2024-10-15T05:08:31.9833333+00:00
mardi septianto 0 Reputation points
1 answer

Error NETSDK1061 encountered when run "dotnet publish"

Hi All, Good afternoon. Let me first give a big picture on my project. The main project is using .NET8.0, and it has 2 dependencies. One of the dependencies is using netcoreapp2.1, which is also the one trigger the error NETSDK1061.   I encountered…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,166 questions
asked 2024-09-30T07:12:41.6933333+00:00
Song Xu (NCS) 0 Reputation points
commented 2024-10-11T02:49:24.4033333+00:00
Jack J Jun 24,516 Reputation points Microsoft Vendor
0 answers

High DPI with embedded WinForm UserControl in a Win32 application.

Apologies in advance as this question is a long shot and somewhat obscure. I have a C++ application I maintain. It embeds two .NET 4.x WinForms User Controls as panels in its Win32 window with: My_Control.CreateInstance(L"My…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,901 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,484 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
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,648 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2024-09-27T11:30:11.23+00:00
Robinson 146 Reputation points
commented 2024-09-27T14:29:38.39+00:00
Robinson 146 Reputation points
2 answers

Can't install MAUI workload properly on Mac with .NET SDK 8

I’m having trouble installing the .NET MAUI workload on my Mac running macOS. Despite trying different versions of the .NET SDK (8.0.401 and 8.0.400), Visual Studio Code consistently fails to detect the installation.   I was removing all .net…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,581 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2024-09-01T10:44:10.3333333+00:00
Paweł Baturo 0 Reputation points
commented 2024-09-13T07:14:30.21+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,306 Reputation points Microsoft Vendor
1 answer

.NET MAUI ios Application Crashes When Published. Can Someone Guide me?

I maintaining .NET MAUI application that are created using .NET MAUI Blazor hybrid application project. now wwe need to publish it on Apple Appstore and there also some platform specific codes for android as well. so what i did is create .NET MAUI multi…

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,595 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,581 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2024-08-15T03:17:51.58+00:00
Gayantha Anushan 0 Reputation points
edited the question 2024-09-06T02:04:30.67+00:00
XuDong Peng-MSFT 10,741 Reputation points Microsoft Vendor
3 answers

Windows Event Log with .Net 5

I have a .Net 5 console application and want to write messages to Windows EventLog. System.Diagnotics.EvengLog does not work also can't add Microsoft.Extensions.Logging.EventLog as getting error as it is targeted to .net framework 4.5.1 Why is it so…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2021-08-24T14:35:26.297+00:00
Rajarajacholan Krishnamurthy 21 Reputation points
commented 2024-09-05T11:37:06.1+00:00
- - 0 Reputation points
1 answer

Change "Current Code Page" in VS Debug Console to 437 (OEM - United States)

How can I change the code page in my Microsoft VS Debug Console to 437 (OEM - United States) ? Current code page is : 936 (ANSI/OEM - Simplified Chinese GBK) Microsoft Visual Studio Community 2022

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2022-04-15T07:08:50.587+00:00
Stay_ 102x 6 Reputation points
commented 2024-08-25T11:45:15.6366667+00:00
Erland Sommarskog 112.7K Reputation points MVP
2 answers

how to install visual studio 2010 ultimate on windows 11 and can we open the .net framework 4.0 solution in 2022 visual studio?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,581 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,166 questions
asked 2024-08-24T14:11:39.0433333+00:00
shafeeq v v 0 Reputation points
commented 2024-08-24T18:18:42.9233333+00:00
Nitish kumar 0 Reputation points
1 answer

17:57:58 [Apache] Status change detected: stopped 17:57:58 [Apache] Error: Apache shutdown unexpectedly. 17:57:58 [Apache] This may be due to a blocked port, missing dependencies, 17:57:58 [Apache] improper privileges, a crash, or a shutdown by a

i want to error to operate localhost

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,604 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
159 questions
asked 2024-07-27T12:34:17.0833333+00:00
poojitha donthamsetty 0 Reputation points
answered 2024-08-02T17:14:23.9833333+00:00
Bruce (SqlWork.com) 66,226 Reputation points
2 answers

how to use SendInput in .net?

How to use SendInput to send mouse click event? this is my code: [DllImport("user32.dll")] public extern static uint SendInput(uint inputs, INPUT[] pInputs, int cbSize); [StructLayout(LayoutKind.Sequential)] public struct INPUT { public…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,484 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,166 questions
asked 2024-07-30T05:27:45.38+00:00
mc 4,576 Reputation points
answered 2024-07-30T10:45:59.6833333+00:00
Manpj 0 Reputation points
3 answers

MFC application Crashes intermittently in Clr.dll with internal error in the .Net Runtime ( Windows 10)

We have a C++ MFC application with COM interop for Managed C# code. Recently migrated to Windows 10 from windows 7. Application crashes intermittently pointing to below information in crash dump Exception code: C0000005 Exception Info: The…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,697 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,758 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,166 questions
asked 2021-12-01T10:22:50.493+00:00
Kumar Manish 1 Reputation point
answered 2024-07-30T06:44:56.5866667+00:00
durongzeskype 20 Reputation points
3 answers

mscoree.dll missing on Windows arm64

I am porting a .NET project to arm64. There are several C++/CLI assemblies in the project. I am using the latest version of Visual Studio (17.10), Windows SDK 10.0.22000.0 and .NET Framework 4.8.1 natively on a Windows arm64 computer. I am able to build…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,181 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2024-07-10T14:53:48.82+00:00
akum-6884 0 Reputation points
edited a comment 2024-07-17T09:16:08.8466667+00:00
akum-6884 0 Reputation points
3 answers One of the answers was accepted by the question author.

Self-Contained Single-File does not produce a single file

I have a small .Net 5 console application with no dependencies on third party components. I have set it up to publish as a self-contained single-file. However, in the publish directory is the EXE file and four DLLs. The EXE file will not run without…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2021-03-03T11:31:44.523+00:00
Andrew Fraser 101 Reputation points
edited a comment 2024-07-12T08:55:42.37+00:00
Jayant Gupta 0 Reputation points
0 answers

C:\Users\HMIS>dotnet list sdks The command could not be loaded, possibly because: * You intended to execute a .NET application: The application 'list' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found.

every time i try to install SDKs in mywidnows machine its not going through even to open my already created app to open...using System; using System.Reflection; [assembly:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,908 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
793 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,166 questions
asked 2024-07-11T22:43:23.2333333+00:00
Isaac Mhango 0 Reputation points
commented 2024-07-12T07:10:22.7333333+00:00
Sander van de Velde | MVP 32,811 Reputation points MVP
1 answer

How to create a PS/CLI script for file share capacity alert with Action group

I want to create an alert for file capacity of files and I need an action group as well. Problem is that the storage account has 90 files and i need for each fileshare 1 Alert. I want to try using a script to avoid taking a lot of time doing it…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,310 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,579 questions
asked 2024-07-04T10:14:43.54+00:00
Sutheswaran, Suwhathi 70 Reputation points
answered 2024-07-05T15:47:27.8666667+00:00
Rich Matheisen 46,806 Reputation points
0 answers

i try to get the info in postgresql of the endpoint

i try to get the info of the endpoint by this sdk call : list(PostgreSQL(token, subscription_id).private_endpoint_connections.list_by_server("tommy","testtommy1")) the problem i get this as err: and the problem the endpoint info…

Azure Database for PostgreSQL
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 questions
asked 2024-06-23T08:04:23.3666667+00:00
Tommy Mordehay 0 Reputation points
edited a comment 2024-06-26T07:45:55.4033333+00:00
Tommy Mordehay 0 Reputation points
2 answers One of the answers was accepted by the question author.

How read excel file and save into database

Hello guys, Is there any tutorial reading excel files and inserting them into a database with a .net core console application? Thanks in advance.

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,166 questions
asked 2021-11-07T16:43:33.453+00:00
Cenk 1,021 Reputation points
commented 2024-06-18T20:10:20.5066667+00:00
Elento, Richard 0 Reputation points
1 answer One of the answers was accepted by the question author.

C++/CLI breakpoints not stopping

I try to debug an extension for Visual Studio (2019/2022) that I wrote in C++/CLI. Now... the extension itself works. The only problem is, that I cannot jump into the code while it is executing. The breakpoints never stop. But, when I create a C#…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
337 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,758 questions
asked 2024-05-14T00:10:57.0833333+00:00
Rudolf Meier 291 Reputation points
commented 2024-05-19T12:12:03.1966667+00:00
Rudolf Meier 291 Reputation points