Alessandro Del Sole's Blog

/* A programming space about Microsoft® .NET® */
posts - 151, comments - 0, trackbacks - 0

My Links

News

Your host

This is me! This space is about Microsoft® .NET® and Microsoft® Visual Basic development. Enjoy! :-)

These postings are provided 'AS IS' for entertainment purposes only with absolutely no warranty expressed or implied and confer no rights.

Microsoft MVP

My MVP Profile

I'm a VB!

Watch my interview in Seattle

My new book on VB 2015!

Pre-order VB 2015 Unleashed Pre-order my new book "Visual Basic 2015 Unleashed". Click for more info!

My new book on LightSwitch!

Visual Studio LightSwitch Unleashed My book "Visual Studio LightSwitch Unleashed" is available. Click the cover!

Your visits

Follow me on Twitter!

CodePlex download Download my open-source projects from CodePlex!

Article Categories

Archives

Post Categories

.NET Framework

Blogroll

Help Authoring

Microsoft & MSDN

Setup & Deployment

Visual Basic 2005/2008/2010

domenica 24 luglio 2016

VS 2015 Update 3: installing a NuGet package as a quick action in the Light Bulb

Among the others, my favorite feature in Visual Studio 2015 Update 3 is the option of adding a NuGet package as a quick action in the Light Bulb, when you type the name of an object that is not defined anyway in the solution. For instance, consider the following figure:




I'm trying to use an object called JsonConvert, which is neither part of the BCL nor defined inside any referenced library. So, if I enable the Light Bulb, I will find a new quick action that suggests me to install from NuGet the Newtonsoft.Json library, which actually defines the JsonConvert object. I need just one click to install the latest version of the library from NuGet, or I can decide to enable the NuGet UI in order to select a different version. In the first case, it's almost immediate:



As you can see, the library is downloaded from NuGet, installed, and referenced. Also, the proper Imports (or using in C#) directive is automatically added and the object is recognized properly.

Notice that this option is not enabled by default, so you first need to go to Tools, Options, Text Editor, Basic (or C#) in the Advanced node and select the option for NuGet suggestions:



A very useful feature, especially if you know in advance the name of objects you use and you want the IDE to do the job for your.

Alessandro

posted @ domenica 24 luglio 2016 19:09 | Feedback (0) | Filed Under [ Visual Studio 2015 ]

giovedì 7 luglio 2016

My new article on MSDN Magazine: local data with SQLite in Xamarin.Forms

Recently, I have been pretty busy with Xamarin, more specifically with Xamarin.Forms, so I decided to start sharing some of the things I learn on daily basis.

The July 2016 issue of MSDN Magazine is featuring a new article of mine, called "Working with Local Databases in Xamarin.Forms using SQLite".

As many of you already know, Xamarin.Forms allows you to build cross-platform apps for Android, iOS, and Universal Windows Platform using a single, shared C# code base and Visual Studio 2015. Because you might need to store local, structured data in your apps, SQLite is a good choice and this article explains how to leverage this lightweight, open source, serverless database to store information with an examples that uses data-binding techniques and LINQ.

Enjoy!

Alessandro

posted @ giovedì 7 luglio 2016 12:05 | Feedback (0) | Filed Under [ Visual Studio 2015 Xamarin ]

lunedì 2 maggio 2016

Visual Studio Code Succinctly, my new ebook

Here I go again I wanted to share that my new eBook Visual Studio Code Succinctly is available for free.




You probably know how Microsoft is strongly embracing open source and cross-platform development and Visual Studio Code perfectly fits into this. VS Code is a lightweight, open source and cross-platform code-centric development tool that runs on Linux, Mac OSX and Windows. With Visual Studio Code you can write cross-platform applications for the Web and the Cloud, as well as working with folders and code files with support for a large number of languages.

As usual, I tried to put inside this eBook my own experience, trying to bring the value of describing things that you do not usually find on the Web such as working with the Entity Framework, setting up a remote Git repository, or writing a language extension from scratch.

An important note: Visual Studio Code evolves fast and continuously, so some features might change and new features might be added as you read.

Have fun!

Alessandro

posted @ lunedì 2 maggio 2016 16:16 | Feedback (0) | Filed Under [ Misc Visual Studio 2015 ]

giovedì 25 febbraio 2016

Rosyn Succinctly, my new eBook

My new eBook "Roslyn Succinctly" is available under the popular Succintly series from Syncfusion.



I think I can say that Roslyn Succinctly is something unique. There's no much content about .NET Compiler Platform (that is, Roslyn), and it talks about open source VB and C# compilers, about the APIs they expose and how these can be invoked by other developer tools, that we can write too, and use these APIs the same way Visual Studio 2015 does.

This small PDF contains guidance about code analysis, custom domain rules, how you create custom refactorings, architecture, how you can publish your analyzers to NuGet, and how you leverage specific APIs to manage solutions, projects, and documents. As usual, I tried to put my own experience in this book and I tried to provide a logical guidance, which is something the official documentation lacks.

I'm pretty sure you won't regret about the time you'll spend reading this short ebook.

Alessandro

posted @ giovedì 25 febbraio 2016 21:19 | Feedback (0) | Filed Under [ Visual Studio 2015 .NET Compiler Platform (Roslyn) ]

venerdì 7 agosto 2015

Visual Basic 2015 Unleashed: my new book is available

It has been a long road, but my new book Visual Basic 2015 Unleashed is finally available.



It is not a simple update from the previous edition, Visual Basic 2012 Unleashed.

In the 2015 edition, I made significant revisions, fine-tuning contents as technology evolves from the Microsoft perspective. Also, I had the pleasure and the honor of featuring Anthony D. Green and Lucian Wischik from the Managed Languages team at Microsoft as the technical editors. They are the people who know Visual Basic better than any one on the Planet and their work has been invaluable to make this book even more accurate than the past.

If you read the previous editions, and if you are interested in the new one, you will immediately notice a new Chapter 1, called Introducing .NET 2015. The book starts describing the new vision of .NET, talking about .NET Framework 4.6 and the new .NET Core 5.

Among the others, the book explains the new code refactorings, all of the new language features including (but not limited to) the null-conditional operator, string interpolation, read-only auto-properties, partial modules and partial interfaces.

The most juicy chapters are about the .NET Compiler Platform (a.k.a. Project "Roslyn) and Windows 10 development. With these, you learn how to write a Roslyn analyzer and a code refactoring and how to start coding a truly universal Windows 10 app with Visual Basic.

To get a taste of the book, you can download Chapter 42 for free and the full companion code from the book site.

Enjoy!

Alessandro

posted @ venerdì 7 agosto 2015 14:35 | Feedback (0) | Filed Under [ Visual Basic Visual Studio 2015 ]

martedì 14 luglio 2015

New article series about Visual Basic 2015

I've started a new article series about Visual Basic 2015. More specifically, there are three new articles about the new code focused experience in VB and the .NET Compiler Platform.

You might find the articles on the InformIT web site:

Part 1 - The code focused experience in Visual Basic 2015
Part 2 - Live Code Analysis with Visual Basic 2015
Part 3 - Creating custom refactorings with VB 2015 (coming soon)

Enjoy!

Alessandro

posted @ martedì 14 luglio 2015 12:45 | Feedback (0) | Filed Under [ Visual Basic Visual Studio 2015 ]

My book Visual Basic 2015 Unleashed available for pre-order

I'll be writing a more detailed post with sample contents, however this is to inform you that my new book Visual Basic 2015 Unleashed can be pre-ordered on Amazon.

There's a lot of new stuff that you might want to check out as a VB developer, such as Windows 10 development, .NET Compiler Platform (project "Roslyn"), and of course all the new language features.

Check it out!

Alessandro

posted @ martedì 14 luglio 2015 12:41 | Feedback (0) | Filed Under [ Visual Basic Visual Studio 2015 ]

venerdì 27 febbraio 2015

OData v4 and Web API example with Visual Basic 2015

It's been a while since my latest blog post here. The reason is that I've been busy writing a new book about Visual Basic 2015, which is still under development, and with my Italian blog and resources.

I'll try to write more frequently from now on. This post is to tell you that I've published a basic example about creating an OData v4 service with Web API and Visual Basic 2015. The excuse has been that there's no sample in Visual Basic.

I have used Visual Studio 2015 CTP 6 and you can download the sample from MSDN Code Gallery

Have fun

Alessandro

posted @ venerdì 27 febbraio 2015 16:50 | Feedback (0) | Filed Under [ Visual Basic ]

Powered by:
Powered By Subtext Powered By ASP.NET