323 questions with .NET CLI-related tags

Sort by: Updated
1 answer

XamlCompiler.exe fails with code -1073741515 on GitLab CI

I am trying to set up CI on GitLab for my MAUI Project. My setup uses a Windows Runner with a Docker Container that uses the following .gitlab-ci.yml ` image: mcr.microsoft.com/dotnet/sdk:6.0 stages: - build build_job: stage:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,899 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,277 questions
asked 2022-12-12T17:46:42.843+00:00
Lucas 6 Reputation points
edited an answer 2023-07-08T19:50:39.39+00:00
Bruce (SqlWork.com) 56,686 Reputation points
2 answers One of the answers was accepted by the question author.

.NET MAUI on Windows without Visual Studio - How to make it work?

The macOS install example works perfectly, but when I try the same thing on Windows... no dice! First I tried dotnet build -f net6.0-windows on the raw template project and got NETSDK1135: SupportedOSPlatformVersion 10.0.17763.0 cannot be higher than…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,899 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
asked 2022-05-07T09:28:56.063+00:00
geronimus 41 Reputation points
edited an answer 2023-06-27T11:59:00.04+00:00
David Baker 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to identify SSL certificate of about to expire which used in Web Application OR Service fabric explorer which stored on KeyVault as well

How we can Identify SSL certificate is about to expire, which used in Web Application OR Service Fabric Explorer which stored on KeyVault as well.. We faced some issue every year we are using SSL certificate on web application and when it's expired…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,124 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,908 questions
asked 2022-02-13T13:42:19.797+00:00
Jignesh Vala 61 Reputation points
commented 2023-06-06T18:59:19.21+00:00
Rajesh S 26 Reputation points
0 answers

Skip project build multiple times in referenced projects

We want to reduce build time by skipping execution of referenced projects multiple times during compilation. Example: We have 10 projects for compilation. Each project has referenced with multiple projects. like project1 has referenced with 3,5,6,7 …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,270 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,277 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,150 questions
asked 2023-05-04T10:57:45.05+00:00
Sambasiva Rao Vankayalapati 0 Reputation points
commented 2023-06-02T08:12:53.81+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
2 answers

ServicePointManager.SecurityProtocol incorrect when called over COM?

The default value for ServicePointManager.SecurityProtocol, in a .NET 4.7.2 app, is supposed to be "SystemDefault", which is supposed to include tls 1.2 as far as I understand it. If I make a simple NET 4.7.2 console app and look at the…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
asked 2022-08-24T16:29:37.487+00:00
R P 6 Reputation points
answered 2023-06-02T05:59:11.7766667+00:00
Ben Graham 0 Reputation points
1 answer

How to do this in Visual Studio Testing Explorer?

I know I can do this when I run test via command line : dotnet test myproject.csproj /p:IsTest=true What if I want to pass that /p:IsTest=true when I run test via Visual studio's Test Explorer? How can I do this? The Goal: What I want to do is,…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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.
329 questions
asked 2023-05-23T07:31:38.3033333+00:00
Wasenshi Winkung 0 Reputation points
answered 2023-05-24T19:16:15.0766667+00:00
Wasenshi Winkung 0 Reputation points
2 answers

.net upgrade assistant command error :Package manager console running in execution mode continuously

@Anonymous @Anonymous @Anonymous @Anonymous Hello all, I was not sure who was the user in below .net conf event for upgrade assistant. So mentioned with wild guess. Please don't mind if any of you mentioned above are not part of that…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
asked 2022-11-25T16:50:07.827+00:00
Sanjay Narod 1 Reputation point
edited a comment 2023-05-19T04:20:38.67+00:00
Damien Dussart 0 Reputation points
1 answer One of the answers was accepted by the question author.

VB .NET project Compiles failed when use the Extension Function wrote by C++/CLI

I wrote a C++/CLI Assembly and use the [ExtensionAttribute],coding like this: using namespace System::Runtime::CompilerServices; namespace ExFunLibWithCli { public ref class ClassBase { public: int BaseFun() { return 32; } …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,277 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,537 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,578 questions
asked 2023-05-17T19:24:37.5366667+00:00
Mage Luzdia 20 Reputation points
accepted 2023-05-18T07:43:04.5933333+00:00
Mage Luzdia 20 Reputation points
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,188 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,396 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,016 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,395 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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.
323 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,296 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.
323 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.
970 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.
323 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,277 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.
323 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,395 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,277 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,125 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,270 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.
12,757 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
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 40,901 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,395 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,125 questions
asked 2023-01-30T05:50:44.7+00:00
mc 3,701 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
mc 3,701 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.
323 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,537 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,395 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,125 questions
asked 2023-01-06T07:01:41.377+00:00
mc 3,701 Reputation points
commented 2023-01-23T09:55:36.52+00:00
Jiachen Li-MSFT 26,671 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,676 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,277 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,125 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