How to access the team build completed event in VS2010 - visual-studio-2010

I would like to make a VS2010 plugin, which notifies me when a team build completed/failed. So far so good, but I have no idea how I can access these information programatically.
Thanks for help,
Eny

You can use the TFS eventing system. If you want to use WCF, see this blog post on how to achieve that.

Maybe the source code of this Visual Studio sample plugin helps you to build your plugin and how communicate with the source control provider.
Hope helps!

Related

Can I Check in/Check out files directly from my sharepoint site to TFS? How?

Is it possible to check in /check out files to Team foundation server from share point site without going through Visual studio? Is this Integration possible?
No, it's impossible. This can't be achieved for now. The ways how to add a file in source control, please refer Adding a file to version control from MSDN.

How to get the code of a Dynamics CRM online solution?

My case is the next one: We have a Dynamics CRM online 2016 with some solutions that a third party created and I need to bring the whole code of one solution, I need to see the code of all the plugins, workflows and Javascript files that the solution has.
I tried in Visual Studio creating a new Dynamics CRM project and then select "New Visual Studio Solution for Dynamics CRM". Then I connected to our Dynamics CRM server and I chose the solution that I wanted. The problem is that with these steps only brings me the structure of the solution with its plugins and workflow but it doesn't bring me the code (plugins and workflows code) that is what I actually wanted. I need to modify a plugin that is already done by the third party company.
I will appreciate if someone can help me with my question. I'm new in the community and any advice will be appreciate.
New Dynamics CRM project
Plugins are compiled and stored on the disk/database as dlls. So unless you own the source code, there is no way to achieve what you are trying to do.
What you can try doing though it to use a decompiler like dotpeek to extract the source if it is not obfuscated. You can then copy the source and make necessary changes, deploy the plugin and disable the other plugin.
Have you considered reaching out to the third party vendor? They might be able to handle your issue a lot better than trying to extract the source through a complex method only to find out it still will take several days to understand their approach properly. You would think Occam's Razor would apply here.

WebSetup Installer for configuring IIS settings

I have created a websetup using Visual Studio for deployment of a web application.
How can i get it to setup additional IIS settings ?
Like setting up wildcard, virtual directory, permissions, etc.
Basically stuff you can control using the inetmgr.
I would like to automate the configuration as much as possible.
Users always make mistake!
Thanks!
See my answer to this question. You can create a custom build task that can automate many of the IIS configuration steps you mentioned.
Decided to go with WIX 3.5 installer.

How to set up source control in VS2010

I want to set up source control for my project, but it seems like I need a server for this. I've never done this before, and I couldn't find anything helpfull yet.
Is there any way to host a server locally so Visual studio can use it? Or do you know any online (free) servers I can use?
By the way, if source control is not actually what i should use for keeping track of changes in my files, please suggest a better option.
Thanks in advance.
There's a lot of solutions to this problem.
A simple way to go is use subversion.... get tortiseSVN, and you can make a local repository ( you don't need to run any kind of server software ).
Then get something like Ankh SVN for Visual Studio
All free software!
You need to pick a source control provider, such as Team Foundation Server, Perforce, or GIT.
You can then install a server on your machine, install a Visual Studio plugin (not applicable for TFS), and connect to the server.
If you have your VS2010 licence through a MSDN subscription, then you have a licence to TFS, see: http://www.ewaldhofman.nl/post/2009/11/02/License-costs-of-Team-Foundation-Server-2010.aspx

build notification in visual Studio 2008\2010 - WMI etc

I want to be notified when a build has been completed\failed in visual studio and I DO NOT want to use pre\post build steps, I want an external process or VS plugin that will count the number of builds.
So is there anyway to achieve this using something like WMI or other such technology?
I'm not interested in third party libaries, I want to write a plugin for visual studio.
There isn't. You can either use the pre/post build steps, or make an add-in. For the latter look for EnvDTE.BuildEvents. Let me know if you need a sample.
Any particular reasons you don't want to use the pre/post build steps, you can pretty much do anything with them, i.e. send mail, increment the file version information in AssemblyInfo etc.
The TFS PowerToys for 2008 or 2010 includes a build notification tool.
I am using this free VS plugin for Build status.
You can find it here.

Resources