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: UncategorizedTagged: 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

  • Debug and fix the z-index bug in IE6 and IE7

    Internet Explorer 6 and 7 has a really really annoying bug that makes it really hard to use z-index. I won’t go into any specifics about exactly what is causing this and so on because others have already done that. I just want to tell you that I found this awesome jQuery script that injects z-index that

    Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
    0
  • Signing a request to set up a custom Amazon CloudFront Distribution with C#

    I love most of Amazon’s Web Services (AWS). CloudFront is their CDN service and they have an awesome feature that lets you host your files on your server and then Amazon automatically grabs the files from your server and puts them on their CDN. This makes it possible to easily modify your files without having

    Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
    0
  • Use your IIS logs with WCAT

    I just want to write this down so I do not forget it. I found this article that describes how to convert your IIS logs to a script that you can run with WCAT. http://theether.net/kb/100128 I had to change the HOST header to the script that was generated. And as you can see you can

    Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
    0
  • SEO: How the Panda update affected AlternativeTo

    This Monday we noticed a sudden drop in traffic from Google.com on AlternativeTo.net. I and my colleague have tried to figure out why all week and finally we found the answer. In the Google Webmaster Blog, there is a post about how Google is deploying its new spam filter (named “Panda”) to all English-speaking markets. And that

    Posted by Judy Alvarez Posted on February 28, 2022February 28, 2022
    0
  • Issues when you upgrade WordPress plugins and core on ISS 7.5

    I have had lots of issues with upgrading WordPress plugins and the core WordPress engine on my IIS 7.5 server. The problem has been that you try to upgrade the plugin, you get a fail notice AND the plugin is simply disabled and you lose permission to the folder where the plugin was located. Then

    Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
    0
  • Using an external SMTP server to send mail via different addresses in Gmail

    There is an awesome feature in Gmail that makes it stand out from many other webmails and it’s that you can specify an external SMTP server so that you can send mail from other e-mails. I understand this is an advanced feature that not so many people use but it has a major flaw. If

    Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
    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
  • Debug and fix the z-index bug in IE6 and IE7
  • Signing a request to set up a custom Amazon CloudFront Distribution with C#
  • Use your IIS logs with WCAT
  • SEO: How the Panda update affected AlternativeTo
  • Issues when you upgrade WordPress plugins and core on ISS 7.5

COPYRIGHT © 2022 - Codepolice