326 questions with .NET CLI-related tags

Sort by: Updated
1 answer

az functionapp deployment constantly taking a long time

I'm deploying a series of Function apps. They all rely on a common library, and simply expose the triggers. I'm using a Linux machine with an agent to zip deploy each function using the 'az functionapp deployment' command. For some reason, 1 function…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-08-17T12:56:59.803+00:00
Rob Collie 21 Reputation points
answered 2021-08-30T03:32:33.51+00:00
MayankBargali-MSFT 69,946 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to remove all .Net framework versions from Windows servers (2012,2016,2019)?

Hi, I would like to know is it possible to remove all .Net framework versions (1.x to 4.x) from Windows servers (2012,2016,2019). We are removing the EOL versions of .Net core (1.x,2.x,3.0) so we would like to know can we remove all the .Net…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
719 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,136 questions
asked 2021-08-20T14:10:39.873+00:00
Tushar Patil 21 Reputation points
accepted 2021-08-25T06:12:00.513+00:00
Tushar Patil 21 Reputation points
1 answer One of the answers was accepted by the question author.

C# Is this a correct use of Delegate and Callback method using delegate

This code perfoms well. I'm busy learning delegates in C# and merely want to know whether this is the correct use of Delegate and Callback method using delegate. using System; namespace DelegatesCallbackRealDemoApp { class Program { …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,572 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 questions
asked 2021-08-23T14:20:08.79+00:00
Lancis007 41 Reputation points
commented 2021-08-23T18:29:50.223+00:00
Lancis007 41 Reputation points
1 answer

HTTP and HTTPS / The HTTP request was forbidden with client authentication scheme 'Negotiate'. (403) Forbidden.

Hi, Can someone please kindly help young lady with low skills in setting WebServices with a kind detailed advice, please. I am getting an error: System.ServiceModel.Security.MessageSecurityException: 'The HTTP request was forbidden with client…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,572 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,344 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 questions
asked 2021-08-17T10:24:57.253+00:00
Janet90 1 Reputation point
commented 2021-08-18T08:51:07.17+00:00
Jiayao Wu-MSFT 186 Reputation points Microsoft Vendor
0 answers

How to download a file from http and https in C# on windows server 2012 and windows 7

I'm trying to download this file AnyDesk.zip from a URL in windows server 2012 and windows 7 CS Code : using System; using System.Net; namespace ConsoleApp3 { class Program { public static string saveLoc = @"AnyDesk.zip"; …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 questions
asked 2021-08-17T04:26:37.05+00:00
Mojtaba_Hakim 281 Reputation points
commented 2021-08-18T07:52:24.433+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

[Visual Studio] How to enlarge font size of function info when I hover on it?

Hi, font size of function info is too small, what setting shall I choose to enlarge it? Thanks!

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-08-17T05:03:59.273+00:00
Zhu, Shenli 21 Reputation points
commented 2021-08-17T08:00:34.193+00:00
Zhu, Shenli 21 Reputation points
1 answer

.Net Code 3.1 appsettings.json reloadonchange problem

Hello guys, I have this .net core 3.1 console app that is running on a windows task scheduler. The problem is if I change the appsettings.json, it does not make any changes. How can I fix this? Here is my Program.cs: class Program { static…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,136 questions
asked 2021-08-12T12:42:06.967+00:00
Cenk 1 Reputation point
answered 2021-08-12T14:26:04.937+00:00
Michael Taylor 50,586 Reputation points
1 answer

.net core 3.1 console app serilog sinks email configuration

Hello guys, I would like to read the email configuration from serilog.json but couldn't figure it out. Here is my main: class Program { static async Task Main(string[] args) { Log.Logger = new LoggerConfiguration() …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-08-11T06:06:19.217+00:00
Cenk 1 Reputation point
answered 2021-08-12T01:39:21.483+00:00
Daniel Zhang-MSFT 9,621 Reputation points
2 answers

How to find daemon application version using .Net Core 3.1 with systemd?

Hello Team, I have a C# .NET Core 3.1 daemon application which is running in RedHat Linux. Application output type is console application How to find version of the application when i run the following command testApp.service -v Could you please…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 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,136 questions
asked 2021-08-05T11:41:25.693+00:00
Prabs 1 Reputation point
answered 2021-08-10T10:27:29.237+00:00
Prabs 1 Reputation point
1 answer

MSBuild to publish Web Application project VS2019

We are trying to build and publish our Web Application Project using MSBuild (using a separate Build machine from our developers!) I got MSBuild working and publishing on a developer machine with Visual Studio 2019 installed. However, when cloning the…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,372 questions
asked 2021-08-03T18:15:09.233+00:00
Owen Mortensen 1 Reputation point
commented 2021-08-09T09:35:46.98+00:00
PengGe-MSFT 3,341 Reputation points
2 answers

Colour inline previews for ARGB codes

Hi, I'm developing a C# application, that has a very long list of ARGB colour codes. I was wondering if there's a way to get an inline preview of the colour in the Visual Studio IDE. The codebase was inherited from a older project, and is poorly…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,821 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-08-04T15:56:36.06+00:00
pwagner 1 Reputation point
commented 2021-08-09T06:23:43.16+00:00
PengGe-MSFT 3,341 Reputation points
1 answer

How to check application already running in C#.Net core with systemd?

Hello Team, I have a C# .NET Core 3.1 daemon application which is running in RedHat Linux. Application output type is console application I have one new requirement. When i run the sudo systemctl start testapp.service command in second time, the…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 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,136 questions
asked 2021-08-04T12:57:01.063+00:00
Prabs 1 Reputation point
answered 2021-08-04T15:44:06.083+00:00
Bruce (SqlWork.com) 60,361 Reputation points
2 answers

How to give input parameters to systemctl start testapp.service using C#.Net Core and systemd?

Hello Team, I have a C# .NET Core 3.1 daemon application which is running in RedHat Linux. Application output type is console application I have one new requirement. When i run the sudo systemctl start testapp.service command, application has to…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 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,136 questions
asked 2021-08-02T10:24:22.667+00:00
Prabs 1 Reputation point
answered 2021-08-03T06:13:25.12+00:00
Prabs 1 Reputation point
0 answers

Fetching user settings Properties.Settings.Default taking longer ~50sec

I have the code below that reads user settings in a .net 4.5.2 console application and looks like it is taking about 50 sec to return. var someSettings = Properties.Settings.Default.SomeSettings This only happens in one production environment(Windows…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-07-29T18:49:32.367+00:00
AllGood 1 Reputation point
commented 2021-07-30T06:05:35.703+00:00
Timon Yang-MSFT 9,576 Reputation points
0 answers

Progrmmatically changing mmc view mode

I have my own admin tool in mmc? In mmc view I have html button when click on the button, I need to change the view between filter mode and detail mode? Using javascript how to achieve this? In C++ we have IResultData::setviewmode function but in…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,612 questions
asked 2021-07-21T09:43:14.18+00:00
abc abc 351 Reputation points
2 answers

How to solve Permission Denied issue - Socket Exception in C#.Net core 3.1

Hi Team, I have an C#.Net core 3.1 console application which is running on RedHat Linux. The application is developed with SNMP Protocol Communication. There is no issue, When i run my application at root user in Linux. But when i run my…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 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,136 questions
asked 2021-07-19T10:10:26.723+00:00
Prabs 1 Reputation point
answered 2021-07-20T01:08:45.523+00:00
Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
0 answers

Use custom paramter passed in "dotnet build" command

I am trying to find a custom parameter when running "dotnet build" as below : dotnet build -- -customParam Value However I do not know how can I access the "customParam" inside a csproject of the solution ? Like : <Target…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-07-16T15:25:42.16+00:00
babak fakhriloo 41 Reputation points
3 answers One of the answers was accepted by the question author.

What are my options? Calls from C++ C# DLL functions, how?

Hello, I have a C# DLL. I need to call these functions from C++ unmanaged application which is statically bound, no CLI is possible. What are my options? Maybe I don't need a CLI wrapper class. Maybe it is easier. Can you make sample for…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 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,572 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,612 questions
asked 2021-07-10T06:49:34.41+00:00
Markus Freitag 3,786 Reputation points
commented 2021-07-15T19:07:49.357+00:00
RLWA32 42,476 Reputation points
3 answers

.NET framework 4.7.2 to .NET core 3.1 Identical code, 10x SLOWER!

Hi, first time posting here, I'm really puzzle. My company have legacy .NET application and we plan to move to .NET core. While testing stuff I found the code slow. I did a minimal benchmark and it was 10x slower on my machine. The same identical…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-04-23T21:02:42.343+00:00
Jean-Claude Morin 1 Reputation point
answered 2021-07-09T16:32:30.793+00:00
Bruce Barker 801 Reputation points
0 answers

RestClient receiving no reponse

Hello, I have copied the RestSharp code from POSTMAN into a c# console application, but I am getting no response back (where POSTMAN was working fine). If I copy the URL into a browser, I get a JSON (error) response, so I am not sure what I am…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
asked 2021-07-07T16:04:03.177+00:00
Gerald Oakham 101 Reputation points
commented 2021-07-09T08:27:05.79+00:00
Timon Yang-MSFT 9,576 Reputation points