Skip to content
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

Added ${currentDir} #2491

Merged
merged 2 commits into from
Jan 11, 2018

Conversation

UgurAldanmaz
Copy link
Contributor

@UgurAldanmaz UgurAldanmaz commented Jan 8, 2018

I've implemetend the CurrentDirLayoutRenderer which was requested in #2190.

I cannot remember what we do for adding new files to the .csproj file. Cannot find any info at the contributing document. Please guide me if I've missed anything.

@codecov
Copy link

codecov bot commented Jan 8, 2018

Codecov Report

Merging #2491 into master will decrease coverage by <1%.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master   #2491    +/-   ##
=======================================
- Coverage      82%     82%   -<1%     
=======================================
  Files         322     323     +1     
  Lines       23422   23211   -211     
  Branches     2974    2883    -91     
=======================================
- Hits        19144   18936   -208     
- Misses       3511    3524    +13     
+ Partials      767     751    -16

@304NotModified
Copy link
Member

I cannot remember what we do for adding new files to the .csproj file. Cannot find any info at the contributing document. Please guide me if I've missed anything.

Since VS2017, there is no need to list all the files in the csproj :)
Also there is now 1 sln/csproj for all platforms. So nothing to do here :)

Thx for contributing. I'm a bit busy these weeks, will try to review it soon!

@snakefoot
Copy link
Contributor

snakefoot commented Jan 8, 2018

@UgurAldanmaz Maybe it should be called "startupdir" instead of "currentdir" ? (Since the layout renderer caches the currentdir as startupdir).

@304NotModified
Copy link
Member

Where is the cache?

@snakefoot
Copy link
Contributor

snakefoot commented Jan 8, 2018 via email

@UgurAldanmaz
Copy link
Contributor Author

UgurAldanmaz commented Jan 8, 2018

Since VS2017, there is no need to list all the files in the csproj :)
Also there is now 1 sln/csproj for all platforms. So nothing to do here :)

Nice 👍

Thx for contributing. I'm a bit busy these weeks, will try to review it soon!

I'm very happy to come back to the community.

@UgurAldanmaz Maybe it should be called "startupdir" instead of "currentdir" ? (Since the layout renderer caches the currentdir as startupdir).

Yes, currentdir looks confusing. My suggestion is appdir as its documentation says

Gets the current working directory of the application.

Thoughts?

@304NotModified
Copy link
Member

It is a member variable

ow yes indeed. I think that's not needed. If someone likes to cache it, it should use ${currentDir:cache=true}

@UgurAldanmaz could you please remove the "cache"?

@UgurAldanmaz
Copy link
Contributor Author

I've removed, tx!

@304NotModified
Copy link
Member

thx! Looks good! Some unit tests are a bit unstable, will restart Travis

@304NotModified 304NotModified added this to the 4.5 rc4 milestone Jan 9, 2018
@304NotModified 304NotModified changed the title Implemented CurrentDirLayoutRenderer Added ${currentDir} Jan 11, 2018
@304NotModified 304NotModified merged commit c8b8770 into NLog:master Jan 11, 2018
@304NotModified
Copy link
Member

merged! Thanks!

@304NotModified
Copy link
Member

Could you please create a wiki page? Thanks!

@UgurAldanmaz
Copy link
Contributor Author

UgurAldanmaz commented Jan 12, 2018

Could you please create a wiki page? Thanks!

Of course, it is here. I will link it to the main layout renderer list page, when we release it.

@UgurAldanmaz UgurAldanmaz added documentation done all docs done (wiki, api docs, lists on nlog-project.org, xmldocs) and removed needs documentation on wiki labels Jan 12, 2018
@304NotModified
Copy link
Member

thx @UgurAldanmaz !!

This was referenced Jan 14, 2018
@snakefoot snakefoot modified the milestones: 4.5 rc4, 4.5 Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation done all docs done (wiki, api docs, lists on nlog-project.org, xmldocs) feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants