Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Announcing PostSharp 4.2 Preview 3

AddThis Social Bookmark Button
It has been a few weeks since the release of PostSharp 4.2 Preview 1. Today, I’m happy to announce new features and improvements to PostSharp. If you want to discover them, you can download PostSharp from our website or from NuGet (make sure to enable pre-releases). What was new in PostSharp 4.2 In the previous blog post, I already announced the following improvements included in PostSharp 4.2 Preview 1: Support for Visual Basic Amazing performance improvements in ready-made patterns Other improvements in threading models Today, I’m announcing the following new features: Thread-safety policy Ready-made patterns: support for System.Collections.Immutable Ready-made patterns: support for rules Module initializers Support for INotifyPropertyChanging OnAspectsInitialized
advice How we dogfooded our own threading models Most of the improvements we are publishing in this release stem from dogfooding our threading models into PostSharp Tools for Visual Studio. I’m proud to say that we now have a multithreaded VS extension without a single lock or event. Now that all threading assumptions have been made explicit and declarative, the code is much cleaner and easier to understand. Frankly, the experience was both exciting and awkward. Exciting because the result is amazing. Awkward because we filed more than 50 bugs, enhancements and user stories in the process – principally usability issues or improvements....(Read whole news on source site)

Generating CSV-files on .NET

AddThis Social Bookmark Button
I have project where I need to output some reports as CSV-files. I found a good library called CsvHelper from NuGet and it works perfect for me. After some playing with it I was able to generate CSV-files that were shown correctly in Excel. Here is some sample code and also extensions that make it easier to work with DataTables. The post Generating CSV-files on .NET appeared first on Gunnar Peipman - Programming Blog.

Deploying custom services as Azure Webjobs

AddThis Social Bookmark Button
Azure has this thing called webjobs. It is a curious way of deploying continous or scheduled services as sub-processes of an Azure website. This may be a desirable option because: it’s a PaaS thing. You don’t have to manage a server. you get configurable scale - including autoscaling you can run many logical services within a single management unit (Azure Website) I did not enjoy my time with the MSDN documentation for Azure Webjobs. They document the manual process for working with Webjobs, either the Visual Studio Azure tooling or through the Azure portal. Manual deployment processes, involving clicking lots of buttons with
a mouse, a not going to be workable on my team, so I need a way to automate deployment. Also, the documentation only shows how to write services that are coupled to Azure. I want to be able to run my service locally. Step 1: Use a console app for your service The holy grail of .net services has been wrapping console apps for a long time, often using something like Topshelf. The goal is to get the reliability of a service for deployment but the ease of development and testing of a console app. To create a console app for...(Read whole news on source site)

PowerShell : Trigger a release in Release Management from TFS builds

AddThis Social Bookmark Button
With TFS 2013, the default template provides the ability to extend the out of box capabilities by providing post build process scripts, that can be used to execute custom PowerShell scripts as part of the build process. With the combination of the post build scripts and the TF_BUILd environment variables its very easy to provide PowerShell customization and execute them during the build. In this post, we'll see how we can combine these together to trigger a release from Release management using the Orchestration service API from release management. If you want to see the details of the REST API,
use Fiddler to tract the calls through the Release Management Client application.
I'm using the InitializeReleaseFromBuild API to trigger a release in Release Management. The formatted uri should look like http://RMSERVER:PortNumber/account/releaseManagementService/_apis/releaseManagement/OrchestratorService/InitiateReleaseFromBuild?teamFoundationServerUrl=”tfsserverurl"&teamProject="project"&buildDefinition="definition"&buildNumber="build”&targetStageName="targetStage”

Later using the ReleaseStatus API, we can query the status of the release.

$buildNumber = $env:TF_BUILD_BUILDNUMBER

$location = $MyInvocation.MyCommand.Name
 | Split-Path-Parent (Get-VariableMyInvocation -ScopeScript).Value.MyCommand.Path

Push-Location $location

$server = [System.Uri]::EscapeDataString($tfsUrl)
$project = [System.Uri]::EscapeDataString($teamProject)
$definition = [System.Uri]::EscapeDataString($buildDefinition)
$build = [System.Uri]::EscapeDataString($buildNumber)
$targetStage = [System.Uri]::EscapeDataString($targetStageName)

$serverName = $rmserver + ":"+ $port
$orchestratorService = "http://$serverName/account/releaseManagementService/_apis/releaseManagement/OrchestratorService"

$status =@{
    "2"= "InProgress";
    "3"= "Released";
    "4"= "Stopped";
    "5"= "Rejected";
    "6"= "Abandoned";

$uri = "$orchestratorService/InitiateReleaseFromBuild?teamFoundationServerUrl=$server&teamProject=$project&buildDefinition=$definition&buildNumber=$build&targetStageName=$targetStage"

$webClient = New-Object...(Read whole news on source site)

The Morning Brew #1887

AddThis Social Bookmark Button
Links only again today as I’m pressed for time Information Upcoming changes to Windows 10 Insider Preview builds [UPDATED 6/22] – Gabe Aul SQL Server 2014 Service Pack 1 Cumulative Update #1 is available! & SQL Server 2014 RTM Cumulative Update #8 is available! – Aaron Bertrand Announcing Paket.PowerShell – Cameron Taggart BeYourMarket – An […]

Basic casino math

AddThis Social Bookmark Button
In a previous series of posts, I went over the models used by casinos to spin a wheel (spinning, manipulating the odds, clustering and near misses). I did not yet expand on the basic mathematical models that ensure a casino makes money.

Let's pretend we are spinning the wheel again. The wheel has 5 pockets, and just one of those is the winning one. Given we will be using an unmodified wheel, you win 1 out of 5 spins. Each bet costs you 1 euro. Looking
at the true odds (1/5), the casino should pay out 4 euro for you to break even.

Respecting the true odds would not make the casino any money, they pay out less to ensure that the house has an edge on you. So instead of paying out 4 euro, it will be a tad less.

The house edge can be cast into a fairly simple formula.

In this example, the house edge is a whopping 20%, meaning statistically 20% of each bet will go to the casino. So the higher the house edge, the better?

Not really, if players...(Read whole news on source site)