-
Notifications
You must be signed in to change notification settings - Fork 847
Publish lkg as platform app dependent on Tools dotnetcli #1707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @if "%_echo%"=="" echo off | ||
| @if "%_echo%"=="" echo off | ||
|
|
||
| setlocal enableDelayedExpansion | ||
|
|
||
|
|
@@ -478,12 +478,11 @@ if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '0' ( | |
| rem Build Proto | ||
| if '%BUILD_PROTO%' == '1' ( | ||
| if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '1' ( | ||
|
|
||
| pushd .\lkg & %_dotnetexe% restore &popd | ||
| @if ERRORLEVEL 1 echo Error: dotnet restore failed && goto :failure | ||
|
|
||
| pushd .\lkg & %_dotnetexe% publish project.json -o %~dp0\Tools\lkg -r win7-x64 &popd | ||
| @if ERRORLEVEL 1 echo Error: dotnet publish failed && goto :failure | ||
| echo on | ||
| pushd .\lkg\fsc & %_dotnetexe% restore & popd & if ERRORLEVEL 1 echo Error:%errorlevel% dotnet restore failed & goto :failure | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error will never trigger because pushd .\lkg\fsc
%_dotnetexe% restore
if ERRORLEVEL 1 (
echo Error:%errorlevel% dotnet restore failed
goto failure
)
popd
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @brettfo A test script yields this result
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh, learn something new every day. |
||
| pushd .\lkg\fsi & %_dotnetexe% restore & popd & if ERRORLEVEL 1 echo Error:%errorlevel% dotnet restore failed & goto :failure | ||
| pushd .\lkg\fsc & %_dotnetexe% publish project.json --no-build -o %~dp0\Tools\lkg -r win7-x64 & popd & if ERRORLEVEL 1 echo Error: dotnet publish failed & goto :failure | ||
| pushd .\lkg\fsi & %_dotnetexe% publish project.json --no-build -o %~dp0\Tools\lkg -r win7-x64 & popd & if ERRORLEVEL 1 echo Error: dotnet publish failed & goto :failure | ||
|
|
||
| echo %_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj | ||
| %_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj | ||
|
|
@@ -512,7 +511,6 @@ if '%BUILD_PROTO%' == '1' ( | |
| ) | ||
|
|
||
|
|
||
|
|
||
| echo ---------------- Done with proto, starting build ------------------------ | ||
|
|
||
| if '%BUILD_PHASE%' == '1' ( | ||
|
|
@@ -573,15 +571,15 @@ setlocal disableDelayedExpansion | |
| if "%INCLUDE_TEST_SPEC_NUNIT%" == "" ( | ||
| if NOT "%EXCLUDE_TEST_SPEC_NUNIT%" == "" ( | ||
| set WHERE_ARG_NUNIT=--where "!(%EXCLUDE_TEST_SPEC_NUNIT%)" | ||
| ) | ||
| ) | ||
| ) | ||
| if NOT "%INCLUDE_TEST_SPEC_NUNIT%" == "" ( | ||
| if "%EXCLUDE_TEST_SPEC_NUNIT%" == "" ( | ||
| set WHERE_ARG_NUNIT=--where "%INCLUDE_TEST_SPEC_NUNIT%" | ||
| ) | ||
| ) | ||
| if NOT "%EXCLUDE_TEST_SPEC_NUNIT%" == "" ( | ||
| set WHERE_ARG_NUNIT=--where "%INCLUDE_TEST_SPEC_NUNIT% and !(%EXCLUDE_TEST_SPEC_NUNIT%)" | ||
| ) | ||
| set WHERE_ARG_NUNIT=--where "%INCLUDE_TEST_SPEC_NUNIT% and !(%EXCLUDE_TEST_SPEC_NUNIT%)" | ||
| ) | ||
| ) | ||
| if NOT "%INCLUDE_TEST_TAGS%" == "" ( | ||
| set INCLUDE_ARG_RUNALL=-ttags:%INCLUDE_TEST_TAGS% | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "version": "1.0.0-*", | ||
| "name": "fsc", | ||
| "buildOptions": { | ||
| "debugType": "portable", | ||
| "emitEntryPoint": true | ||
| }, | ||
| "dependencies": { | ||
| "Microsoft.FSharp.Compiler.netcore": "1.0.0-alpha-161102", | ||
| }, | ||
| "runtimes": { | ||
| "win7-x86": { }, | ||
| "win7-x64": { }, | ||
| "osx.10.10-x64": { }, | ||
| "ubuntu.14.04-x64": { } | ||
| }, | ||
| "frameworks": { | ||
| "netcoreapp1.0": { | ||
| "dependencies": { | ||
| "Microsoft.NETCore.App": { | ||
| "type": "platform", | ||
| "version": "1.0.1" | ||
| } | ||
| }, | ||
| "imports": "dnxcore50" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "postpublish": [ "cmd /c copy %publish:OutputPath%\\runtimes\\any\\native\\* %publish:OutputPath%" ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <packageSources> | ||
|
|
||
| <!--To inherit the global NuGet package sources remove the <clear/> line below --> | ||
| <clear /> | ||
| <add key="myget.org fsharp-daily" value="https://www.myget.org/F/fsharp-daily/api/v3/index.json" /> | ||
| <add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" /> | ||
| <add key="myget.org dotnet-buildtools" value="https://www.myget.org/F/dotnet-buildtools/api/v3/index.json" /> | ||
| <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
|
|
||
| </packageSources> | ||
| </configuration> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "version": "1.0.0-*", | ||
| "name": "fsi", | ||
| "buildOptions": { | ||
| "debugType": "portable", | ||
| "emitEntryPoint": true | ||
| }, | ||
| "dependencies": { | ||
| "Microsoft.FSharp.Compiler.netcore": "1.0.0-alpha-161102", | ||
| }, | ||
| "runtimes": { | ||
| "win7-x86": { }, | ||
| "win7-x64": { }, | ||
| "osx.10.10-x64": { }, | ||
| "ubuntu.14.04-x64": { } | ||
| }, | ||
| "frameworks": { | ||
| "netcoreapp1.0": { | ||
| "dependencies": { | ||
| "Microsoft.NETCore.App": { | ||
| "type": "platform", | ||
| "version": "1.0.1" | ||
| } | ||
| }, | ||
| "imports": "dnxcore50" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "postpublish": [ "cmd /c copy %publish:OutputPath%\\runtimes\\any\\native\\* %publish:OutputPath%" ] | ||
| } | ||
| } |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is
echoturned on here? The console output of the following commands will still be visible, just not what they were invoked with.Otherwise, indention.