-
Notifications
You must be signed in to change notification settings - Fork 476
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
Main Project Cleanup #1123
Main Project Cleanup #1123
Conversation
- Clean up of the main source code project - Removed irrelevant files - Added support for .NET 4.7, .NET 4.8 - Removed preprocessor to enable events registration for all - Updates to the SvgOptions class to support property attributes
Source/DataTypes/EnumConverters.cs
Outdated
// return false; | ||
// } | ||
// } | ||
//} |
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.
Is this not needed bevause you just use Enum
? In this case just remove it.
@H1Gdev may have a look as he introduced this.
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.
Thanks, we wait for @H1Gdev.
The generic support for the parsing enum
string was not available in 3.5, so that might be needed but no more.
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.
I agree with remove it.
It would be beneficial to be able to remove [CLSCompliant(false)]
.
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.
@H1Gdev Thanks for the feedback. I will now remove the commented code.
<DefineConstants Condition="$(TargetFramework.StartsWith('net47'))">$(DefineConstants);DOTNET47;NETFULL</DefineConstants> | ||
<DefineConstants Condition="$(TargetFramework.StartsWith('net48'))">$(DefineConstants);DOTNET48;NETFULL</DefineConstants> |
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.
Why are these needed?
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.
Added support for .NET Framework 4.7 and 4.8, for project using them.
The constants are provided in case any platform specific coding is necessary. Currently, only NETFULL
is used.
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.
Ok, as long as there are no additional projects are build by default, it won't actually matter, so it is ok, I guess.
- Applying the default "Format Document" introduces the tabs!
@mrbean-bremen Sorry for the crazy tabs, I have fixed it. |
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.
Looks good to me, but I would want to have @H1Gdev have another look.
Thanks, trying to add him to the reviewers, but the name is not showing up. |
I also had tried to add him to the contributors. Anyway, he will get notifications from mentioning. And I think he is in a similar timezone as you, so it should be easier for you to communicate ;) |
- Set the default mode to InterpolationMode.Default
@mrbean-bremen Unfortunately, not all interpolation modes will allow the SVG-logo to pass the tests. So, I set the default as |
- Removed NuGet project files and folder - Removed non-existence folder: <Folder Include="Web\Resources\" />
@@ -135,7 +135,7 @@ private static Graphics CreateGraphics(Image image) | |||
g.CompositingQuality = CompositingQuality.HighQuality; | |||
g.TextRenderingHint = TextRenderingHint.AntiAlias; | |||
g.TextContrast = 1; | |||
g.InterpolationMode = InterpolationMode.NearestNeighbor; |
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.
Do you need to change this setting ?
I recommend that you change this setting carefully, such as by creating another PR.
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.
It was added by a PR we allowed to record the contribution and close the issue as we planned to improve the implementation.
However, as you can see it is causing the build to fail with a SVG-Logo.
So, I set it to Default
to make all the tests pass as before.
{ | ||
public SvgOptions() | ||
public class SvgOptions : IDictionary<string, string>, ICloneable |
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.
I think it would be better to inherit Dictionary
.
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.
Just wanted it to be as dictionary, we might change the base (and internal) to anything later.
- Enums no longer needed.
@mrbean-bremen @H1Gdev Sorry, if it is OK with you, I will merge this PR. |
…ples Source Svg.Custom Tests doc docfx.json index.md license.txt Main Project Cleanup - Clean up of the main source code project - Removed irrelevant files - Added support for .NET 4.7, .NET 4.8 - Removed preprocessor to enable events registration for all - Updates to the SvgOptions class to support property attributes CONTRIBUTING.md Generators README.md Samples Source Svg.Custom Tests doc docfx.json index.md license.txt Untabify the project files - Applying the default "Format Document" introduces the tabs! CONTRIBUTING.md Generators README.md Samples Source Svg.Custom Tests doc docfx.json index.md license.txt Restore the default interpolation mode of the GDI+ rendererer - Set the default mode to InterpolationMode.Default CONTRIBUTING.md Generators README.md Samples Source Svg.Custom Tests doc docfx.json index.md license.txt Further clean up - Removed NuGet project files and folder - Removed non-existence folder: <Folder Include="Web\Resources\" /> CONTRIBUTING.md Generators README.md Samples Source Svg.Custom Tests doc docfx.json index.md license.txt Removed the commented Enums static class - Enums no longer needed.
Description
SvgOptions
class to support key-value properties. Will use it to resolve issue raised in * Improve picture clarity #987ItemGroup
for references into supported Frameworks, so dependent package versions can be separately updated.Type of change
Why? Links no longer exist.
Why? SDK-style projects include this reference by default.
Ref: https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/reference-assemblies
<Title>Svg for .Net Framework 4.6.2</Title>
in project file for simplicity.DisableImplicitFrameworkReferences
for .NET 4.6.2Enum.TryParse
: Is supported on all current platformsHow Has This Been Tested?