TFS and Post-Commit - dvcs

Does TFS 2010 have an SVN Post-Commit event ?
I want to run a script or an app or do stuff every time a developer checks in something. I've looked over the internet but didn't find something about this.

You will need to create (and publish) a web service and subscribe to the event. DotNetCurry has a decent article on the mechanics of wiring up the event.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=330&AspxAutoDetectCookieSupport=1

Related

How do I create an .exe (or similar) for a VS15 VB.net website?

I was asked by my client to build a basic website in Visual Studios 2015 that allows them to view mapping relationships between data. The entire thing is fully functional and tested. It is connected to a local MS Access database since it only needs to be a basic intro product.
The issue I am having is that the client requested the application as a .exe file so they can take it throughout the company and raise more funding for the project. I can't seem to find any options to build the program as an .exe or anything similar to that. VS15 seems to only want me to use Azure, which we do not have the funding to purchase. The solution to this does not need to be pretty, but it does need to be functional and portable. I developed the program on a PC, but the client has a Mac and wants to use that for the demos.
What do I need to do in order to give the client what they want without having to purchase something else or as for a server to run the website on? Is there any way I can allow the client to use the application without needing to run the entire program?
Please feel free to ask for any additional detail, as needed.
Thanks for your help!
-WS
The comments are correct - that's not exactly how this works. When you're hitting "play" in Visual Studio, it's using IIS Express by default: https://msdn.microsoft.com/en-us/library/58wxa9w5(v=vs.120).aspx
Your best bet will be to use that: https://learn.microsoft.com/en-us/iis/extensions/introduction-to-iis-express/iis-express-overview
However that is only for the "web server" part - you'll still need to deploy your application like you would another asp.net project - it will not be an executable though, it'll be served up as compiled html / js files and vb, etc
Once you have IIS express setup and running, you'll be able to hit that website like you do when debugging (http://localhost:SOMEPORT)

How to be informed of mouse/keyboard events in a non-focus application?

I must implement a master application that starts other applications. If the user does not interact with the computer during a given time, the master application is supposed to kill the current slave application (only one can be started at a time).
So, for this I need to detect user actions (keyboard, mouse) knowing that the master application has no more the focus. But I do not know how to do this. I'm under Visual C++ 2017. And I'm using Qt 5.9.1 for the GUI.
On Windows documentation I have seen some posts about "hook" functions. But I do not know if (and how) I can use it for this particular purpose.
Thanks for your help
OK,
Finally I found the solution. Hook functions correspond to me needs. I found the perfect example for my problem: https://code.msdn.microsoft.com/CppWindowsHook-06957865

Execute code in Visual Studio on schedule and automatically

I have web app code in VS2010 that is manually executed every night. One of the developers manually runs the code in VS, when the web page opens, presses a few buttons etc.. and executes the code to get our required results. How can we automate this process so as to eliminate any human element. Ideally, I am looking for a way to have the code execute automatically at a given time during the day. What is involved in getting something like this to work?
A WCF service is a possible solution:
http://msdn.microsoft.com/en-us/library/ms734712.aspx
Windows has scheduled tasks which is good at... scheduling tasks.
Do you (or plan to) have a big test of GUI tests? There are entire tools dedicated to GUI automation testing. I'd recommend looking into one of those if this is going to be a big part of your overall test strategy.
If this is a one-time thing, you could schedule the running of a simple C# application that hosts a Web Browser control, that points to your web site. In this sense, the Web Browser control acts as your browser. You can send JavaScript commands to it etc.
Web Browser documentation:
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
Another alternative is to schedule an AutoHotKey script to simulate the key pressing and mouse clicks. This works well. I used to use it to rack up Farmville points (no joke).
http://www.autohotkey.com/
A Windows service seems better in the sense of "scheduled" and "no intervention." A WCF service is still, by default, listening and waiting for interaction (hosting the service). Or just schedule a simple app or script to do what you need.
Can you tell us a little more about this process? My initial recommendation would be to transition that code from a web application into a command line utility and then use windows task scheduler. If for some reason there are heavy dependencies within that web app that make that impossible I would consider taking those button click events and turning them into web services that you could then call programmatically from a command line application.

SSRS 2005 Report Functions

In SSRS 2005 (and 2008 I would imagine) you can provide functions to the reports, and if I'm not mistaken, whole assemblies as well, which allow you to perform some type of work before the report is rendered.
Does anyone know at what point in the ASP.NET page life-cycle is this function compiled and / or executed?
I would tend to think it's executed On_Render, but that's obviously just a guess.
Does anyone have any insight, and does a SSRS 2008 Report same functionality, and if so, at what point that that execute?
Custom code and report assemblies are compiled in the life-cycle of the report and not necessarily in the life-cycle of your page.
That means, in the usual asynchronous and remote processing case, it happens on the report server, after your page is rendered and sent to the browser.
From peeking with Reflector, I'd guess when not using asynchronous processing, it is happening during PreRender.
If your custom report assemblies need more than Execute permission, be sure to deploy them with appropriate permissions on the report server or, if processing locally, to call the AddTrustedCodeModuleInCurrentAppDomain method.

Viewing event log via a web interface

I'd like to be able to view the event log for a series of asp.net websites running on IIS. Can I do this externally, for example, through a web interface?
No, but there are two solutions I would recommend:
Adiscon EventLogger is a third-party product that will send your Windows EventLog to a SQL database. You can either send all events or create filters. Of course, once the events are in a SQL database, you can use any of the usual tools to create a web interface.
You can use ASP.NET's HealthMonitoring configuration section to configure .NET to send all ASP.NET-related events directly to a SQL database. This covers exceptions, heartbeats, and a host of other event types. The SqlWebEventProvider is a cinch to setup.
Do you want to know if you can home-roll something or are you looking for an app you can get off the shelf?
I'm not a Windows guy, but I think Microsoft's MOM/SCOM solution will probably let you view the event log over a web UI - probably really heavy and expensive if that's all you need though.
A quick google found http://www.codeproject.com/KB/XML/Event_Logger.aspx which shows that you can get in if you want to roll your own... also an MS tool on msdn
Sorry I can't be more help

Resources