Skip to main content

Posts

Showing posts from September, 2014

How to use IIS/WAS for calling a repeated task in C#

Ok, I found some useful information on the internet on the subject but some of it seemed... a bit wrong. In my company we have several WCF websites and i just wanted to just plainly use IIS and not start to use some windows services for cron-jobs. The task at hand was to periodically call a WCF method. here is what i did: Create a new project in Visual Studio. I chose a "WCF Service Application". Go to the project properties and change and remember the Assembly name. Create a new class "PreloadCode" like this: namespace XXX.WasAutostartTest { public class PreloadCode : IProcessHostPreloadClient { private static Logger Log = LogManager.GetCurrentClassLogger(); public void Preload(string[] parameters) { Log.Info("Preload called!"); //do your custom code here... like me calling the WCF service!

C# VS 2013 with Jenkins build server, git native on TFS 2013, installing git-extensions on windows server 2012 and http checkout including msbuild

C# VS 2013 with Jenkins build server, git native on TFS 2013, installing git-extensions on windows server 2012 and http checkout including msbuild What a title, huh? well, git still is a bit exotic under windows... if you don't use the default tools. though its MUUUUCH better than a few years back. now i wanted to set up a build server for my company, and i decided to use jenkins, mostly out of curiosity how it performs with .NET. after all i used it for 1 year with java source code and was very happy with it, now i wanted to see how it does with C#. but first i need to overcome several obstacles... here is my system: * a windows server 2012 * a TFS 2013 (express) that has our C# source code hosted in the (now-native) git repository. this means its accessible over HTTP * our source code uses nuget... install jenkins, install git plugins, install msbuild plugin, install git version 2.48 (NO EARLIER VERSION!!!!) and INSTALL EVERYTHING UNDER LINUX fo

howto create a VS 2013 multi-project solution and add it to TFS express 2013

HowTo create a visual studio 2013 multi-project solution and add it to team foundation server express 2013 => create an empty solution in visual studio => add the folder structure and the sub projects as desired => delete the solution file => create the solution file again; this time check the checkbox "add to source control"; choose GIT as the desired version control system => connect to the team foundation server in the team explorer of VS2013 => connect to the desired Team Project Collection (if none existent, then you have to create that one first on the TFS Administration Console => say under "Team Explorer - Connect " -> Create Team Project... and create it => now, clone the repository into an empty folder => close VS, copy the solution and the structure you just created into that newly created empty folder => now make a git commit and then push to origin for the branch master (i use GitExtensions for that)