[OutputType([void])]
param(
	[Parameter()]
	$config = "Release"
)

Remove-Item *.nupkg

$nuspecFiles = get-childitem FubarDev.FtpServer*\*.nuspec
ForEach ($nuspecFile in $nuspecFiles)
{
	$csFile = [System.IO.Path]::ChangeExtension($nuspecFile, ".csproj")
	& nuget pack "$csFile" -Properties "Configuration=$config" -IncludeReferencedProjects
}

[OutputType([void])]
param(
	[Parameter()]
	$version = "1.0.0-beta20",
	[Parameter()]
	$config = "Release"
)

Remove-Item *.nupkg

$nuspecFiles = get-childitem FubarDev.FtpServer*\*.nuspec
ForEach ($nuspecFile in $nuspecFiles)
{
	$csFile = [System.IO.Path]::ChangeExtension($nuspecFile, ".csproj")
	& nuget pack "$csFile" -Properties "Configuration=$config;Version=$version" -IncludeReferencedProjects
}

Fix for missing package version due to an non-working meta data extractor
Fix for missing package version due to an non-working meta data extractor
