Skip to content

Releases: podNET-Hungary/PodNet.EmbeddedTexts

v1.2.3

11 Sep 12:38
Compare
Choose a tag to compare

Added diagnostic error when embedding file outside the project root directory when the namespace is indeterminate and not set by the user.

v1.2.2

10 Sep 22:35
Compare
Choose a tag to compare

Huge perf optimization! Large files are also embedded extremely fast now, and the memory footprint has been reduced dramatically. Large files above 5MB can see perf gains of up to 98%!

Also, the default number of lines to include in the docs were reduced to 20.

v1.2.1

07 Aug 11:58
Compare
Choose a tag to compare

Added sponsorship information

v1.2.0

18 Jul 13:30
Compare
Choose a tag to compare

🚀 More new features! 🚀

  • Set the PodNet_EmbedTextIsStaticClass property to make the generated class static. This is technically a breaking change, because originally the generator generated static classes anyways, but now it defaults to false.
  • Awesomely, set PodNet_EmbedTextDirectoryAsClass to true, which will make the content files' containing folder (directory) the name of the generated partial class, with the filename being the property. This results in a type having multiple properties, instead of a type for every property.

🪳 (And fixes!) 🪳

  • If by any reason you wanted to share multiple parts of the same partial class, the generator would break, because the virtual file names would conflict. Now, the names are unique (the namespace, class name and property name are included in the virtual file name).

v1.1.1

17 Jul 15:08
Compare
Choose a tag to compare
  • Added support for limiting the number of lines shown in the generated comment.
  • Fixed custom item properties not being available to the generator.

v1.1.0

17 Jul 11:32
Compare
Choose a tag to compare

New features!

  • generate const members instead of properties, just supply the PodNet_EmbedTextIsConst="true" attribute,
  • name your property/const identifier however you want by supplying your own value in PodNet_EmbedTextIdentifier!

Additionally, now the generated properties are not initialized. This is because the file contents are constants embedded into the IL code and are interned either way. Initializing on first access of the class only makes it so that an additional uninitialized pointer (reference) is required. Directly returning the constant results in it directly returning the referenced already-interned string. This won't result in a marked difference either way, and the API surface didn't change either.

v1.0.1

15 Jul 12:45
Compare
Choose a tag to compare

Fixed NuGet packaging

v1.0.0

12 Jul 12:49
Compare
Choose a tag to compare

Initial version: include text/code files' contents in your compilation