Approach to Environment.NewLine
See original GitHub issueIs your feature request related to a problem? Please describe.
It seems as though when one contributor creates a snapshot with Linux, and I create a snapshot with Windows, the snapshots will never be in sync due to different Environment.NewLine
settings.
Describe the solution you’d like
Write snapshots to /.snapper/linux/**
and /.snapper/windows/**
Developers can then use tools like Windows Subsystem for Linux to generate snappers in alternative environments through the use of docker images and volumes.
Describe alternatives you’ve considered
- Manually fixing Environment.NewLine prior to comparing before and after, but this is error prone.
- Running tool to convert \r\n to \n
- Stop (trying to) using Snapper 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Environment.NewLine Property (System)
The property value of NewLine is a constant customized specifically for the current platform and implementation of the .NET Framework. For more information ......
Read more >How to simplify Environment.NewLine()? [duplicate]
For anyone reading this, please just use "\n" for new lines in a string. I've learned alot more about coding and think my...
Read more >C# Environment.NewLine
Implementation. Environment.NewLine is a constant property in .NET. And it could be tied to the current executing environment or platform.
Read more >Know how to add a New Line in C# & ASP.NET
1. Using parameter-less Console.WriteLine() to add a new line: This method was used to generate new lines in earlier days. Parameterless Console ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It makes sense for me to create a repro. Thanks for your explanation as you march towards improving the docs!
Closing this issue as its been a couple of months and nothing has come of it.