You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
Running the build task generates an issue when gitversion is installed.
===============================================================================
GENERATE CONCEPTUAL HELP
This task generates conceptual help for DSC resources.
-------------------------------------------------------------------------------
/build/Generate_Conceptual_Help
C:\source\FileSystemDsc\output\RequiredModules\DscResource.DocGenerator\0.3.0\tasks\Generate_Conceptual_Help.build.ps1:103
Project Path = C:\source\FileSystemDsc
Project Name = FileSystemDsc
Module Version = 1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14
Source Path = C:\source\FileSystemDsc\source
Built Module Path = C:\source\FileSystemDsc\output\FileSystemDsc\1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14
Generating conceptual help for all DSC resources based on source.
ERROR: Could not find a part of the path 'C:\source\FileSystemDsc\output\FileSystemDsc\1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14\DSCResources\DSC_FileSystemAccessRule\en-US\about_FileSystemAccessRule.help.txt'.
At C:\source\FileSystemDsc\output\RequiredModules\DscResource.DocGenerator\0.3.0\DscResource.DocGenerator.psm1:509 char:23
+ ... $output | Out-File -FilePath $savePath -Encoding 'ascii' -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At C:\source\FileSystemDsc\output\RequiredModules\DscResource.DocGenerator\0.3.0\tasks\Generate_Conceptual_Help.build.ps1:103 char:1
+ task Generate_Conceptual_Help {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At C:\source\FileSystemDsc\build.ps1:211 char:13
+ task $Workflow $WorkflowItem
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 6 tasks, 1 errors, 0 warnings 00:00:03.4087934
Out-File : Could not find a part of the path 'C:\source\FileSystemDsc\output\FileSystemDsc\1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14\DSCResources\DSC_FileSys
temAccessRule\en-US\about_FileSystemAccessRule.help.txt'.
At C:\source\FileSystemDsc\output\RequiredModules\DscResource.DocGenerator\0.3.0\DscResource.DocGenerator.psm1:509 char:23
+ ... $output | Out-File -FilePath $savePath -Encoding 'ascii' -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
Steps to reproduce the problem
Running the build step with gitversion installed.
Expected behavior
Should build the path with the correct module version.
Current behavior
Instead of building the path with the module version 1.0.0 it building the path using the informational version outputted from gitversion, e.g. 1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14.
Suggested solution to the issue
Change the following row to replace the property InformationalVersion with the property MajorMinorPatch.
Name Version Path
---- ------- ----
DscResource.DocGenerator 0.3.0 C:\source\FileSystemDsc\output\RequiredModules\DscResource.DocGenerator\0.3.0\DscResource.DocGenerator.psd1
The text was updated successfully, but these errors were encountered:
johlju
changed the title
Generate_Conceptual_Help: Using wrong property for the $ModuleVersion default value
Generate_Conceptual_Help: Using wrong property for the parameter $ModuleVersion default value
Feb 16, 2020
The parameter ModuleVersion seems to be set to the wrong value in a prior build step that sets the environment variable ModuleVersion to the value of the property InformationalVersion. This need to be resolved in that module as well.
johlju
added
bug
The issue is a bug.
help wanted
The issue is up for grabs for anyone in the community.
in progress
The issue is being actively worked on by someone.
and removed
help wanted
The issue is up for grabs for anyone in the community.
labels
Feb 16, 2020
Details of the scenario you tried and the problem that is occurring
Running the build task generates an issue when
gitversion
is installed.Steps to reproduce the problem
Running the build step with
gitversion
installed.Expected behavior
Should build the path with the correct module version.
Current behavior
Instead of building the path with the module version
1.0.0
it building the path using the informational version outputted fromgitversion
, e.g.1.0.0-add-resource0001+Sha.a60d7ff1210a7eea658d3d3e02fea70a5a2c78c7.Date.2020-02-14
.Suggested solution to the issue
Change the following row to replace the property
InformationalVersion
with the propertyMajorMinorPatch
.DscResource.DocGenerator/source/tasks/Generate_Conceptual_Help.build.ps1
Line 89 in eba282d
For reference, the output from
GitVersion
:The operating system the target node is running
Windows 10
Version and build of PowerShell the target node is running
Version of the module that was used
The text was updated successfully, but these errors were encountered: