kunal-chowdhury.com

Visual Studio 2017 Tips & Tricks

Showing posts with label Visual Studio 2017 Tips & Tricks. Show all posts

Prior to the release of Visual Studio 2017 version 15.8, the Visual Studio Installer was downloading and installing the setup files in parallel. As a result, you had to always stay connected to online during the installation time.

 

If you have slow or limited internet connection, it was becoming difficult for many people. Now, this has been solved.

Published by on under Tips | Visual Studio 2017

In case you are facing the following error MSB4017: Could not run the "GenerateResource" task because MSBuild could not create or connect, while building your project/solution in Visual Studio, this could be because the build system is running out of the build process.

 

To resolve this error, there could be two different approaches. In this quick note, sharing both the solutions for your easy reference.

Published by on under Solution | Visual Studio 2015

Visual Studio 2017 provides you an easy way to upgrade your project's targeted language version, directly from the editor window. The Light Bulb, which is known as Quick Actions, automatically suggests you to upgrade the language version.

 

In this blog post, we will learn how to invoke it to perform the change for the associated project. Continue reading to learn more.

Published by on under Tips | Visual Studio 2015

Do you know that, Microsoft Visual Studio allows you to select the default language version of your project? The advanced project settings helps you to control the targeted C# language by changing the compiler version.

 

By default, the compiler accepts all valid language syntax that it can support. But if you want to change it to point to a specific version, let's learn how to do that.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

During application development, we often use XML files. To use XML files, we need XML objects; and to create the XML objects, we need to write the classes and properties based on the XML nodes/attributes, which we do manually.

 

Do you know that Visual Studio already provides an option to automatically create the entire class structure based on the XML input? Let's discuss this today.

Published by on under Visual Studio 2015 | Visual Studio 2015 Tips & Tricks

C# Interactive Window, inside Visual Studio, allows you to test code snippet without compiling the application. It supports several features like syntax highlighting, intellisense and more, and comes with a feature like 'Copy Code', that allows you to copy only the code part from that window.

 

In this quick blog post, we will discuss about the 'Copy Code' functionality part of the C# Interactive Window, inside Visual Studio.

Published by on under Tips | Visual Studio 2015

When you want certain constructors, methods or properties out of the debugger scope, you can use the DebuggerHidden attribute, part of the System.Diagnostics namespace. When a member has been marked as DebuggerHidden, breakpoints will not hit for that member.

 

If you are unaware of this attribute, let's go a step ahead to learn about this attribute and how it works. Continue reading to know more.

Published by on under Tips | Visual Studio 2013

Lightweight solution loading is a new concept in Visual Studio 2017, when enabled, Visual Studio loads a small subset of the projects instead of loading all the projects available in a large solution. Thus, it loads solutions twice faster.

 

You need to manually enable/disable this feature. But in version 15.3 and above, you can ask Visual Studio to decide whether to enable it or not. Let's discuss the steps.

Published by on under Tips | Visual Studio 2017

If you are a web developer and designing any website or a page, you may want to run it in multiple browsers to check cross-browser issues. Visual Studio provides an easy way to run the web application in all the selected browsers at a single shot.

 

In this quick tip, today, we are going to learn how to run the web application in multiple browsers from the Visual Studio IDE. Continue reading to know more about it.

Published by on under Tips | Visual Studio 2013

If you are using Visual Studio 2017 version 15.3, it came with new improvements on top of C# 7.0, thus changing the version to 7.1. One of the new change in C# 7.1 is 'default' literal to avoid the redundant information while writing code.

 

In this post, we will learn about this improvement and will also cover how to use this. Continue reading to know about it.

Published by on under .Net | C#

In every programming language, when you want to loop through a collection, you use the 'for' loop in maximum scenarios. When writing code in Visual Studio, you might be aware that, there exist a code snippet to write the for-loop structure.

 

But you might not noticed that, there exist another code snippet to generate a reverse for-loop. Let's see what it is and how it operates.

Published by on under .Net | Tips

Microsoft released the final version of Visual Studio 2017 on 7th March 2017, which brought a set of new features and enhancements for the developers to build apps for any platform in any language. It comes in web installer only. No ISO/DVD images are available.

 

In case you need an offline installer, you can easily create that and customize it as per your need. Follow the steps mentioned below to create the installer.

Published by on under Tips | Visual Studio 2017

If you have a big solution with so many projects in it, the all new 'Visual Studio 2017' provides a new feature called 'Lightweight Solution Load', that helps to reduce the solution load time and substantial improvement in memory usage.

 

Today in this blog post, we are going to discuss about this feature along with the option to enable or disable the 'Lightweight Solution Load' feature.

Published by on under Tips | Visual Studio 2017

The all new 'Visual Studio 2017' IDE, which was released as 'RC (Release Candidate) bits' during the Microsoft's Connect() event, introduces a new installation experience. If you have already installed the bits, you might have experienced that.

 

As it is currently in RC build, let me describe the new installation experience here to help others to know about it before they finally start using it.

Published by on under Visual Studio 2017 | Visual Studio 2017 Tips & Tricks

During the Connect() developer event, Microsoft released Visual Studio 2017 RC (Release Candidate). The said post contains all the Microsoft server links to download the public build, which is a web installer and you need to connect to internet while installing.

 

In case you need an offline installer to download once and install in multiple systems, here's the post to generate the offline installer. Continue reading the know more about it.

Published by on under Tips | Visual Studio 2017