Contents tagged with Visual Studio
As developers, we are often faced with certain tasks that are very repetitive in nature, which can also be time consuming to solve it. For example, whenever we need to reserialize a complex JSON string to classes we may need to write a lot of code. Until recently, whenever I needed to do such task I invariably create the classes manually and if it's a complex string, I was spending way too much time on that.
When the instances like these began to happen every now and then, I decided to search for online options which can spit out classes from a JSON string. After some googling, I found out this site json2csharp.com which can do what I was looking for. You only need to paste the JSON in the input box and click on the Generate button to get the classes in C#.
As many of you have already are aware that Microsoft has released a Release Candidate version of the latest incarnation of Visual Studio during the Connect() event held at New York City in November. Visual Studio is one of the most widely used IDE in the world and the latest avatar comes with lot of new features and performance improvements under the hood. The most notable among these is the all new installation experience which considerably reduces the installation time as well as eradicates a lot of pain points that an user faced during the installation of the earlier versions of the software.
Visual Studio 2017 RC is free for all and can be downloaded from the Visual Studio site here and also read about the minimum system requirements is available at https://www.visualstudio.com/en-us/productinfo/vs2017-system-requirements-vs before you start the installation. You will get a nice little installer utility from the download link and when you run vs_enterprise.exe, it will show the new launch screen which will tell you to accept the license before proceeding to the installation.
Visual Studio is used by a wide variety of users for developing different types of application and majority of them doesn't need to install every garbage that comes along with the installation package. So deciding what to choose for your need was confusing and particularly about the dependencies that need to selected for a hassle free experience.
In Visual Studio 2017, the concept of Workloads are introduced to solve this problem and now there are separate workloads for .NET desktop development, web development, UWP development etc. So if you are a web developer and selecting the Web Development workload will ensure that Visual Studio will install all the necessary tooling and dependencies that are needed for developing web applications.
In the previous post I showed you how to add a newly created file to the source control and in this post I will be discussing about the check out and check in process from the IDE.
Checking out files
To check out the file, you need to right click on the file in the Solution explorer to bring up the context menu where you will find the option for checking out the file.
When you click on the Check out for Edit menu item, you will be presented with a dialog box which will have two option, the first one will retain an exclusive lock after the check out and prevent others from check in. The second one will allow other users to check out the file but won’t be able to check in their changes until the the one who has the lock check in the file. I am going to select the first one which is also the recommended option.
Once the operation is completed you will be free to make any changes in the code and save the files locally. When you are done with the editing we can see how the files can be checked in to the source control.
In this post I will show you how to add the newly created files to the repository, in this case Visual Studio online account we had created in the earlier post which you can refer here.
In the blank solution we had created earlier and I have added one project and some files to it. The newly added files can be identified by the + plus appearing next to the filename in the solution explorer.
You may wonder that, why are you getting the red lines appearing under the solution/project/file name in your solution explorer. That’s because I have installed an extention know as the productivity tools for Visual Studio , which will show these lines if it contains any sort of build errors during the editing phase itself. One of the main reason that I shifted to the community edition from the express edition is that it supports most the features like these found in the paid versions. If you are interested in these type of tools, you can to the site here and download it.
You can use regex along with the search term as given below
and don’t forget to check the Use Regular Expression option in the Find dialog box.
Hosting your first project in Visual Studio Online and Getting started with Visual Studio 2013 Communtiy edition
During last week’s Connect event, Microsoft surprised us with a lot announcements such as moving up more and more things to open source, plans to make ASP.NET cross-platform and a free edition of a Visual Studio named Visual Studio Community 2013. Unlike the express versions for all the flavours such as web, desktop we have till now, the Community edition is a full featured edition of Visual Studio with curbs on use for enterprise development. It supports features like extensions which was sorely missed in the express edition and is perfectly suitable for developers like me and small business houses. Till now we have to use different incarnation of express editions of Visual Studio if you are not using their paid tools, but in community edition we are able to develop application for Web, Windows, Phone, Cloud, iOS, etc. If you interested then you can go here to read more on this and click here to go to the download page.
Another great free service from Microsoft is Visual Studio Online, which leverages the capabilities of Team Foundation Server and can be used as the repository for all your development projects. If comes with support for five users in the free tier, supports various editors such as Eclipse, Xcode and of course Visual Studio. Please go through this link to know more about the service.
In this post I am going to show how can we host and mange a project created in VS 2013 Community edition in Visual Studio Online right from the IDE itself.
Create an account with Microsoft account at https://app.vssps.visualstudio.com and follow the steps mentioned in the screenshots.
Breaking Changes in coming your way for ASP.NET Core 3.0
Resilient Connections in Entity Framework Core