Gunnar Peipman – Programming Blog

ASP.NET 5: Using POCO controllers

ASP.NET 5 supports POCO controllers. Yes, controller classes that doesn’t extend Controller base class. These controllers look a little bit different by some small aspects and sometimes we may need to help framework detect our POCO controllers. This posting gives you complete overview of POCO controllers in next ASP.NET.

Speaking at Code Camp 2014, Macedonia

This year I have honor to be a speaker at Code Camp 2014, Macedonia. It’s one of the biggest developers event in Macedonia. I have been in Macedonia as a speaker once before but it was community evening and not a big conference. This time I come to Skopje with new ASP.NET vNext. In this post I will give short overview about digital hell I prepared for Macedonian techies.

Coming soon to C#: Expression-bodied members

New C# introduces expression-bodied members of classes. Instead of property or method that makes some simple calculation we can define expressions and keep our code shorter. Nice thing is – also other .NET languages are able to use these new members. Let’s see what we can do with expression-bodied members in C#.

ASP.NET 5: Using shared sources

ASP.NET 5 supports code sharing between projects. It’s not about referencing libraries or something related to portable libraries – it’s different. Libraries can share their source that is compiled to referencing project output. In this posting I will show you how this new source sharing system works.

ASP.NET 5: How to debug with ASP.NET source?

Although ASP.NET MVC is well tested framework and probably you don’t find any major bugs in public releases you may still sometimes need to debug your application with ASP.NET MVC sources. In this posting I will show you how debugging with sources works in ASP.NET vNext.

ASP.NET 5: New configuration files and containers

With ASP.NET vNext we get also new config files. Yes, files, because more than one config file format is supported. Our configuration can be JSON, INI or XML and I’m sure you can write configuration handlers that support your own custom formats. Also support for multiple configuration containers is here. In this posting I will show how new configuration system works in ASP.NET vNext.

Coming soon to C#: Auto-property initializers

Automatic properties is good feature in C# as we don’t have to declare variables for property values in our code. Instead we move this responsibility to compiler that automatically generated hidden backing field for property. New C# solves another problem – assigning default values to automatic properties.

Querying incosistent SharePoint lists using SPSiteDataQuery

Site data query is powerful querying mechanism in SharePoint. We can use it to query data from multiple lists in web or over webs hierarchy. But it works well only until lists or content types are consistent by structure and there are now bad hacks or tricks made by power users. But how to survive the worst case – lists with messed up fields? I have quick temporary solution to provide.

ASP.NET 5 on Azure Websites

Something cool to try out – you can run your ASP.NET vNext applications on Windows Azure Websites already today. Yes, you can take Visual Studio 14 CTP, create ASP.NET vNext application and deploy it to cloud. In this posting we will sniff around in Azure Websites to see how ASP.NET vNext applications run there.

ASP.NET 5: Running tests on K and Visual Studio

Using new ASP.NET tooling it is also very easy to run tests on command line. We don’t need Visual Studio to be installed on machine where we want to run tests and we can use this fancy K-stuff to make tests run. This post will show you how to write and run tests using new Visual Studio and K.

Previous Posts