-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Linq-to-XML example #1101
Add Linq-to-XML example #1101
Conversation
baef2bd
to
5ce2c80
Compare
@twsouthwick and @mikeebowen, please have a look at the examples. @mikeebowen, if we keep both your original SVGExample (see
|
@mikeebowen I like the features @ThomasBarnekow has. Can you incorporate them? It would be great to keep the samples similar. |
Yes, I'm using C# 10 features such as latest code generator stuff as well as the .NET 6 SDK (which has other goodness besides just C# 10 stuff and .NET 6 support - it has build time improvements I want to take advantage of). Generally, I keep the repo using the latest tool chains and will adopt that as useful. The resulting builds will still work as-is, but want to be able to use the latest as soon as possible :) |
I like the idea of both. Then it shows the different styles and we can compare them fairly easily |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. My only concern is if the image is ok to store in the repo (not sure about licensing of images)
I took a free image from https://freesvg.org/. They seemingly have no copyright and come with the CC0 1.0 Universal (CC0 1.0) |
Can you add an attribution to either the csproj/readme/additional file? |
Done. See .csproj file. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Based on the SVGExample currently added in PR #1087, this pull request adds corresponding examples that demonstrate two approaches:
DocumentFormat.OpenXml.Linq
andLet's discuss how we deal with the strongly-typed example. We can do multiple things. Firstly, we could demonstrate different code styles developers can use. Secondly, we could replace the original one with this one.
By the way, I am still using Visual Studio 2019, which is the reason for the initial changes in the solution file. I'm not sure whether that is an issue. One issue, however, is that you've used language version 10.0, which requires .NET 6.0, which requires Visual Studio 2022, which not everybody might have. I'm not sure whether you are using the very latest language features and whether this is really required.