Closed patocl closed 7 years ago
Visual Studio 2015 requires an extension to support .editorconfig:
https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig
VS2017 will natively support it. Editors like Sublime and Atom (and VS Code) already support it :)
nice, I will add then to my VS2015. Thanks
I did my best effort to format the fu code...
The Editorconfig is not working properly on VS2015, was reported a Bug and I'm tired trying fix it manually
I hope it be ok Cheers mate
It looks great, thanks for spending the time to format it :)
I'm going to modify it slightly to default to the previous temp path behavior by default. The reason the dll copying was introduced was that folks' deploy processes were attempting to read/delete the PngOptimizerDll.dll file. When it's loaded it becomes locked and errors out their deployment.
So to solve that, it was set to copy outside the webroot and load from there, where it being locked would not break deploys. Leaving it in dianoga tools/temp would unfortunately bring that bug back.
However the temp path does need to be configurable - for folks who want it to go elsewhere other than windows temp.
This is released in Dianoga 3.0.3-beta01. Give it a shot.
Hi @kamsar
The steps to solve it:
I created the folder Temp and inside a readme.txt file, because Git did not admit empty folder.
I implemented the code in DynamicLinkLibrary.cs to use this new parameter.
And finally, I added the test cases, to verify that is working fine.
I'm using Visual Studio, but I do not understand why tabs or spaces are replaced, even with the new .editorconfig settings. Please, don't get nervous.
I hope you like it!
patocl