-
Getting CA2213 warnings after installing Visual Studio 2015 Update 1
I installed Update 1 for Visual Studio 2015 this morning and then upon reopening an existing solution I noticed some new warnings/errors listed in the Error List panel:
The problem was that warning didn’t appear before the update, and inspecting the code revealed that in fact that class did implement IDisposable and did dispose the field in question. What’s going on here – surely this isn’t a bug in Update 1?
That was my original thought, but then I remembered that this project references the Microsoft.CodeAnalysis.FxCopAnalyzers Code Analyzer NuGet package. I wonder if that package needs an update?
Let’s fire up the NuGet Package Manager and make use of the new ‘Updates’ tab to find out..
Yes, there are! A quick check of the Select all packages checkbox and click on the Update button, and tada – no more warnings 😀
-
Batch converting .wav to .mp3
The band I play in (Sevenfold) uses Dropbox to share recordings and song words between band members. We ended up maxing out Dropbox’s free level, so I needed to consolidate some of the files. I found a bunch of .wav files that would save a bit of space if they were converted down to .mp3.
Step 1. Install ffmpeg
FFmpeg is a cross-platform tool for manipulating MPEG audio and video files. I’d previously installed it as part of supporting MP3 with Audacity by installing FFmpeg v2.2.2. If you don’t use Audacity then you could probably install the latest version instead.
Step 2. Use PowerShell
PowerShell is a nice choice to enumerate through the .wav files. It also lets me reset the file LastWriteTime (Modified) so the new files look similar to the old ones.
$files = Get-ChildItem *.wav foreach ($f in $files) {
Jon Hall has some good info about transferring the metadata as part of the conversion process (and making the metadata compatible with Windows file properties).
-
Connect(); // 2015 Summary
Microsoft have just held their second Connect(); virtual event with quite a few product announcements. If you didn’t get up in the middle of the night to watch it live, you can see all the videos from the event on Channel 9. Here’s my personal highlights:
Visual Studio Code open sourced and extensible
VS Code has now reached ‘beta’, which includes support for extensions. VS Code is now being developed in a public repo on GitHub.
ASP.NET 5 RC1
The rewrite of ASP.NET build to run on .NET Core is getting closer to final release. Some nice new tooling additions (Bower support), and early support for “.NET Platform Standard” as a way of indicating binary compatibility between packages.
Entity Framework 7 RC1
The rewrite of Entity Framework that runs on .NET Core (as well as full .NET Framework etc). Consider using it only if you don’t need features that it doesn’t have (kind of obvious advice really!)
Glimpse v2 Beta1
The re-architected version of the ASP.NET diagnostics dashboard that (for the moment) runs only on ASP.NET 5. If you’re (like most people) still using earlier versions of ASP.NET then stick with Glimpse v1 for now.
Visual Studio Dev Essentials
A one-stop shop to get free access to training, tooling and access to services.
Visual Studio 2015 Update 1
Due out on November 30th (so no link yet)
Windows Server 2016
Pretty sure this wasn’t a Connect() announcement but is just as interesting. Windows Server 2016 Technical Preview 4 is now available, which includes support for Hyper-V Containers (a more isolated container technology than the lighter-weight Windows Server Containers that were introduced in preview 3).