Giter Site home page Giter Site logo

gillissm / thecodeattic.helix.powershellprojectcreator Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 55 KB

Sitecore Helix is a set of overall design principles and conventions for Sitecore development, put forth by Sitecore in hopes of providing the community a path toward standardized solution development. As part of this principle there are expected file system and Visual Studio Solution structures that are to be used, which can be time intensive to setup. This script is meant to be a utility to ease this setup process.

License: GNU General Public License v3.0

PowerShell 100.00%
sitecore-helix sitecore powershell-module sitecore-tool

thecodeattic.helix.powershellprojectcreator's Issues

Empty Project Flag

Include a flag to Invoke-NewModule which will signify the project should not have references or other file structure.

NuGet References

Provide a method that allows for listing specific NuGet packages to be installed.

Unit Test Create

Provide flag to Invoke-NewModule to indicate a Unit Test project should be created.

Property "FullName" cannot be found on the object

When I'm running the Invoke-NewModule command in Visual Studio 2019, I'm getting the following error in the NuGet console:

Get-VisualStudioTemplate : The property 'FullName' cannot be found on this object. Verify that the property exists.
At C:\Users\Kenneth
McAndrew\Documents\WindowsPowerShell\Modules\TheCodeAttic.Helix.PowerShellProjectCreator\TheCodeAttic.Helix.PowerShellProjectCreator.psm1:1686
char:29

  • ... platePath = Get-VisualStudioTemplate -TemplateName 'EmptyWebApplicati ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-VisualStudioTemplate

The property 'FullName' cannot be found on this object. Verify that the property exists.

Module fails in VS 2019

Scott,

I tried using the module for testing it out with Sitecore 9.3 on VS 2019. Ran into below issue

Invoke-NewModule -ModuleName Phani.Feature.AzureADGraph -Layer Feature -Verbose
`Invoke-CreateModuleProject : Value does not fall within the expected range.
At C:\Users\phani\Documents\WindowsPowerShell\Modules\Helix.ProjectCreator\Helix.ProjectCreator.psm1:1518 char:25

  • ... $projName = Invoke-CreateModuleProject -ModuleName $ModuleName -Layer ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CreateModuleProject

Value does not fall within the expected range.`

After doing a little more digging, found the issue is with below line. I searched online and MS documents for some clue but couldn't find anything that can help me resolve.
function Invoke-CreateModuleProject { . . . . . . **$sp.SubProject.Object.AddFromTemplate($ModuleProjectTemplate, $modulePath, $projName)**

Thanks
Venkata Phani Abburi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.