Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

If you are a Developer/Architect using Visual Studio as IDE for your development activities, this blog post will be of your interest. During the Ignite 2021 conference, Microsoft released Visual Studio 2019 v16.9 and v16.10 Preview 1. As part of version 16.10 Preview 1, one of the cool features they introduced is to "Remove Unused References..." for any Projects and Nuget packages that are not in use. At the time of writing this blog post, we have Visual Studio Version 16.10.0 (official release) which includes this new feature.  As part of development, we generally get carried away and introduce new Nuget package references to your project and add new references to your Projects. By the end of development, you will not be 100% sure which are not being referenced and unused which means you will leave those unused project references in your application. Now you might be wondering what's the big deal in it since it doesn't harm. The advantage of removing unused project r...

Not able to find WCF in Visual Studio 2019?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another.

In Visual Studio 2019, WCF is not pre-installed by default. If you are not able to find WCF template as part of New Project creation in Visual Studio 2019 please follow below steps


  1. In Create a New Project window of Visual Studio 2019, search for WCF in search box.
  2. If WCF project template is not listed, click on install more tools and features
  3. Visual studio installer window opens up
  4. Navigate to Individual Components
  5. Select Development Activities - Windows communication foundation
  6. Click on Modify button and install WCF component
  7. Restart Visual studio
  8. Here you go, WCF option will be listed now as part of Create New Project.

Comments

Popular posts from this blog

Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

Swagger UI for Azure Function v2 & v3 APIs

Authenticate Azure Functions - API Keys