318 questions with .NET CLI-related tags

Sort by: Updated
0 answers

Publishing with x64 runtimeidentifier (windows 11 framework), on arm64 machine

I've been trying to publish my .net maui application (sideloaded MSI), such that it would run on a Windows x64 machine. My development machine is a MacBook Pro (m3 chip), but I'm running a windows 11 VM (using parallels) - which (I believe) creates an…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,105 questions
asked 2024-03-07T21:32:59.7833333+00:00
sidabs 0 Reputation points
commented 2024-03-13T05:50:16.3333333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,071 Reputation points Microsoft Vendor
1 answer

Why does my .NET8 web API app throw FileNotFoundException: Could not load file or assembly ***.dll when accessing C++/CLI dll in Docker?

I need to use the .NET CLI in my .NET C# web application. I created a basic app for troubleshooting https://github.com/v-klepko/Sandbox When I run it locally on my machine it works without issues. However, when I run the app in a Windows OS Docker…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,472 questions
asked 2024-01-20T21:05:21.19+00:00
Volodymyr Klepko 0 Reputation points
commented 2024-03-12T16:49:32.7933333+00:00
P, Rajasekar 0 Reputation points
1 answer

Error in building .net source code with msbuild or visual studio with proxy

I am having issue in building a source code . It uses nuget public repo and private . both of them fails to build and gives error of certificate . i have tried adding config in nuget.config file but unable to find path to solution . Here is msbuild…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,482 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2024-03-06T06:08:12.9066667+00:00
commented 2024-03-11T06:28:22.07+00:00
Anna Xiu-MSFT 24,141 Reputation points Microsoft Vendor
0 answers

Error in building .net source code in visual studio with proxy in virtual machine

I am having issue in building a source code. It uses nuget public repo and private. both of them fails to build and gives error of certificate. Package 'System.Security.Cryptography.Csp 4.3.0' from source 'https://api.nuget.org/v3/index.json': SHA256…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,482 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2024-03-06T15:21:38.0266667+00:00
commented 2024-03-07T18:42:14.2+00:00
3 answers

Visual Studio 2022 won't connect to NuGet

Visual Studio 2022: [nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while sending the request. The underlying connection was closed: An unexpected error occurred on a send. Unable to read…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,482 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2024-02-18T15:42:31.7833333+00:00
Jayakumar R 0 Reputation points
answered 2024-03-05T16:59:03.59+00:00
Bruce (SqlWork.com) 53,251 Reputation points
3 answers

How do I enable docker for a .net application with dotnet cli/powershell?

Hi How do I enable docker for a .net application with dotnet cli/powershell? This is how I create my app: dotnet new sln -n blazortest dotnet new blazorserver -n blazortest dotnet sln add blazortest\blazortest.csproj How do I enable docker/Add docker…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,921 questions
asked 2023-05-22T11:50:20.3133333+00:00
Lelle 0 Reputation points
edited an answer 2024-03-05T05:49:24.9533333+00:00
Kesava Subhash Gullapudi 30 Reputation points
1 answer

Cannot reference System.Windows.Forms.DataVisualization in a console app

Hi, I'm in a Console App (.Net Framework) project and cant use windows.forms, I'm using a .Net Framework Console App because I was not able do it in a .Net Core app either. Specifically trying to call a class from…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,808 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2022-12-02T20:42:33.403+00:00
MM 6 Reputation points
commented 2024-02-20T13:38:43.0166667+00:00
Artur Garcia 0 Reputation points
1 answer One of the answers was accepted by the question author.

NU1102: Unable to find package Microsoft.Extensions.Logging.Abstractions with version (>= 8.0.0)

I get a problem from Microsoft.Extensions.Logging.Abstractions version 8.0.0  I get this problem: "NU1102: Unable to find package Microsoft.Extensions.Logging.Abstractions with version (>= 8.0.0)".  All I do is:  $dotnet new console Demo1…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2024-02-12T19:48:27.5166667+00:00
Nikolaj Ravn 20 Reputation points
commented 2024-02-13T10:35:13.08+00:00
Nikolaj Ravn 20 Reputation points
0 answers

C++/CLI dll could not be loaded in WinUI3 app

When I called (i.e. instanciated) my class object (e.g. MyTest) which is declared as a managed class in my C++/CLI dll, I saw the following error: System.IO.FileNotFoundException: 'Could not load file or assembly <MyTest>' I am sure that the…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,472 questions
asked 2024-01-10T02:35:05.9466667+00:00
Ueda Kunio(上田 邦男) 0 Reputation points
commented 2024-01-15T02:24:19.3066667+00:00
Minxin Yu 9,621 Reputation points Microsoft Vendor
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2022-07-22T11:13:38.573+00:00
Nikhil Kumar 21 Reputation points
answered 2024-01-08T09:01:50.92+00:00
Dennis van der Stelt 0 Reputation points
1 answer

No Access to the PartsUnlimited website

Who can I discuss the pre-requisite below with? The site in the pre-requisites instructions does not exist. https://microsoft.github.io/PartsUnlimited/testing/200.5x-Testing-SeleniumCodedUITestinVS.html Pre-requisites: • Visual Studio 2017 …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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.
321 questions
asked 2022-03-21T20:18:46.477+00:00
Crisci, Steve 1 Reputation point
commented 2024-01-06T16:36:24.5033333+00:00
Jan-Jaap Spies 0 Reputation points
1 answer

cli in c# How to catch an error of a required option

var languageOption = new Option<string>("--language", "file path and name") { IsRequired = true }; אז איך אני עושה שאם המשתמש לא מקיש את השפה זה לא יזרוק לן הודעת שגיאה ברירת מחדל אלא הודעת שגיאה שאני אחליט

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,053 questions
asked 2023-12-11T19:53:39.45+00:00
מממם 0 Reputation points
commented 2023-12-28T12:51:50.56+00:00
Jiachen Li-MSFT 25,356 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Deploy Azure function app with private endpoint results gateway error

I am trying to do ZIP deployment of azure function app that has private endpoint enabled. As a part of this, I created azure resources as follow: Function app with private endpoint enabled and disabled Allow public access on. Storage account with…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,075 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,067 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
444 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2023-12-05T05:25:23.88+00:00
SATYA PAVANKUMAR 40 Reputation points Microsoft Employee
accepted 2023-12-06T13:49:33.3966667+00:00
SATYA PAVANKUMAR 40 Reputation points Microsoft Employee
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,482 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,921 questions
asked 2023-12-01T05:55:00.18+00:00
Carlos Ochoa Medrano 20 Reputation points
accepted 2023-12-04T04:18:39.2733333+00:00
Carlos Ochoa Medrano 20 Reputation points
2 answers

Restore Azure SQL Managed Instance DB from One Server to Another

All, I need to automate the restoration of a few databases from a higher environment to a lower environment in Azure SQL Managed Instance. The databases are hosted in two different resource groups under the same subscription. Is there an out-of-the-box…

Azure SQL Database
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,402 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,921 questions
asked 2023-11-27T00:02:11.7666667+00:00
PS 356 Reputation points
answered 2023-11-27T05:06:33.41+00:00
ShaktiSingh-MSFT 12,851 Reputation points Microsoft Employee
2 answers

how to post Stream as parameter to dllImport function?

If the c++ function need Stream? how to post it ?

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,472 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,105 questions
asked 2023-11-20T06:23:33.02+00:00
mc 3,501 Reputation points
commented 2023-11-22T00:41:33.6633333+00:00
mc 3,501 Reputation points
1 answer

Allow the all Azure APIs on my firewall or proxy server

Hi all, We would like to know required firewall/proxy settings for accessing Azure using all of APIs. Especially we would like to know which URLs should we allow in our firewall/proxy. We are going to use third-party product that is developed some of…

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
205 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,194 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2023-11-13T01:51:57.76+00:00
Moog Ichiro 0 Reputation points
answered 2023-11-14T16:59:16.67+00:00
Bruce (SqlWork.com) 53,251 Reputation points
0 answers

how to fix dotnet core build issue on new jenkins windows agent server

Hi Team, I'm building new jenkins agent on windows 2019 server for dotnet core build . the dotnet SDKs installed are same as old server which is working fine . but on new server the post build package microsoft.extensions.dependency.model.dll is…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 questions
asked 2023-11-14T12:11:20.6166667+00:00
Raju, Ilaiyaraja 0 Reputation points
edited the question 2023-11-14T12:13:54.0266667+00:00
Raju, Ilaiyaraja 0 Reputation points
2 answers One of the answers was accepted by the question author.

Requested security protocol is not supported - at System.Net.ServicePointManager.ValidateSecurityProtocol(SecurityProtocolType value)

Hi, I am working on a project where I am using a .NET library in native C++ via C++/Clr. I can execute the code and the dialog from the .NET library starts correctly (https://www.bimcollab.com/en/resources/developers/developer-sdk/). But it seems that…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,472 questions
asked 2023-11-06T12:58:43.22+00:00
Michael Brunner 40 Reputation points
accepted 2023-11-06T19:57:08.31+00:00
Michael Brunner 40 Reputation points
0 answers

RTSP streams that use Media Foundation stop loading.

I'm writing an application that uses Media Foundation to read and parse RTSP streams. The stream will be in H.264 codec at 25 fps. I can get images using Media Foundation's SourceReader, but it stops at ReadSample() after about 1-2 minute. There's no…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
318 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,472 questions
asked 2023-10-31T07:00:03.3066667+00:00
MASAHIROTANAKA-1764 0 Reputation points
commented 2023-11-02T12:04:43.54+00:00
MASAHIROTANAKA-1764 0 Reputation points