Browsed by
Tag: Visual Studio

How to create a NuGet package

How to create a NuGet package

A few days ago I looked into setting up our private NuGet server as a way for us to share code, instead of using git sub modules for example. Turns out setting up the server is as simple as starting an empty web project in visual studio and adding the NuGet server package: http://nugetserver.net/. On a side note, if you are already using team city, you can use this as a NuGet repository, just select create artifact with the package…

Read More Read More

Unit Testing with NUnit

Unit Testing with NUnit

A very short intro and comparison between the MSTest framework and the very popular NUnit framework. For a more complete list of differences between the frameworks, see: https://xunit.github.io/docs/comparisons.html. Getting started Add a new project to your visual studio solution. I found 3 different ways to get started: Add a unit test (MSTest) project to your solution, remove the references to MSTest and add the nuget package NUnit to your project. Start with an class library and add the nuget package:…

Read More Read More

Enable web deploy on IIS 8 running on 2012 R2

Enable web deploy on IIS 8 running on 2012 R2

Web deploy enables a developer (or anyone with sufficient privileges) to build and deploy a website using visual studio or via the command line using MSBuild. An example of such a build command can be found in my previous posts. We use it mainly in our continuous integration environment to automatically build, test and deploy new code if a new commit to the git master branch was detected. Installation via web platform installer First you will need administrator rights to…

Read More Read More

How to deploy a web site project using msbuild

How to deploy a web site project using msbuild

A website project differs a bit from a normal web application. The main thing is that it doesn’t require compilation, so how do I deploy this then? A “normal” msbuild deploy will look like this: cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 MSBuild “C:\STAGING\website\\.sln” /p:DeployOnBuild=true /p:PublishProfile=ToProduction /p:WebPublishTargetsVersion=11.0 /p:username= /p:password= If you try to use this on a web site project (provided you created a solution file for it), you will get following error: The precompilation target directory cannot be in the same tree as the…

Read More Read More

Coolblue sites and LastPass

Coolblue sites and LastPass

If you are familiar with the password manager LastPass and if you are a customer of the electronics store coolblue, then you will have probably noticed that while shopping around on this site you get send to a bunch of different domains, depending on what you want to buy. Last I counted they had 161 domain names for their different stores. While LastPass will save the credentials for the site coolblue.be, it won’t fill in those credentials at ssdcenter.be for…

Read More Read More