Skip to content

Codepolice

  • ⤫

Make the Git GUI appear after you publish a Web Project in Visual Studio 2010

Posted by Judy Alvarez Posted on February 28, 2022March 2, 2022
0

A couple of months ago I started to use GIT as my primary Source Control. To be honest I hadn’t used any “real” source control at all before for this project. I only used an online backup service that had some basic version control on a file-to-file basis.

But I love GIT. It’s really simple and everything works more or less exactly as you expect it to do. But there aren’t many tools out there that integrate well with Visual Studio. There are Git Extensions for Windows and there is a project called Git Source Control Provider. The problem with Git Extensions is that it doesn’t do that much. It only adds a menu in Visual Studio where you can execute some commands. Git Source Control Provider on the other hand looked like the perfect tool for me. But for some reason, it didn’t sync correctly with my Git Repository and I got the feeling the project was a bit too immature to be trusted.

I always forget to commit

So, my biggest problem is that I always forget to fire up the command line / GUI and commit the changes I do to the code. When you use SVN, TFS you get those nice little icons on all the files in Visual Studio so you are constantly reminded of your changes. This was what Git Source Control Provider promised but as I said, didn’t work for me.

I would be happy just to be reminded every time I publish my website to the FTP that “Hey! Don’t forget to commit your changes!”. And just to be clear. This is a solution for a one-man shop that doesn’t need “continuous integration” and loads of complicated stuff. I like my super simple solution where I just publish my project to my FTP and boom done!

My stupid hack

I found this post on Stack Overflow that explains how to run an MS Build target after you do a publish from Visual Studio. You just have to add this target at the end of your .csproj file. Your publish method must be a “WebDeploy”. I tried with “File System” but that didn’t work. The “WebDeploy” method was much faster anyway.

    

That’s more or less all there is to it. This will fire up the GIT GUI and your Publish task won’t finish until you close that program. Of course, you could probably just run the console instead if you prefer that.

Categories: JavascriptTagged: ajax controls in asp net, angular asp net, asp .net application, asp .net cms, asp .net interview questions and answers for experienced, asp .net mvc tutorial, asp net ajax controls, asp net and c#, asp net core 5 tutorial, asp net core charts, asp net developer interview questions, asp net development service, asp net framework architecture, asp net icons, asp net mvc authentication, asp net mvc generate pdf, asp net mvc interview questions and answers asked by accenture, asp net mvc model, asp net pdf library, asp net web forms vs mvc, asp net website templates, bootstrap template free download for asp net mvc 5, building a website with react and asp net core, caching in asp net mvc, hospedagem asp net, list view in asp net, microsoft asp net certification, migrate to asp net core, when postback occurs in asp net, www asp net

Post navigation

Previous Previous post: Import blog from Tumblr to WordPress can totally destroy your blog if you do it wrong
Next Next post: Copy a folder with Robocopy

Related Posts

  • Ways to remove event listeners

    #​624 — February 3, 2023 Read on the Web JavaScript Weekly You’ve Got Options for Removing Event Listeners — Unnecessary event listeners can cause all sorts of odd problems so it’s good to clean them up when you don’t need them anymore. How? There are several approaches and Alex looks at their pros and cons. (once

    Posted by Posted on February 3, 2023
    0
  • SQL in your JavaScript

    #​472 — February 2, 2023 Read on the Web AlaSQL.js 3.0: Isomorphic JavaScript SQL Database — A SQL database you can use in Node.js and the browser. The interesting bit, for me, is how it opens up the idea of using SQL to query JavaScript objects – as in this example. “The library adds the

    Posted by Posted on February 2, 2023
    0
  • Astro 2.0 and TypeScript 5.0 beta

    #​623 — January 27, 2023 Read on the Web JavaScript Weekly Astro 2.0: The Next-Gen ‘Islands’-Oriented Web Framework — 2.0 includes hybrid rendering (mixing of SSR and SSG outputs), type safety for Markdown & MDX, and an upgrade to Vite 4.0. Astro is worth exploring when performance is key as it works with popular frameworks

    Posted by Posted on January 27, 2023
    0
  • Automating the desktop with Node

    #​471 — January 26, 2023 Read on the Web Nut.js 3.0: Use Node for Desktop Automation — Take control of your desktop environment (Windows, macOS or Linux) from code with control over keyboard and pointer, plus you get some image matching possibilities too. Open source but with optional sponsor-only extension packages. GitHub repo and what’s new

    Posted by Posted on January 26, 2023
    0
  • Why document.write() is bad

    #​622 — January 20, 2023 Read on the Web JavaScript Weekly Why Not document.write()? — Many moons ago, document.write was a mainstay of client-side JavaScript code, but it’s long been considered a bad practice – why? Harry digs in, noting that it “guarantees both a blocking fetch and a blocking execution, which holds up the

    Posted by Posted on January 20, 2023
    0
  • We’re going on a memory leak hunt

    #​470 — January 19, 2023 Read on the Web Fixing a Memory Leak in a Production Node App — Kent encountered a variety of weird memory and CPU usage spikes in his Node-powered app and decided to figure out what was going on. This post walks through his complete journey, with plenty of side problems

    Posted by Posted on January 19, 2023
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • Ways to remove event listeners
  • SQL in your JavaScript
  • Astro 2.0 and TypeScript 5.0 beta
  • Automating the desktop with Node
  • Why document.write() is bad
https://flatlogic.com/generator
COPYRIGHT © 2023 - Codepolice