2
2
3
3
if (! (Test-Path $cmdletsDir ))
4
4
{
5
- throw " cmdletsDir: '$cmdletsDir ' must be an existing directory containing cmdlet code"
5
+ throw " cmdletsDir: '$cmdletsDir ' must be an existing directory containing cmdlet code"
6
6
}
7
7
if (! (Test-Path $outputDir ))
8
8
{
9
- throw " outputDir: '$outputDir ' must be an existing directory"
9
+ throw " outputDir: '$outputDir ' must be an existing directory"
10
10
}
11
11
12
12
if ([string ]::IsNullOrWhiteSpace($env: WORKSPACE ) -or ! (Test-Path $env: WORKSPACE ))
13
13
{
14
- throw " env:WORKSPACE: '$env: WORKSPACE ' must be an existing directory"
14
+ throw " env:WORKSPACE: '$env: WORKSPACE ' must be an existing directory"
15
15
}
16
16
17
17
$packageSource = $packageSource.TrimEnd (' \\' )
@@ -34,19 +34,19 @@ $contentFileText = ""
34
34
$contentFiles | % { $contentFileText += (" <file src="" " + $_.Name + " "" target="" content"" />`r`n " )}
35
35
if ($packageId -ne " Microsoft.CLU.Commands" )
36
36
{
37
- $contentFileText += " <file src="" content\azure.lx"" target="" content"" />`r`n "
37
+ $contentFileText += " <file src="" content\azure.lx"" target="" content"" />`r`n "
38
38
}
39
39
if ($renameFileExists )
40
40
{
41
- $contentFileText += " <file src="" content\rename.cfg"" target="" content"" />`r`n "
41
+ $contentFileText += " <file src="" content\rename.cfg"" target="" content"" />`r`n "
42
42
}
43
43
$contentFileText += " <file src="" content\package.cfg"" target="" content"" />`r`n "
44
44
$sourceFileText = " "
45
45
$refFiles | % {$sourceFileText += (" <file src="" " + $_.Name + " "" target="" lib\dnxcore50"" />`r`n " )}
46
46
$outputContent = $fileContent -replace " %PackageVersion%" , $packageVersion
47
47
$outputContent = $outputContent -replace " %ReferenceFiles%" , $refFileText
48
- $outputContent = $outputContent -replace " %SourceFiles%" , $sourceFileText
49
- $outputContent = $outputContent -replace " %ContentFiles%" , $contentFileText
48
+ $outputContent = $outputContent -replace " %SourceFiles%" , $sourceFileText
49
+ $outputContent = $outputContent -replace " %ContentFiles%" , $contentFileText
50
50
Set-Content - Value $outputContent - Path $nuspecOutput
51
51
52
52
Write-Host " Creating nuget package..."
0 commit comments