2016-04-28 23:30:32 +00:00
using System ;
2016-02-02 18:04:50 +00:00
using System.IO ;
using System.Runtime.InteropServices ;
2016-04-28 23:30:32 +00:00
using Microsoft.DotNet.InternalAbstractions ;
2016-02-02 18:04:50 +00:00
namespace Microsoft.DotNet.Cli.Build
{
public static class Dirs
{
2016-03-07 20:20:50 +00:00
public static readonly string RepoRoot = Directory . GetCurrentDirectory ( ) ;
2016-02-02 18:04:50 +00:00
public static readonly string Output = Path . Combine (
2016-03-07 20:20:50 +00:00
RepoRoot ,
2016-02-02 18:04:50 +00:00
"artifacts" ,
2016-04-28 23:30:32 +00:00
RuntimeEnvironment . GetRuntimeIdentifier ( ) ) ;
Extract dotnet-compile-fsc into a standalone command
Add basic Tests for dotnet-compile-fsc
Package Targets execute before TestTargets. Use Generated Nuget Packages in TestTargets. Generate Nuget packages on all platforms, and in C#
Fix bug in dotnet-restore, change fsharp new template, add support for native assets in DependencyContextCsvReader
copy fsc.exe to temp directory instead of package cache
fix rebase error
fix issue
fixes
fixes
fix
temporarily disable debian package e2e testing
fixes
bump fsc version
update fsc version
fix rebase errors
WIP update fsc tool
WIP, rebased and working again, need to solve issues with System.CommandLine
Working state for packaged, command, fsc.exe bugging out with dlopen(, 1): no suitable image found.
execute fsc like a unpublished standalone app
fixup after rebase
working? internet is out
working
cleanup
More cleanup, and run the debian package tests during the Test phase of the build.
update FSharp Test Projects NetStandard Library Version
Update Version Suffix when packing TestPackages. This will enable packing with the right dependency versions on Windows.
update dotnet-test version
Undo the reordering of the build
fix test package project pathsj
ignore net451 build failures for test packages which we need to build on non-windows
update dependency of desktop test app
add dotnetcli feed to nuget config for fsharp dotnet new
update deps after rebase
update dependency of dotnet-compile-fsc
pass args before commandPath when using muxer for tools
adjust testpackage cleaning not to clean packages which are also generated as part of the product from the nuget cache.
undo
Pass projectJson to pack instead of using WorkingDirectory
fix path separators using depsjsoncommandresolver on windows, fix building only specific frameworks for testpackages on non-windows.
PR Feedback
rebase
overwrite fsc runtimeconfig
2016-03-12 00:41:00 +00:00
2016-04-07 00:45:38 +00:00
public static readonly string Intermediate = Path . Combine ( Output , "intermediate" ) ;
Extract dotnet-compile-fsc into a standalone command
Add basic Tests for dotnet-compile-fsc
Package Targets execute before TestTargets. Use Generated Nuget Packages in TestTargets. Generate Nuget packages on all platforms, and in C#
Fix bug in dotnet-restore, change fsharp new template, add support for native assets in DependencyContextCsvReader
copy fsc.exe to temp directory instead of package cache
fix rebase error
fix issue
fixes
fixes
fix
temporarily disable debian package e2e testing
fixes
bump fsc version
update fsc version
fix rebase errors
WIP update fsc tool
WIP, rebased and working again, need to solve issues with System.CommandLine
Working state for packaged, command, fsc.exe bugging out with dlopen(, 1): no suitable image found.
execute fsc like a unpublished standalone app
fixup after rebase
working? internet is out
working
cleanup
More cleanup, and run the debian package tests during the Test phase of the build.
update FSharp Test Projects NetStandard Library Version
Update Version Suffix when packing TestPackages. This will enable packing with the right dependency versions on Windows.
update dotnet-test version
Undo the reordering of the build
fix test package project pathsj
ignore net451 build failures for test packages which we need to build on non-windows
update dependency of desktop test app
add dotnetcli feed to nuget config for fsharp dotnet new
update deps after rebase
update dependency of dotnet-compile-fsc
pass args before commandPath when using muxer for tools
adjust testpackage cleaning not to clean packages which are also generated as part of the product from the nuget cache.
undo
Pass projectJson to pack instead of using WorkingDirectory
fix path separators using depsjsoncommandresolver on windows, fix building only specific frameworks for testpackages on non-windows.
PR Feedback
rebase
overwrite fsc runtimeconfig
2016-03-12 00:41:00 +00:00
public static readonly string PackagesIntermediate = Path . Combine ( Output , "packages/intermediate" ) ;
2016-02-02 18:04:50 +00:00
public static readonly string Packages = Path . Combine ( Output , "packages" ) ;
public static readonly string Stage1 = Path . Combine ( Output , "stage1" ) ;
public static readonly string Stage1Compilation = Path . Combine ( Output , "stage1compilation" ) ;
2016-04-05 03:13:13 +00:00
public static readonly string Stage1Symbols = Path . Combine ( Output , "stage1symbols" ) ;
2016-02-02 18:04:50 +00:00
public static readonly string Stage2 = Path . Combine ( Output , "stage2" ) ;
public static readonly string Stage2Compilation = Path . Combine ( Output , "stage2compilation" ) ;
2016-04-05 03:13:13 +00:00
public static readonly string Stage2Symbols = Path . Combine ( Output , "stage2symbols" ) ;
2016-04-22 02:18:05 +00:00
public static readonly string CorehostLatest = Path . Combine ( Output , "corehost" ) ; // Not using Path.Combine(Output, "corehost", "latest") to keep signing working.
public static readonly string CorehostLocked = Path . Combine ( Output , "corehost" , "locked" ) ;
public static readonly string CorehostLocalPackages = Path . Combine ( Output , "corehost" ) ;
2016-04-13 00:29:07 +00:00
public static readonly string CorehostDummyPackages = Path . Combine ( Output , "corehostdummypackages" ) ;
2016-02-02 18:04:50 +00:00
public static readonly string TestOutput = Path . Combine ( Output , "tests" ) ;
2016-02-18 19:35:01 +00:00
public static readonly string TestArtifacts = Path . Combine ( TestOutput , "artifacts" ) ;
2016-02-02 18:04:50 +00:00
public static readonly string TestPackages = Path . Combine ( TestOutput , "packages" ) ;
Extract dotnet-compile-fsc into a standalone command
Add basic Tests for dotnet-compile-fsc
Package Targets execute before TestTargets. Use Generated Nuget Packages in TestTargets. Generate Nuget packages on all platforms, and in C#
Fix bug in dotnet-restore, change fsharp new template, add support for native assets in DependencyContextCsvReader
copy fsc.exe to temp directory instead of package cache
fix rebase error
fix issue
fixes
fixes
fix
temporarily disable debian package e2e testing
fixes
bump fsc version
update fsc version
fix rebase errors
WIP update fsc tool
WIP, rebased and working again, need to solve issues with System.CommandLine
Working state for packaged, command, fsc.exe bugging out with dlopen(, 1): no suitable image found.
execute fsc like a unpublished standalone app
fixup after rebase
working? internet is out
working
cleanup
More cleanup, and run the debian package tests during the Test phase of the build.
update FSharp Test Projects NetStandard Library Version
Update Version Suffix when packing TestPackages. This will enable packing with the right dependency versions on Windows.
update dotnet-test version
Undo the reordering of the build
fix test package project pathsj
ignore net451 build failures for test packages which we need to build on non-windows
update dependency of desktop test app
add dotnetcli feed to nuget config for fsharp dotnet new
update deps after rebase
update dependency of dotnet-compile-fsc
pass args before commandPath when using muxer for tools
adjust testpackage cleaning not to clean packages which are also generated as part of the product from the nuget cache.
undo
Pass projectJson to pack instead of using WorkingDirectory
fix path separators using depsjsoncommandresolver on windows, fix building only specific frameworks for testpackages on non-windows.
PR Feedback
rebase
overwrite fsc runtimeconfig
2016-03-12 00:41:00 +00:00
public static readonly string TestPackagesBuild = Path . Combine ( TestOutput , "packagesBuild" ) ;
2016-02-02 18:04:50 +00:00
public static readonly string OSXReferenceAssembliesPath = "/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks" ;
public static readonly string UsrLocalReferenceAssembliesPath = "/usr/local/lib/mono/xbuild-frameworks" ;
public static readonly string UsrReferenceAssembliesPath = "/usr/lib/mono/xbuild-frameworks" ;
Extract dotnet-compile-fsc into a standalone command
Add basic Tests for dotnet-compile-fsc
Package Targets execute before TestTargets. Use Generated Nuget Packages in TestTargets. Generate Nuget packages on all platforms, and in C#
Fix bug in dotnet-restore, change fsharp new template, add support for native assets in DependencyContextCsvReader
copy fsc.exe to temp directory instead of package cache
fix rebase error
fix issue
fixes
fixes
fix
temporarily disable debian package e2e testing
fixes
bump fsc version
update fsc version
fix rebase errors
WIP update fsc tool
WIP, rebased and working again, need to solve issues with System.CommandLine
Working state for packaged, command, fsc.exe bugging out with dlopen(, 1): no suitable image found.
execute fsc like a unpublished standalone app
fixup after rebase
working? internet is out
working
cleanup
More cleanup, and run the debian package tests during the Test phase of the build.
update FSharp Test Projects NetStandard Library Version
Update Version Suffix when packing TestPackages. This will enable packing with the right dependency versions on Windows.
update dotnet-test version
Undo the reordering of the build
fix test package project pathsj
ignore net451 build failures for test packages which we need to build on non-windows
update dependency of desktop test app
add dotnetcli feed to nuget config for fsharp dotnet new
update deps after rebase
update dependency of dotnet-compile-fsc
pass args before commandPath when using muxer for tools
adjust testpackage cleaning not to clean packages which are also generated as part of the product from the nuget cache.
undo
Pass projectJson to pack instead of using WorkingDirectory
fix path separators using depsjsoncommandresolver on windows, fix building only specific frameworks for testpackages on non-windows.
PR Feedback
rebase
overwrite fsc runtimeconfig
2016-03-12 00:41:00 +00:00
2016-02-02 18:04:50 +00:00
public static string NuGetPackages = Environment . GetEnvironmentVariable ( "NUGET_PACKAGES" ) ? ? GetNuGetPackagesDir ( ) ;
private static string GetNuGetPackagesDir ( )
{
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
{
return Path . Combine ( Environment . GetEnvironmentVariable ( "USERPROFILE" ) , ".nuget" , "packages" ) ;
}
return Path . Combine ( Environment . GetEnvironmentVariable ( "HOME" ) , ".nuget" , "packages" ) ;
}
}
}