Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 24 2021 12:20
    @pauby banned @danaqq2_twitter
  • Feb 01 2021 17:14
    @pauby banned @boubou
  • Nov 26 2018 18:09
    @ferventcoder banned @Mikewazovsk1
Dan Friedman
@MisinformedDNA
@pauby This ended up working powershell -Command { Install-Module posh-git -Scope CurrentUser -Force -AllowPrerelease }. Thanks.
Paul Broadwith
@pauby
@MisinformedDNA Awesome. Glad you got it sorted!
Dan Friedman
@MisinformedDNA
image.png
I'm trying to run Install-ChocolateyVsixPackage in my Boxstarter package, but it always fails with "ERROR: Visual Studio is not installed or the specified version is not present". Debugging through the code, I believe it is looking for a registry entry with a property named "InstallDir", but it doesn't exist.
NOTE: VS was installed in a previous package with choco upgrade visualstudio2019enterprise
Kim J. Nordmo
@AdmiringWorm
@MisinformedDNA the Install-ChocolateyVsixPackage helper unfortunately only works for older version of Visual Studio (I think it was for VS2015 and below). You need to use a helper function in the package chocolatey-visualstudio.extension instead
Dan Friedman
@MisinformedDNA
ok thanks. I'll give it a go
Kim J. Nordmo
@AdmiringWorm
The helper you need to use in that package is called Install-VisualStudioVsixExtension
Dan Friedman
@MisinformedDNA
Worked great. Thanks!
Kim J. Nordmo
@AdmiringWorm
:+1:
Dan Friedman
@MisinformedDNA
Kim J. Nordmo
@AdmiringWorm
AFAIK, there is no way to get a versionless url.
You would probably know of the marketplace API to be able to do that, but that is something I have never looked into
Dan Friedman
@MisinformedDNA
ok cool thx
Dan Friedman
@MisinformedDNA
I couldn't find a Marketplace API, so I just threw this together:
function Install-VisualStudioVsixExtensionFromVSMarketplace($itemName) {
    $packageUrl = Get-VisualStudioMarketplaceDownloadUrl($itemName)
    Install-VisualStudioVsixExtension -Name $itemName -Url $packageUrl
}

function Get-VisualStudioMarketplaceDownloadUrl($itemName) {
    $marketplaceUrl = "https://marketplace.visualstudio.com/"
    $itemUrl = "$($marketplaceUrl)items?itemName=$itemName"
    $response = Invoke-WebRequest $itemUrl -UseBasicParsing
    $href = ($response.Links | Where-Object { $_.class -eq "install-button-container" }).href

    return "$marketplaceUrl$href"
}

Install-VisualStudioVsixExtensionFromVSMarketplace MadsKristensen.Tweaks
Paul Broadwith
@pauby
This isn't directly related to Boxstarter @MisinformedDNA - this is an issue with that particular helper.
Gary Ewan Park
@gep13
@/all Starting at 0830 UTC, we will be performing some scheduled maintenance on the Chocolatey Community Repository. We will notify again once this work is complete. You can follow the status here: https://status.chocolatey.org/issues/2021-03-10-scheduled-maintenance/
Gary Ewan Park
@gep13
@/all The scheduled maintenance has now been completed, and systems are operating normally again. Thank you for your patience.
Paul Broadwith
@pauby
@/all Maintenance has been scheduled on Monday 22 March at 8am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all The website is going down for scheduled maintenance. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all Maintenance is now complete. Thank you for your patience. https://status.chocolatey.org
Paul Broadwith
@pauby
@/all Downtime on the website and other Chocolatey services has been scheduled for Wednesday 31 March between 6am and 11am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We are performing scheduled updates to the Chocolatey website and Chocolatey services. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all Scheduled updates have now been completed and the site and Chocolatey services are available again. Thank you for your patience. See the status page for more information.
Dan Friedman
@MisinformedDNA
Hi, a question for my ignorance: Why does New-BoxstarterPackage not create the nuspec in the current directory (or in -Path, if specified)? Nuspec's are generally committed to source control, right?
Manfred Wallner
@mwallner
Hi @MisinformedDNA - imo this is just the way it has been designed by Matt initially.
by moving the nuspec/package directly into the "boxstarter repository" you can easily transform an arbitrary powershell file into a package and install it right away / later on :-)
Gary Ewan Park
@gep13
@/all Downtime on the website and other Chocolatey services has been scheduled for Wednesday 21 April between 9am and 11am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Gary Ewan Park
@gep13
@/all We are performing scheduled updates to the Chocolatey website and Chocolatey services. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We have completed the updates and the Chocolatey website and Chocolatey services are now available. See the status page for more information.
Paul Broadwith
@pauby
@/all Downtime on the website and other Chocolatey services has been scheduled for Tuesday 27 April between 9am and 11am UTC. See the status page for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We are performing scheduled updates to the Chocolatey website and Chocolatey services. See the status page https://status.chocolatey.org for more information on how this may impact you and your use of Chocolatey services.
Paul Broadwith
@pauby
@/all We have completed maintenance and the Chocolatey website and Chocolatey services are now available. See the status page https://status.chocolatey.org for more information.
Kiran Hegde
@kirannhegde

Hello All, I am trying to use the Chocolatey test runner's powershell cmdlet: Set-BoxstarterDeployOptions. As arguments to this cmdlet, i am providing the url to our internal Artifactory server using the DefaultNugetFeed parameter. I am trying to use the API key using the parameter : DefaultFeedAPIKey. However, i am running into the following issue
```Cannot process argument transformation on parameter 'DefaultFeedAPIKey'. Cannot convert
value "<my API key>" to type "System.Guid". Error: "Guid
should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
At line:1 char:295

  • ... tFeedAPIKey AKCp8hzDDZBqPt1TBD3uRVdfTw8NpwR9A5iySWZHdtdykFyrUgfpZDHNC ...
  • ~~~~~~~~~~~~~
    • CategoryInfo : InvalidData: (:) [Set-BoxstarterDeployOptions], ParameterBindingArgumentTransformationEx
      ception
    • FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-BoxstarterDeployOptions```

The API key is more than 32 characters in length. So is this a limitation of the Chooclatey test runner that the API key needs to be 32 characters in length?
Any help would be very much appreciated.

Paul Broadwith
@pauby
@/all We are moving to Discord for our Community! More details to follow. Join us at https://ch0.co/community and https://ch0.co/community-support!
Paul Broadwith
@pauby
@/all We are moving to Discord for our Community! This room will no longer be used for support from 11 November. Join us at https://ch0.co/community and https://ch0.co/community-support!
Paul Broadwith
@pauby
@/all We are moving to Discord for our Community! This room will no longer be used for support from 11 November. Join us at https://ch0.co/community and https://ch0.co/community-support!
Paul Broadwith
@pauby
@/all We are moving to Discord for our Community! This room will no longer be used for support in THREE DAYS, on 11 November. Join us at https://ch0.co/community and https://ch0.co/community-support!
Paul Broadwith
@pauby
@/all We are moving to Discord for our Community! This room will no longer be accessible FROM TOMORROW, 11 November. Join us at https://ch0.co/community and https://ch0.co/community-support
Paul Broadwith
@pauby
@mikeschinkel We have moved to Discord for our Community! Join us at https://ch0.co/community and https://ch0.co/community-support
Gary Ewan Park
@gep13

@/all We have enabled a bot in this room which will automatically delete any messages that are not from the Gitter Chocolatey Moderation Team.

We would encourage everyone to use the new Chocolatey Community Chat on Discord at https://ch0.co/community and https://ch0.co/community-support if you have any questions.