Skip to content

Location of settings.yml #175

Answered by daveaglick
rdeago asked this question in Q&A
Oct 27, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

The use of the working directory is by design to support the convention of having settings files in the same folder as the project and other .NET application artifacts (this is similar to ASP.NET or other applications that use the Microsoft.Extensions.Configuration libraries. This is further solidified by setting the RunWorkingDirectory MSBuild prop in the Statiq.App targets file here: https://github.com/statiqdev/Statiq.Framework/blob/1a8bd58e6f1a4e63f0cae2870db78126bc511928/src/core/Statiq.App/Statiq.App.targets#L3 - that ensures the working directory is set to the same directory as the project file (so we don't get weird working directory behavior).

So long story short, the convention …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rdeago
Comment options

You must be logged in to vote
1 reply
@daveaglick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants