From fd44d09d8cf0554a8f3651da8f38f894f72e0b66 Mon Sep 17 00:00:00 2001 From: rupertavery Date: Fri, 1 Dec 2017 10:25:44 +0800 Subject: [PATCH] Errata --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 38c07fe..8dbf136 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ It grew out of a need to automate the insertion of newly created files using data extracted from existing files. -**NOTE:** This is not supposed to be used inside Visual Studio as an alternative to writing an Visual Studio extension. Rather, it is a way to automate modifying the csproj XML easily, without having to think about elements and attributes and indentation. +**NOTE:** This is not supposed to be used inside Visual Studio as an alternative to writing a Visual Studio extension. Rather, it is a way to automate modifying the csproj XML easily, without having to think about elements and attributes and indentation. # NuGet @@ -137,12 +137,12 @@ ItemGroup contents inherit from ItemGroupContent. Accessing the Contents propert var contents = itemGroup.Contents.ToList(); // of type Reference -Console.WriteLine(contents[0].HintPath); +Console.WriteLine(((Reference)contents[0]).HintPath); // of type Compile -Console.WriteLine(contents[1].DependentUpon); +Console.WriteLine(((Compile)contents[1]).DependentUpon); // of type Content -Console.WriteLine(contents[0].Include); +Console.WriteLine(((Content)contents[0]).Include); ``` \ No newline at end of file