Skip to content

ModuleOutput documentation inconsistency #27

@pauby

Description

@pauby

Expected Behavior

When setting $PSBPreference.Build.OutDir I expect the Output Directory specified to be used but it is not.

Current Behavior

Instead of the value of $PSBPreference.Build.OutDir being used as the Output Directory, "$projectRoot/Output" is used.

Possible Solution

The problem is two fold:

  1. The docs state that the module output directory can be changed using $PSBPreference.Build.OutDir;
  2. The code says that the actual variable to be used should be $BuildEnvironment.Build.ModuleOutDir ($BuildEnvironment in this case is actually $PSBPreference)

There needs to be an agreement on which of the above is correct - the docs or the code. Once that's known we can change the other one.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions