From 71dde7e736bc9bcdf75bd007397acdf6781d9caf Mon Sep 17 00:00:00 2001 From: Shin Mao Date: Wed, 15 Nov 2017 12:58:43 -0800 Subject: [PATCH] Update xmlserializergenerator-instructions.md --- samples/xmlserializergenerator-instructions.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/samples/xmlserializergenerator-instructions.md b/samples/xmlserializergenerator-instructions.md index 9c1978d8e..bf5ab65ab 100644 --- a/samples/xmlserializergenerator-instructions.md +++ b/samples/xmlserializergenerator-instructions.md @@ -7,7 +7,7 @@ You can start using the tool today following the instructions below. ## Prerequisites * [.Net Core SDK of version 2.0.2 or later](https://www.microsoft.com/net/download/windows) -* [.NET Core runtime Release/2.0.3](https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.3.md) +* [.NET Core runtime 2.0.3](https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.3.md) ## Instructions @@ -25,8 +25,7 @@ Here are the step by step instructions on how to use Xml Serializer Generator in -    ``` - + ``` 3. Edit the .csproj and add a reference to the Microsoft.XmlSerializer.Generator package. For example, * Run command: `dotnet add package Microsoft.XmlSerializer.Generator -v 1.0.0-preview1-25915-02` * Add the following lines in MyApp.csproj, @@ -35,20 +34,17 @@ Here are the step by step instructions on how to use Xml Serializer Generator in ``` - 4. Add a class in the application. For example, add the class below in Program.cs, ```c# public class MyClass { public int Value; } - ``` - Now you can create an `XmlSerializer` for MyClass. + ``` + Now you can create an `XmlSerializer` for MyClass. ```c# var serializer = new System.Xml.Serialization.XmlSerializer(typeof(MyClass)); - ``` -     + ``` 5. Build the application by running `dotnet build`. If everything succeeds, an assembly named MyApp.XmlSerializers.dll will be generated in the output folder. You will see warnings in the build output if the tool failed to generate the assembly. Start the application and it will automatically load and use the pre-generated serializers at runtime. -