Using the wpp.targets file together with Sitecore

Posted on

When working on Sitecore and deploying modules to a Sitecore site we only want to deploy artifacts that are ours and not from Sitecore. This way we want to keep the deployment packages clean and fast. To manage the contents and behaviors of deployment packages we can use a wpp.targets file. The project setup We use Unicorn to serialize […]

Exclude code from test coverage and code analysis

Posted on

When working with generated code, I don’t want this to affect my code coverage, code metrics or code analysis. All these statistics are interesting over code that really matters. To exclude generated code from these statistics you can use a few attributes. GeneratedCodeAttribute, this will exclude the code for code metrics and code analysis. It […]

WCF Dispose problem with using statement

Posted on

WCF client cannot be used inside a Using block because they may unexpectedly throw an exception. Even if you catch the exception, it is possible that a connection will be left open. Why is this IDisposable implementation so different from all the others in the .NET Framework. The first problem with WCF clients is that […]

Secure WCF communication with certificates

Posted on

When having hosted a WCF webservice that is secured by a certificate. Opening the service with a browser al the security stuff is handled by the browser. This situation is different. The caller is a .NET Click-once application, that is hosted near the webservice. This application has to handle the use of the certificate by […]

Create and host your own NuGet packages

Posted on

NuGet is a package manager that simplifies the process of discovering, installing and using third-parties .NET libraries. It is free to download, open source and you are able to create your own package and submit them. In this post I’ll show how to create your own package and host them yourself. Requirements Visual Studio 2010 […]