Posts

Donate

Failed To Push To The Remote Repository See The Output Window For More Details

Image
Hello, I recently encountered an error when pushing some of my ASP.NET Core MVC project to github that says "Failed To Push To The Remote Repository See The Output Window For More Details" as shown on the image below. After checking the Output Window by selecting GitHub from the dropdown list, a more explicit error message appears which is " git: 'credential-manager-core' is not a git command. See 'git --help'. ". I immediately checked my Git version that appears to be Git-2.37.1-64-bit which is slightly behind the recent update Git-2.45.0-64-bit . Replacing the old Git software with the current one solved the issue. Cheers!

How To Publish Visual Studio 2019 .NET Applications Or Projects To GitHub Using GitHub Extension

Image
Hello and Good day! Here's a step by step demonstration on how to upload or publish your C#, VB.NET or ASP.NET projects to Github using Visual Studio GitHub extension. Download and install the GitHub Extension for Visual Studio from the Visual Studio MarketPlace. After installing the GitHub Visual Studio Extension, navigate to the Team Explorer pane and click the Github Sign-in link. The default browser will launch the GitHub login page, that will require you to supply the username and password. When logged-in to Github, go back to your project, right click on the Project Solution and then click the Create GIT Repository . The Create a Git repository dialog will pop-up wherein you need to fill out the required information under the Create a new GitHub repository section. Once completed, click the Create and Push button. Go to your GitHub page and you may notice that the repository has been created along with the source code that's published. Cheers!

Visual Studio Error - This Emulator Does Not Have Hardware Acceleration Enabled In Xamarin And .NET MAUI

Image
Good day! After switching laptops and running some of my Xamarin Forms projects and simple .NET Maui applications, I encountered this error This Emulator Does Not Have Hardware Acceleration. Since this is a new laptop, I need to setup and enable the firmware virtualization and Hyper-V for Windows 10 operating system. First is I need to open the BIOS interface of the laptop and look for the Virtualization Technology under Security tab. By default, it's disabled Next is to enable it and then save changes. After modifying the BIOS settings for virtualization, you need to enable Hyper-V and Windows Hypervisor Platform checkboxes thru the Turn Windows Features On or Off application. Then restart your laptop or machine. Once I made those changes, I was able to run my applications using the Android emulator in Visual Studio. Cheers!

Visual Studio Code CSS Intellisense Not Working In CSS Files

Image
Hello, Lately, I was working on some CSS files that needs to be updated as per client request. It seems weird that the intellisense does not show it's dropdown of values for a specific style, as I remember this was working before. After doing some experiments and tests, here's the solution that worked for me in order for the CSS intellisense to work as expected on your Visual Studio Code editor. First is open settings tab using shortcut "Ctrl + ," or click the manage button at the bottom left of the editor. Expand the Text Editor menu and choose Files. Add items for *.css and css with values of css for each item. Once the steps are performed, this will resolve the CSS intellisense issue. Cheers!

Contoso University Application Written In ASP.NET Core MVC, Entity Framework Core And .NET 8

Image
Hello, Here's an upgrade of the Contoso University from .NET Core 3.1 to .NET 8. The only major change that I made was seeding the data to the database. The .NET Core 3.1 version used another class to initialize data and the logic was to loop through each the array variable and then add each array element to the DBContext object. After all array records have been added to the context object, call the context's SaveChanges() method. .NET Core 3.1 Seed Data Solution public static class DbInitializer { public static void Initialize(SchoolContext context) { //context.Database.EnsureCreated(); // Look for any students. if (context.Students.Any()) { return ; // DB has been seeded } var students = new Student[] { new Student { FirstMidName = "Carson" , LastName = "Alexander" , Enro...

Windows Forms CRUD (Create/Update/Delete) Application In .NET Core And Visual Basic

Image
Hello, Here's a Visual Basic tutorial on how to create a CRUD (Create/Update/Delete) application using Windows Forms In .NET Core. The same concept is applied to a Windows Forms application in .NET Framework. Most of the concepts and logic were borrowed from the C# version here except that a different programming language is used. First is to create a Students table on your SQL Server Database using the script below. USE [TestDatabase] GO /****** Object: Table [dbo].[Students] Script Date: 03/31/2014 14:11:36 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Students]( [ID] [int] IDENTITY (1,1) NOT NULL , [Name] [varchar](50) NULL , [Age] [int] NULL , [Address] [varchar](50) NULL , [Contact] [varchar](50) NULL , CONSTRAINT [PK_Students] PRIMARY KEY CLUSTERED ( [ID] ASC ) WITH (PAD_INDEX = OFF , STATISTICS_NORECOMPUTE = OFF , IGNORE_DUP_KEY = OFF , ALLOW_ROW_LOCKS = ON , ALLOW_PAGE_LOCKS = ...

Donate