Tuesday, January 5, 2021

Creating an Azure DevOps mirror for Gitlab repository

Intro

I have a GitLab repo that I'm working and I need to create a mirror of that repo to Azure DevOps. Here's the step.

Prerequisite

Gitlab and Azure Devops account
Already existed Gitlab Repository

Steps

Azure DevOps

  1. Create a “New Project” in Azure DevOps with the same name as GitLab repository
    *note: Must be a New Project. NOT a new repo under another project



  2. Got to “Repos” and “Generate Git Credentials”.

  3. Copy the  Clone URL and Password

GitLab

  1. Open Project. Go to “Settings -> Repository -> Mirroring repositories”. Expand it.


  2. Paste the DevOps “Clone URL” into the GitLab “Git repository URL” field

  3. Paste the DevOps “Password” into the GitLab “Password” field

  4. Click “Mirror Repository” button, then “Update Now” button




Done





Monday, February 19, 2018

Asp.net Type 'Web User Control" is not defined.

Problem with intellisense in Visual Studio 2017 when adding a Web User Control dynamically.


To solve this problem, just try registering your control at the page you are adding it to.

Wednesday, January 3, 2018

Asp.Net Identity SQLite Provider on Empty Web Forms project

  Previously, I installed the Asp.Net Identity SQLite on a non-empty Web Form Project. This time, I'll try installing it on an Empty Web Form project so I can minimize the Nuget packages installed and I can learn which Nuget packages it depends on.


Firstly, I create a ASP.NET Empty Web Site targeting .Net Framework 4.7.1



Then on Nuget Package Manager for Solution, Uninstall all the Nuget Packages. This will make it truely empty Web Form project.

Monday, January 1, 2018

Asp.Net Identity SQLite Provider on a Web Forms project

  Mostly, the tutorial or sample I found from googling was for MVC and C#. So I decided to install the Asp.Net.Identity.SQLite by following the guide from MVC then modify it to work for Web Forms then convert it to VB.

I'm using Visual Studio 2017.

Create a new ASP.NET Web Forms Site project, targeting .Net Framework 4.7.1


Sunday, December 31, 2017

Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found






Happens when installing nuget package System.Data.SQLite.Core.

Easy solution on my part:

  1. Copy the 'SQLite.Interop.dll' from the "packages\System.Data.SQLite.Core.1.0.106.0\build\net45\x86\SQLite.Interop.dll"
  2. Paste it into the 'Bin' folder

I am using Visual Studio 2017, Webform project targeting .net 4.5

Tuesday, May 24, 2016

Run Program as Administrator programmatically

I need to run a program as Administrator programmatically.

Fortunately googling this was so easy. Found this one:
Run Program As Administrator in vb.net


Open the Project Properties then click on View Windows Setting button. It will open the app.manifest file.

Using Squirrel to replace ClickOnce

Installing Squirrel

While I was searching for a way to make ClickOnce deploy easier after all hardship about certificate and identity errors, I bump into Squirrel.Windows. Thanks to Travis's comment in this question: Deploy a ClickOnce application without signing. Even though no one answer that was Marked ans Answer (yet at the time), the comments really help to give me an idea about some alternatives.

I create a new project that target a .Net Framework 3.5 and start searching for it in the Manage Nuget Packages for Solution.Current latest stable version is 1.4.0. I install it right away.