Downloads:

110,542

Downloads of v 0.14.0:

1,177

Last Update:

23 Mar 2015

Package Maintainer(s):

Software Author(s):

  • Glenn Block
  • Filip Wojcieszyn
  • Justin Rusbatch
  • Kristian Hellang
  • Damian Schenkelman
  • Adam Ralph

Tags:

roslyn csx script scriptcs

ScriptCs

This is not the latest version of ScriptCs available.

  • 1
  • 2
  • 3

0.14.0 | Updated: 23 Mar 2015

Downloads:

110,542

Downloads of v 0.14.0:

1,177

Maintainer(s):

Software Author(s):

  • Glenn Block
  • Filip Wojcieszyn
  • Justin Rusbatch
  • Kristian Hellang
  • Damian Schenkelman
  • Adam Ralph

  • 1
  • 2
  • 3
ScriptCs 0.14.0

This is not the latest version of ScriptCs available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Unknown


Verification Testing Unknown


Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install ScriptCs, run the following command from the command line or from PowerShell:

>

To upgrade ScriptCs, run the following command from the command line or from PowerShell:

>

To uninstall ScriptCs, run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade scriptcs -y --source="'INTERNAL REPO URL'" --version="'0.14.0'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade scriptcs -y --source="'INTERNAL REPO URL'" --version="'0.14.0'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install scriptcs
  win_chocolatey:
    name: scriptcs
    version: '0.14.0'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'scriptcs' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.14.0'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller scriptcs
{
    Name     = "scriptcs"
    Version  = "0.14.0"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'scriptcs':
  ensure   => '0.14.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 23 Mar 2015.

Description

Write .Net apps with a text editor, NuGet, and the power of Roslyn!


tools\Autofac.dll
 
tools\Autofac.Integration.Mef.dll
 
tools\chocolateyInstall.ps1
try {
    $tools = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $nuget = "$env:ChocolateyInstall\ChocolateyInstall\nuget"
    $nugetPath = "$tools\nugets"

    Write-Host "Retrieving NuGet dependencies..." -ForegroundColor DarkYellow

    $dependencies = @{
        "Roslyn.Compilers.CSharp" = "1.2.20906.2";
    }

    $dependencies.GetEnumerator() | %{ &nuget install $_.Name -version $_.Value -o $nugetPath }

    Get-ChildItem $nugetPath -Filter "*.dll" -Recurse | %{ Copy-Item $_.FullName $tools -Force }
    Remove-Item $nugetPath -Recurse -Force

    if (Test-Path "$tools\..\lib") {
        Remove-Item "$tools\..\lib" -Recurse -Force
    }

    # Handle upgrade from previous packages that installed to the %AppData%/scriptcs folders.
    $oldPaths = @(
        "$env:APPDATA\scriptcs",
        "$env:LOCALAPPDATA\scriptcs"
    )

    $oldPaths | foreach {
        # Remove the old user-specific scriptcs folders.
        if (Test-Path $_) {
            Remove-Item $_ -Recurse -Force
        }

        # Remove the user-specific path that got added in previous installs.
        # There's no Uninstall-ChocolateyPath yet so we need to do it manually.
        # https://github.com/chocolatey/chocolatey/issues/97
        $envPath = $env:PATH
        if ($envPath.ToLower().Contains($_.ToLower())) {
            $userPath = [Environment]::GetEnvironmentVariable("Path","User")
            if($userPath) {
                $actualPath = [System.Collections.ArrayList]($userPath).Split(";")
                $actualPath.Remove($_)
                $newPath =  $actualPath -Join ";"
                [Environment]::SetEnvironmentVariable("Path", $newPath, "User")
            }
        }

        Write-Host "'$_' has been removed." -ForegroundColor DarkYellow
    }
    Update-SessionEnvironment
    # End upgrade handling.

    Write-ChocolateySuccess 'scriptcs'
} catch {
    Write-ChocolateyFailure 'scriptcs' "$($_.Exception.Message)"
    throw
}
tools\Common.Logging.dll
 
tools\ICSharpCode.NRefactory.CSharp.dll
 
tools\ICSharpCode.NRefactory.dll
 
tools\Microsoft.Web.XmlTransform.dll
 
tools\Mono.Cecil.dll
 
tools\Mono.CSharp.dll
 
tools\Newtonsoft.Json.dll
 
tools\NuGet.Core.dll
 
tools\PowerArgs.dll
 
tools\Roslyn.Compilers.CSharp.dll
 
tools\Roslyn.Compilers.dll
 
tools\ScriptCs.Contracts.dll
 
tools\ScriptCs.Core.dll
 
tools\ScriptCs.Engine.Mono.dll
 
tools\ScriptCs.Engine.Roslyn.dll
 
tools\scriptcs.exe
 
tools\scriptcs.exe.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  </startup>
</configuration>
tools\ScriptCs.Hosting.dll
 

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
ScriptCs 0.17.0 1410 Monday, February 13, 2017 Approved
ScriptCs 0.16.1 7373 Thursday, April 7, 2016 Approved
ScriptCs 0.16.0 868 Saturday, April 2, 2016 Approved
ScriptCs 0.15.0 6893 Monday, August 3, 2015 Approved
ScriptCs 0.14.1 3846 Sunday, April 12, 2015 Approved
ScriptCs 0.14.0 1177 Monday, March 23, 2015 Approved
ScriptCs 0.13.3 1973 Tuesday, February 24, 2015 Approved
ScriptCs 0.13.2 1111 Saturday, February 7, 2015 Approved
ScriptCs 0.13.1 585 Thursday, February 5, 2015 Approved
Discussion for the ScriptCs Package

Ground Rules:

  • This discussion is only about ScriptCs and the ScriptCs package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or ScriptCs, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus