TypeScript build system for Sublime Text 2

Recently I decided to create a small Node.JS project. And I like strongly typed languages. I know I can’t get the full strong typing in JavaScript and having the power of it. So I decided to use TypeScript for the project. I chose Sublime Text 2 as an editor, I am used to use Visual ...

How to Use SVG Glyphs in XAML

How to Use SVG Glyphs in XAML
Using SVG glyphs on web pages for custom icons is brilliant (see Font Awesome, GlyphIcons, …). The SVG glyphs are encoded using path expression to describe the vector graphics. But wait! You can use the path expression to define a graphic element in XAML (which means WPF, Silverlight, WindowsPhone) too! If you want to use ...

Building solution with multiple NuGet package projects on TeamCity

Building solution with multiple NuGet package projects on TeamCity
Let’s say you have a solution with projects in it and some projects represents NuGet packages. I know it is not ideal, but the NuGet package project are really small and I didn’t want to create solution for each individual project. And also they are share some code. And I didn’t want to publish all ...

Sharing NuGet repository across multiple solutions II

Second step: Fixing the HintPath of referenced assemblies All distributed assemblies from the NuGet package are added as references to the project. NuGet sets the HintPath of the reference with relative path (relative to the packages directory). When using a shared repository as described in previous post this brings some problems. Problem with CI builds ...

Sharing NuGet repository across multiple solutions

I’ll start with be summary BenPhegan posted to a thread I started on NuGet CodePlex site. Developers are historically used to having a local common library location for all their binary dependencies (ie all hintpaths reference “d:\common” or something similar). Often this library is controlled centrally and xcopy/robocopied to all developers machines to provide commonality ...

Data-driven Knockout views II

Last time I posted a code snippet with description of data driven Knockout views. I have modified and simplified it and added support for forEach binding and the type member of ViewModel class can return a function that is evaluated for every item in collection This brings even more flexibility, the view model itself can ...

Data-driven Knockout views 1

I’m using Caliburn.Micro in my Silverlight and WPF projects. I fell in love with Caliburn automagic – view locator, auto binding, etc. For my NodeJS project I was looking for JavaScript library supporting MVVM pattern and I found KnockoutJS. Knockout has very nice feature called binding with a simple way of implementing your custom binding. ...

NuGet pack error “Assembly outside lib folder”

When I was working on a NuGet package I noticed that some DLLs (that were not supposed to be placed there) were copied into the content subdirectory of the package. Added file 'content\lib\Microsoft.Practices.EnterpriseLibrary.Common.dll'. And that also caused an issue: Issue: Assembly outside lib folder. Description: The assembly 'content\lib\Microsoft.Practices.EnterpriseLibrary.Common.dll' is not inside the 'lib' folder and ...

VSIX manifest error “Value does not fall within the expected range.” 2

I was working on a project with VSIX installer and the compilation was failing with Error 2 Error trying to read the VSIX manifest file "obj\Debug\extension.vsixmanifest". Value does not fall within the expected range. without any additional info. I have found an online XML validator that validates the XML against XSD schema. The XSD schema ...

How I failed using MSTest on TeamCity without Visual Studio 4

How I failed using MSTest on TeamCity without Visual Studio
I was setting up a continuous integration for one project. I have configured a build step in TeamCity to build the solution and another to execute unit tests using MSTest. And that failed – the reason was Visual Studio was not installed on that machine. I googled around and found some useful posts: MSTest 2010 ...