File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <PackageId >Azure.ApiManagement.PolicyToolkit.Compiling</PackageId >
55 <PackageVersion >0.0.1</PackageVersion >
6+ <FileVersion >0.0.1</FileVersion >
7+ <AssemblyVersion >0.0.1</AssemblyVersion >
8+ <InformationalVersion >0.0.1</InformationalVersion >
69 <Authors >Microsoft</Authors >
710 <PackageLicenseExpression >MIT</PackageLicenseExpression >
811 <PackageRequireLicenseAcceptance >true</PackageRequireLicenseAcceptance >
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT License.
33
4+ using System . Reflection ;
45using System . Text ;
56using System . Text . RegularExpressions ;
7+ using System . Xml . Linq ;
68
7- using Azure . ApiManagement . PolicyToolkit . Compiling ;
89using Azure . ApiManagement . PolicyToolkit . Compiling ;
910using Azure . ApiManagement . PolicyToolkit . Serialization ;
1011
4142 var codeBuilder = new StringBuilder ( ) ;
4243 using ( var writer = CustomXmlWriter . Create ( codeBuilder , options . XmlWriterSettings ) )
4344 {
45+ writer . Write ( new XComment ( " This file is generated by the Azure API Management Policy Toolkit " ) ) ;
46+ writer . Write ( new XComment ( $ " Version: { Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version } ") ) ;
4447 writer . Write ( result . Document ) ;
4548 }
4649
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public sealed class CustomXmlWriter : IDisposable
2323
2424 public void Dispose ( ) => _xmlWriter . Dispose ( ) ;
2525
26+ public void Write ( XComment comment ) => comment . WriteTo ( _xmlWriter ) ;
27+
2628 public void Write ( XElement element )
2729 {
2830 _xmlWriter . WriteStartElement ( element . Name . LocalName ) ;
You can’t perform that action at this time.
0 commit comments