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 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…
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…
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 …
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…
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 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…
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; } …
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. …
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…
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…
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…
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…
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…
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…
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
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) { …
How to fix c++ Compiler Error C2483 in managed code
And I also defined unmanaged
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?
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…