GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'feature/sdk-projectsystem' of https://github.com/script… · scriptcs/scriptcs@2994b75

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .paket
    • Paket.Restore.targets
    • paket.bootstrapper.exe
  • .travis.yml
  • build.cmd
  • build.fsx
  • build.sh
  • paket.dependencies
  • paket.lock
  • src/ScriptCs
    • ScriptCs.csproj
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.paket/Paket.Restore.targets‎

Copy file name to clipboardExpand all lines: .paket/Paket.Restore.targets
+276Lines changed: 276 additions & 0 deletions
Large diffs are not rendered by default.
Collapse file

‎.paket/paket.bootstrapper.exe‎

Copy file name to clipboard
39 KB
Binary file not shown.
Collapse file

‎.travis.yml‎

Copy file name to clipboardExpand all lines: .travis.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install:
2727
script:
2828
- mkdir artifacts --parents
2929
- msbuild ./ScriptCs.sln /property:Configuration=Release /nologo /verbosity:normal
30-
- mono ./packages/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe test/ScriptCs.Tests.Acceptance/bin/Release/ScriptCs.Tests.Acceptance.dll
30+
- mono ./packages/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe test/ScriptCs.Tests.Acceptance/bin/Release/net461/ScriptCs.Tests.Acceptance.dll
3131

3232
addons:
3333
apt:
Collapse file

‎build.cmd‎

Copy file name to clipboard
+9-75Lines changed: 9 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,14 @@
1-
@if not defined _echo echo off
2-
setlocal EnableExtensions EnableDelayedExpansion
1+
@echo off
2+
cls
33

4-
@echo Start pre-build setup
5-
@echo Restoring global NuGet packages...
6-
@echo.
7-
.nuget\NuGet.exe restore .nuget\packages.config -PackagesDirectory .\packages
8-
echo.
9-
10-
REM Find the Visual Studio Locator utility
11-
REM https://github.com/Microsoft/vswhere
12-
13-
for /f "tokens=*" %%a in ('dir packages\vswhere.exe /b /s') do set p=%%a
14-
if not defined p (
15-
@echo Could not locate the Visual Studio Locator
16-
goto End
17-
)
18-
19-
20-
REM Visual Studio Version
21-
REM Legacy will find all version
22-
for /f "tokens=1* usebackq delims=" %%v in (`%p% -legacy -version "[14.0,16.0)" -property installationVersion`) do (
23-
set VSVersion=%%v
24-
REM Only get the first item
25-
goto PointA
26-
)
27-
28-
:PointA
29-
30-
REM Now find the installation directory
31-
REM https://support.microsoft.com/en-us/help/2524009/error-running-command-shell-scripts-that-include-parentheses
32-
33-
REM MSBuild is not in VS2015 folder
34-
REM So we set location to search for it
35-
set InstallDir=%PROGRAMFILES(X86)%\msbuild
36-
37-
if not "%VSVersion%" equ "14.0" (
38-
REM Visual Studio Installation Directory
39-
for /f "usebackq delims=" %%i in (`%p% -latest -version "[15.0,16.0)" -requires Microsoft.Component.MSBuild -property InstallationPath`) do (
40-
set InstallDir=%%i
41-
)
4+
.paket\paket.bootstrapper.exe
5+
if errorlevel 1 (
6+
exit /b %errorlevel%
427
)
438

44-
REM Now locate the MSBuild.exe by searching for it
45-
set MSBuildSearch="%InstallDir%\msbuild.exe"
46-
for /f "tokens=*" %%b in ('dir %MSBuildSearch% /b /s') do (
47-
set MSBuildExe=%%b
48-
REM only want the first one
49-
goto PointB
9+
.paket\paket.exe restore
10+
if errorlevel 1 (
11+
exit /b %errorlevel%
5012
)
51-
:PointB
52-
if not defined MSBuildExe (
53-
@echo Could not locate MSBuild.exe
54-
goto End
55-
)
56-
57-
:Start
58-
if exist artifacts goto Build
59-
mkdir artifacts
60-
61-
:Build
62-
@echo Starting msbuild...
63-
"%MSBuildExe%" Build\Build.proj /nologo /m /v:M %* /fl /flp:LogFile=artifacts\msbuild.log;Verbosity=Diagnostic;DetailedSummary /nr:false
64-
65-
if %ERRORLEVEL% neq 0 goto BuildFail
66-
goto BuildSuccess
67-
68-
:BuildFail
69-
echo.
70-
echo *** BUILD FAILED ***
71-
goto End
72-
73-
:BuildSuccess
74-
echo.
75-
echo **** BUILD SUCCESSFUL ***
76-
goto end
7713

78-
:End
79-
echo.
80-
exit /b %ERRORLEVEL%
14+
packages\FAKE\tools\FAKE.exe build.fsx %*
Collapse file

‎build.fsx‎

Copy file name to clipboard
+55Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#r "packages/FAKE/tools/FakeLib.dll"
2+
3+
open Fake
4+
open Fake.DotNetCli
5+
6+
Target "Clean" (fun _ ->
7+
!! "artifacts" ++ "src/*/bin" ++ "test/*/bin"
8+
|> DeleteDirs
9+
)
10+
11+
Target "Build" (fun _ ->
12+
DotNetCli.Restore id
13+
14+
"ScriptCs.sln"
15+
|> MSBuildHelper.build (fun p ->
16+
{ p with
17+
RestorePackagesFlag = true
18+
Verbosity = Some Minimal
19+
Targets = [ "Build" ]
20+
Properties =
21+
[
22+
"Optimize", "True"
23+
"Configuration", "Release"
24+
]
25+
} )
26+
)
27+
28+
Target "Test" (fun _ ->
29+
DotNetCli.Test
30+
(fun p ->
31+
{ p with
32+
Configuration = "Release" })
33+
)
34+
35+
Target "Pack" (fun _ ->
36+
"ScriptCs.sln"
37+
|> MSBuildHelper.build (fun p ->
38+
{ p with
39+
RestorePackagesFlag = true
40+
Verbosity = Some Minimal
41+
Targets = [ "Pack" ]
42+
Properties =
43+
[
44+
"Optimize", "True"
45+
"Configuration", "Release"
46+
"PackageOutputPath", "../../artifacts"
47+
]
48+
} )
49+
)
50+
51+
"Clean"
52+
==> "Build"
53+
==> "Pack"
54+
55+
RunTargetOrDefault "Pack"
Collapse file

‎build.sh‎

Copy file name to clipboard
+33-15Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
1-
#!/usr/bin/env bash
2-
set -e
3-
set -o pipefail
4-
set -x
5-
6-
# install
7-
mozroots --import --sync --quiet
8-
mono ./.nuget/NuGet.exe restore ./.nuget/packages.config -PackagesDirectory ./packages
9-
mono ./.nuget/NuGet.exe restore ./ScriptCs.sln
10-
11-
# script
12-
mkdir -p artifacts/Release/bin
13-
msbuild ./ScriptCs.sln /property:Configuration=Release /nologo /verbosity:normal
14-
cp src/ScriptCs/bin/Release/* artifacts/Release/bin/
15-
mono ./packages/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe test/ScriptCs.Tests.Acceptance/bin/Release/ScriptCs.Tests.Acceptance.dll
1+
#!/bin/bash
2+
if test "$OS" = "Windows_NT"
3+
then
4+
# use .Net
5+
6+
.paket/paket.bootstrapper.exe prerelease
7+
exit_code=$?
8+
if [ $exit_code -ne 0 ]; then
9+
exit $exit_code
10+
fi
11+
12+
.paket/paket.exe restore
13+
exit_code=$?
14+
if [ $exit_code -ne 0 ]; then
15+
exit $exit_code
16+
fi
17+
18+
packages/FAKE/tools/FAKE.exe $@ --nocache --fsiargs build.fsx
19+
else
20+
# use mono
21+
mono .paket/paket.bootstrapper.exe prerelease
22+
exit_code=$?
23+
if [ $exit_code -ne 0 ]; then
24+
exit $exit_code
25+
fi
26+
27+
mono .paket/paket.exe restore
28+
exit_code=$?
29+
if [ $exit_code -ne 0 ]; then
30+
exit $exit_code
31+
fi
32+
mono packages/FAKE/tools/FAKE.exe $@ --nocache --fsiargs -d:MONO build.fsx
33+
fi
Collapse file

‎paket.dependencies‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source https://nuget.org/api/v2
2+
3+
nuget FAKE
Collapse file

‎paket.lock‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NUGET
2+
remote: https://www.nuget.org/api/v2
3+
FAKE (4.64.6)
Collapse file

‎src/ScriptCs/ScriptCs.csproj‎

Copy file name to clipboardExpand all lines: src/ScriptCs/ScriptCs.csproj
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<PackageId>scriptcs</PackageId>
1212
<Description>Write .Net apps with a text editor, NuGet, and the power of Roslyn!</Description>
1313
<PackageTags>roslyn csx script scriptcs</PackageTags>
14+
<Description>scriptcs command line tool.</Description>
15+
<AssemblyName>scriptcs</AssemblyName>
1416
</PropertyGroup>
1517
<ItemGroup>
1618
<Compile Include="..\ScriptCs.Core\Guard.cs" Link="Guard.cs" />

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.