官术网_书友最值得收藏!

  • C# Programming Cookbook
  • Dirk Strauss
  • 341字
  • 2021-07-14 11:08:39

Creating your Visual Studio project

The Visual Studio project that you will create will be used to add the classes that contain the code samples in each recipe of this book. The project will be a simple console application that will call into static classes that do the work of illustrating the recipe code and outputting the results (if any) to the console window.

Getting ready

To step through the recipes in this book, you will need a copy of Visual Studio 2015. If you do not have a copy of Visual Studio 2015, you can download a free copy of Visual Studio 2015 Community from https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx.

You can also compare editions of Visual Studio 2015 by navigating to https://www.visualstudio.com/en-us/products/compare-visual-studio-2015-products-vs.aspx.

After you have downloaded and installed Visual Studio 2015, create a new console application that will contain the recipes illustrated in this book.

How to do it…

  1. Start Visual Studio 2015 and click on the File menu. Then, click on New and then select Project. You can also use the Ctrl + Shift + N keyboard shortcut:
  2. From the New Project dialog screen, select Console Application, which can be found by going to Installed | Templates | Visual C# | Windows | Classic Desktop in the tree view to the left. You can call your console application CodeSamples:

    Note

    You will notice that the selected framework is .NET Framework 4.6.1, which is selected by default. Leave this framework selected when creating your project.

  3. Visual Studio now creates your console application, which we will use to create all the code samples needed for this book.

How it works…

This console application will form the base of the recipes in this book. Each recipe can be individually added to this console application. A recipe, therefore, can function on its own without the need to create a previous recipe. You can also easily separate any custom code you might want to add and experiment with. It is also recommended that you play around with the code by adding classes of your own.

主站蜘蛛池模板: 宁都县| 义乌市| 新巴尔虎左旗| 兴国县| 黔东| 乌兰察布市| 清新县| 普兰县| 山西省| 油尖旺区| 朝阳市| 凉城县| 盱眙县| 鞍山市| 嘉义县| 永胜县| 登封市| 洛川县| 闸北区| 富川| 武鸣县| 阿拉善左旗| 钦州市| 海晏县| 卓资县| 汪清县| 通辽市| 普定县| 郓城县| 富蕴县| 宁强县| 和平县| 汝阳县| 六枝特区| 惠州市| 建阳市| 淳化县| 康平县| 永德县| 台东市| 哈尔滨市|