This is a preview version of Cyotek's blog and may be missing functionality and/or unstable. Please visit for the current version of the blog.
If you encounter any problems using this preview site, please contact us with the details.

Posts tagged with 'visual studio'

Error VSP1048 when trying to instrument assembly created using Visual Studio 2019

visual studio csproj deterministic 0 Comments

In short - projects created using Visual Studio 2019 by default are compiled in a deterministic fashion, meaning if you compile the file multiple times without any changes, you will get identical output each time. Previous versions of Visual Studio used to include the compilation timestamp as part of the file header, causing the output to be different each time.

I'm not sure of the reasons why, but some of the tools provided with older versions of Visual Studio are unable to process assemblies compiled with this flag - they report them as not being valid image files and won't continue.

Read More

Generating code using T4 templates

c# visual studio t4 template 0 Comments

Recently I was updating a library that contains two keyed collection classes. These collections aren't the usual run-of-the-mill collections as they need to be able to support duplicate keys. Normally I'd inherit from KeyedCollection but as with most collection implementations, duplicate keys are not permitted in this class.

I'd initially solved the problem by simply creating my own base class to fit my requirements, and this works absolutely fine. However, this wasn't going to suffice as a long term solution as I don't want that base class to be part of a public API, especially a public API that has nothing to do with offering custom base collections to consumers.

Read More

Add Projects Extension -

extension vsix visual studio 4 Comments

A short and sweet post today...

I've been happily using the Add Projects extension since first writing it several months ago, and I actually find it a real time saver.

Read More

Cyotek Add Projects Extension updated for Visual Studio 2013 RTM

extension vsix visual studio 0 Comments Downloads

In my last post I introduced Cyotek Add Projects, a simple extension for Visual Studio that allowed you to add multiple projects to a solution.

However, I'd left the VSIX manifest version at 11.0, meaning it would only install on Visual Studio 2012. I've updated this so that it should install on Visual Studio 2012 or higher - certainly it's now installed on my fresh install of Visual Studio 2013.

Read More

Visual Studio Extension for adding multiple projects to a solution

c# extension vsix visual studio 24 Comments Downloads

My solutions have lots of references to other projects, either common libraries or unit testing libraries. Neither of these scenarios lend well to manual binary references or NuGet packages, so I have lots of source code projects loaded for each solution.

When creating a new solution (or retro fitting an existing solution to use new libraries), I end up using File | Add | Existing project a lot. As I was curious about how extensions in Visual Studio worked, I decided to write a very simple one to ease the grunt work of adding multiple common projects.

Read More