@@ -24,7 +24,7 @@ public class DnuPublishTests
24
24
private static readonly string BatchFileTemplate = @"
25
25
@echo off
26
26
SET DNX_FOLDER={0}
27
- SET ""LOCAL_DNX=%~dp0approot\runtimes \%DNX_FOLDER%\bin\{1}.exe""
27
+ SET ""LOCAL_DNX=%~dp0runtimes \%DNX_FOLDER%\bin\{1}.exe""
28
28
29
29
IF EXIST %LOCAL_DNX% (
30
30
SET ""DNX_PATH=%LOCAL_DNX%""
@@ -47,7 +47,7 @@ @echo off
47
47
SET ""DNX_PATH={1}.exe""
48
48
)
49
49
50
- @""%DNX_PATH%"" --project ""%~dp0approot\src \{2}"" --configuration {3} {4} %*
50
+ @""%DNX_PATH%"" --project ""%~dp0src \{2}"" --configuration {3} {4} %*
51
51
" ;
52
52
53
53
private static readonly string BashScriptTemplate = @"#!/usr/bin/env bash
@@ -60,7 +60,7 @@ @echo off
60
60
done
61
61
DIR=""$( cd -P ""$( dirname ""$SOURCE"" )"" && pwd )""
62
62
63
- exec ""{1}{2}"" --project ""$DIR/approot/ src/{0}"" --configuration {3} {4} ""$@""" . Replace ( "\r \n " , "\n " ) ;
63
+ exec ""{1}{2}"" --project ""$DIR/src/{0}"" --configuration {3} {4} ""$@""" . Replace ( "\r \n " , "\n " ) ;
64
64
65
65
private static readonly string BasicLockFileTemplate = @"{
66
66
""locked"": false,
@@ -169,7 +169,7 @@ public void DnuPublishWebApp_RootAsPublicFolder(string flavor, string os, string
169
169
<handlers>
170
170
<add name=""httpplatformhandler"" path=""*"" verb=""*"" modules=""httpPlatformHandler"" resourceType=""Unspecified"" />
171
171
</handlers>
172
- <httpPlatform processPath=""..\web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log""></httpPlatform>
172
+ <httpPlatform processPath=""..\approot\ web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log""></httpPlatform>
173
173
</system.webServer>
174
174
</configuration>" ;
175
175
@@ -277,7 +277,7 @@ public void DnuPublishWebApp_SubfolderAsPublicFolder(string flavor, string os, s
277
277
<handlers>
278
278
<add name=""httpplatformhandler"" path=""*"" verb=""*"" modules=""httpPlatformHandler"" resourceType=""Unspecified"" />
279
279
</handlers>
280
- <httpPlatform processPath=""..\web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log""></httpPlatform>
280
+ <httpPlatform processPath=""..\approot\ web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log""></httpPlatform>
281
281
</system.webServer>
282
282
</configuration>" ;
283
283
@@ -1261,7 +1261,7 @@ public void DnuPublishWebApp_CopyExistingWebConfig(string flavor, string os, str
1261
1261
<handlers>
1262
1262
<add name=""httpplatformhandler"" path=""*"" verb=""*"" modules=""httpPlatformHandler"" resourceType=""Unspecified"" />
1263
1263
</handlers>
1264
- <httpPlatform processPath=""..\web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log""></httpPlatform>
1264
+ <httpPlatform processPath=""..\approot\ web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log""></httpPlatform>
1265
1265
</system.webServer>
1266
1266
</configuration>" ;
1267
1267
@@ -1353,7 +1353,7 @@ public void DnuPublishWebApp_UpdateExistingWebConfig(string flavor, string os, s
1353
1353
<handlers>
1354
1354
<add name=""httpplatformhandler"" path=""*"" verb=""*"" modules=""httpPlatformHandler"" resourceType=""Unspecified"" />
1355
1355
</handlers>
1356
- <httpPlatform processPath=""..\web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log"" rapidFailsPerMinute=""5""></httpPlatform>
1356
+ <httpPlatform processPath=""..\approot\ web.cmd"" arguments="""" stdoutLogEnabled=""true"" stdoutLogFile=""..\logs\stdout.log"" rapidFailsPerMinute=""5""></httpPlatform>
1357
1357
</system.webServer>
1358
1358
</configuration>" ;
1359
1359
@@ -1415,8 +1415,8 @@ public void GenerateBatchFilesAndBashScriptsWithoutPublishedRuntime(string flavo
1415
1415
'packages': {}
1416
1416
}" ;
1417
1417
var expectedOutputStructure = @"{
1418
- '.': ['run.cmd', 'run', 'kestrel.cmd', 'kestrel'],
1419
1418
'approot': {
1419
+ '.' : ['run.cmd', 'run', 'kestrel.cmd', 'kestrel'],
1420
1420
'global.json': '',
1421
1421
'src': {
1422
1422
'PROJECT_NAME': {
@@ -1496,11 +1496,11 @@ public void GenerateBatchFilesAndBashScriptsWithoutPublishedRuntime(string flavo
1496
1496
],
1497
1497
""packages"": ""packages""
1498
1498
}" )
1499
- . WithFileContents ( " run.cmd", BatchFileTemplate , string . Empty , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "run" )
1500
- . WithFileContents ( " kestrel.cmd", BatchFileTemplate , string . Empty , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "kestrel" )
1501
- . WithFileContents ( " run",
1499
+ . WithFileContents ( Path . Combine ( "approot" , " run.cmd") , BatchFileTemplate , string . Empty , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "run" )
1500
+ . WithFileContents ( Path . Combine ( "approot" , " kestrel.cmd") , BatchFileTemplate , string . Empty , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "kestrel" )
1501
+ . WithFileContents ( Path . Combine ( "approot" , " run") ,
1502
1502
BashScriptTemplate , testEnv . ProjectName , string . Empty , Constants . BootstrapperExeName , configuration , "run" )
1503
- . WithFileContents ( " kestrel",
1503
+ . WithFileContents ( Path . Combine ( "approot" , " kestrel") ,
1504
1504
BashScriptTemplate , testEnv . ProjectName , string . Empty , Constants . BootstrapperExeName , configuration , "kestrel" ) ;
1505
1505
1506
1506
Assert . True ( expectedOutputDir . MatchDirectoryOnDisk ( testEnv . PublishOutputDirPath ,
@@ -1523,8 +1523,8 @@ public void GenerateBatchFilesAndBashScriptsWithPublishedRuntime(string flavor,
1523
1523
'packages': {}
1524
1524
}" ;
1525
1525
var expectedOutputStructure = @"{
1526
- '.': ['run.cmd', 'run', 'kestrel.cmd', 'kestrel'],
1527
1526
'approot': {
1527
+ '.': ['run.cmd', 'run', 'kestrel.cmd', 'kestrel'],
1528
1528
'global.json': '',
1529
1529
'src': {
1530
1530
'PROJECT_NAME': {
@@ -1583,8 +1583,8 @@ public void GenerateBatchFilesAndBashScriptsWithPublishedRuntime(string flavor,
1583
1583
. RemoveFile ( Path . Combine ( "bin" , "lib" , "Microsoft.Dnx.Tooling" ,
1584
1584
"bin" , "profile" , "startup.prof" ) ) ;
1585
1585
1586
- var batchFileBinPath = string . Format ( @"%~dp0approot\runtimes \{0}\bin\" , runtimeName ) ;
1587
- var bashScriptBinPath = string . Format ( "$DIR/approot/ runtimes/{0}/bin/" , runtimeName ) ;
1586
+ var batchFileBinPath = string . Format ( @"%~dp0runtimes \{0}\bin\" , runtimeName ) ;
1587
+ var bashScriptBinPath = string . Format ( "$DIR/runtimes/{0}/bin/" , runtimeName ) ;
1588
1588
1589
1589
var expectedOutputDir = DirTree . CreateFromJson ( expectedOutputStructure )
1590
1590
. WithFileContents ( Path . Combine ( "approot" , "src" , testEnv . ProjectName , "project.json" ) , @"{
@@ -1617,11 +1617,11 @@ public void GenerateBatchFilesAndBashScriptsWithPublishedRuntime(string flavor,
1617
1617
],
1618
1618
""packages"": ""packages""
1619
1619
}" )
1620
- . WithFileContents ( " run.cmd", BatchFileTemplate , runtimeName , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "run" )
1621
- . WithFileContents ( " kestrel.cmd", BatchFileTemplate , runtimeName , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "kestrel" )
1622
- . WithFileContents ( " run",
1620
+ . WithFileContents ( Path . Combine ( "approot" , " run.cmd") , BatchFileTemplate , runtimeName , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "run" )
1621
+ . WithFileContents ( Path . Combine ( "approot" , " kestrel.cmd") , BatchFileTemplate , runtimeName , Constants . BootstrapperExeName , testEnv . ProjectName , configuration , "kestrel" )
1622
+ . WithFileContents ( Path . Combine ( "approot" , " run") ,
1623
1623
BashScriptTemplate , testEnv . ProjectName , bashScriptBinPath , Constants . BootstrapperExeName , configuration , "run" )
1624
- . WithFileContents ( " kestrel",
1624
+ . WithFileContents ( Path . Combine ( "approot" , " kestrel") ,
1625
1625
BashScriptTemplate , testEnv . ProjectName , bashScriptBinPath , Constants . BootstrapperExeName , configuration , "kestrel" )
1626
1626
. WithSubDir ( Path . Combine ( "approot" , "runtimes" , runtimeName ) , runtimeSubDir ) ;
1627
1627
@@ -1636,8 +1636,8 @@ public void PublishWithNoSourceOptionGeneratesLockFileOnClr(string flavor, strin
1636
1636
{
1637
1637
const string testApp = "NoDependencies" ;
1638
1638
string expectedOutputStructure = @"{
1639
- '.': ['hello', 'hello.cmd'],
1640
1639
'approot': {
1640
+ '.': ['hello', 'hello.cmd'],
1641
1641
'global.json': '',
1642
1642
'packages': {
1643
1643
'NoDependencies': {
@@ -1740,8 +1740,8 @@ public void PublishWithNoSourceOptionUpdatesLockFileOnClr(string flavor, string
1740
1740
{
1741
1741
const string testApp = "NoDependencies" ;
1742
1742
string expectedOutputStructure = @"{
1743
- '.': ['hello', 'hello.cmd'],
1744
1743
'approot': {
1744
+ '.': ['hello', 'hello.cmd'],
1745
1745
'global.json': '',
1746
1746
'packages': {
1747
1747
'NoDependencies': {
@@ -1853,8 +1853,8 @@ public void PublishWithIncludeSymbolsOptionIncludesSymbolsAndSourceCode(string f
1853
1853
{
1854
1854
const string testApp = "NoDependencies" ;
1855
1855
string expectedOutputStructure = @"{
1856
- '.': ['hello', 'hello.cmd'],
1857
1856
'approot': {
1857
+ '.': ['hello', 'hello.cmd'],
1858
1858
'global.json': '',
1859
1859
'packages': {
1860
1860
'NoDependencies': {
0 commit comments