Remove dead NuGet code

This is legacy localization code. Not needed anymore.
上级 0ea86890
#r "System.Xml.Linq.dll"
open System.Xml
open System.IO
type Args = { InFile : string; OutFile : string; ToolsPackage : bool }
let args =
let argToArgs (args : Args) (arg : string) =
if arg.StartsWith("/out:") then
{ args with OutFile = arg.[5..] }
elif arg = "/toolsPackage" then
{ args with ToolsPackage = true }
else
{ args with InFile = arg }
Seq.fold
<| argToArgs
<| { InFile = ""; OutFile = ""; ToolsPackage = false }
<| fsi.CommandLineArgs.[1..]
let originalXml =
let xml = new XmlDocument()
xml.Load(args.InFile)
xml
let rewrite =
// Is this a tools package? If so, we simply want to add the localized
// name to the id, change the language, and sub the localized description
let langString = "$langCode$"
let ns = "http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"
let nsmgr = new XmlNamespaceManager(originalXml.NameTable)
nsmgr.AddNamespace("ns", ns)
let oldId = originalXml.SelectSingleNode("ns:package/ns:metadata/ns:id", nsmgr)
let oldIdText = oldId.InnerText
let newId = oldIdText + "." + langString
oldId.InnerText <- newId
// Change the <language /> to the language code given as an argument
let langNode = originalXml.SelectSingleNode("ns:package/ns:metadata/ns:language", nsmgr)
langNode.InnerText <- langString
let filesNode = originalXml.SelectSingleNode("ns:package/ns:files", nsmgr)
if not args.ToolsPackage then
// Remove all existing dependencies and add one dependency to the original package
let mutable dependenciesNode = originalXml.SelectSingleNode("ns:package/ns:metadata/ns:dependencies", nsmgr)
if dependenciesNode <> null then
dependenciesNode.RemoveAll()
else
// If we have no dependencies node, we need to create it
dependenciesNode <- originalXml.CreateElement("dependencies", ns)
let originalPackageDependencyNode = originalXml.CreateElement("dependency", ns)
originalPackageDependencyNode.SetAttribute("id", oldIdText)
originalPackageDependencyNode.SetAttribute("version", "[$currentVersion$]")
dependenciesNode.AppendChild(originalPackageDependencyNode) |> ignore
// Remove requireLicenseAcceptance node
let rlaNode = originalXml.SelectSingleNode("ns:package/ns:metadata/ns:requireLicenseAcceptance", nsmgr)
rlaNode.ParentNode.RemoveChild(rlaNode) |> ignore
// Remove all <file> nodes
filesNode.RemoveAll()
// Add a comment about where to add localized files
let fileComment = originalXml.CreateComment(" Add references to localized resource dlls here." +
" Ensure the target includes the loc suffix directory language code")
filesNode.AppendChild(fileComment) |> ignore
// Pretty print the xml
use stringWriter = new StringWriter()
use writer = new XmlTextWriter(stringWriter)
writer.Formatting <- Formatting.Indented
originalXml.WriteContentTo(writer)
stringWriter.ToString()
if args.OutFile <> "" then
File.WriteAllText(args.OutFile, rewrite)
else
printfn "%s" rewrite
\ No newline at end of file
param(
[Parameter(Mandatory=$true)]
[string]$DropBasePath,
[Parameter(Mandatory=$true)]
[string]$Version,
[Parameter(Mandatory=$true)]
[string]$BinariesPath
)
[array]$compilerNuGets = @(
,"Microsoft.CodeAnalysis.Common"
,"Microsoft.CodeAnalysis.Compilers"
,"Microsoft.CodeAnalysis.CSharp"
,"Microsoft.CodeAnalysis.VisualBasic"
)
[array]$ideNuGets = @(
,"Microsoft.CodeAnalysis.EditorFeatures.Text"
,"Microsoft.CodeAnalysis.CSharp.Workspaces"
,"Microsoft.CodeAnalysis.VisualBasic.Workspaces"
,"Microsoft.CodeAnalysis.Workspaces.Common"
,"Microsoft.VisualStudio.LanguageServices"
)
# Table of languages we want to localize from ISO code to culture name
$languages = @(
,@("CHS", "zh-Hans", "Chinese (Simplified)")
,@("CHT", "zh-Hant", "Chinese (Traditional)")
,@("DEU", "de", "German")
,@("ESN", "es", "Spanish")
,@("FRA", "fr", "French")
,@("ITA", "it", "Italian")
,@("JPN", "ja", "Japanese")
,@("KOR", "ko", "Korean")
,@("RUS", "ru", "Russian")
# ,@("CSY", "cs", "Czech")
# ,@("PTB", "pt", "Portugeuese")
# ,@("PLK", "pl", "Polish")
# ,@("TRK", "tr", "Turkish")
)
$author = "Microsoft"
$projectUrl = "http://msdn.com/roslyn"
$releaseNotes = 'Preview of Microsoft .NET Compiler Platform ("Roslyn")'
$prereleaseUrlRedist = "http://go.microsoft.com/fwlink/?LinkId=394369"
$prereleaseUrlNonRedist = "http://go.microsoft.com/fwlink/?LinkId=394372"
$tags = ""
$outdir = "$PSScriptRoot\..\..\..\Open\Binaries\NuGet.loc"
# Load in the NuGet.exe information
. "$PSScriptRoot\..\..\..\Open\builds\scripts\LoadNuGetInfo.ps1"
write-host "NuGet.exe path is $nugetexe"
$nugetArgs = @("pack", "-OutputDirectory", $outdir, "-prop", "authors=$author",
"-prop", "projectUrl=$projectUrl", "-prop", "currentVersion=$Version",
"-prop", "releaseNotes=""$releaseNotes""", "-prop", "tags=$tags"
)
function GetResourcesDirectory($isoLanguage, [bool]$isCompilerNuget)
{
$resourcesPath = $DropBasePath
$compilerSuffix = "binaries.x86ret\Localized\simship\$isoLanguage\ExternalApis\Roslyn\"
$ideSuffix = "binaries.x86ret\Localized\$isoLanguage\ExternalApis\Roslyn\"
# Now for the special casing
if ($isoLanguage -eq "JPN")
{
$resourcesPath = Join-Path $resourcesPath "LOC"
}
elseif (@("CSY","PLK","PTB","TRK") -icontains $isoLanguage)
{
$resourcesPath = Join-Path $resourcesPath "CLE"
}
else
{
$resourcesPath = Join-Path $resourcesPath $isoLanguage
}
if ($isCompilerNuget)
{
$resourcesPath = Join-Path $resourcesPath $compilerSuffix
}
else
{
$resourcesPath = Join-Path $resourcesPath $ideSuffix
}
$resourcesPath
}
if (!(Test-Path $outdir))
{
mkdir $outdir
}
foreach ($lang in $languages)
{
# Generate compiler library NuGets
foreach ($nugetName in $compilerNugets)
{
$resourcesDir = GetResourcesDirectory $lang[0] $true
$fullArgs = $nugetArgs + @("-prop", "langCode=$($lang[1])", "-prop",
"language=$($lang[2])", "-BasePath", "$resourcesDir",
"-prop", "licenseUrl=$prereleaseUrlNonRedist",
"$PSScriptRoot\NuSpec.loc\$nugetName.loc.nuspec")
& "$nugetExe" $fullArgs
}
# Generate IDE library NuGets
foreach ($nugetName in $ideNugets)
{
$resourcesDir = GetResourcesDirectory $lang[0] $false
$fullArgs = $nugetArgs + @("-prop", "langCode=$($lang[1])",
"-prop", "language=$($lang[2])", "-BasePath", "$resourcesDir",
"-prop", "licenseUrl=$prereleaseUrlRedist"
"$PSScriptRoot\NuSpec.loc\$nugetName.loc.nuspec")
& "$nugetExe" $fullArgs
}
# Generate Microsoft.Net.Compilers
$randomDirName = Join-Path ([System.IO.Path]::GetTempPath()) ([System.IO.Path]::GetRandomFileName())
mkdir $randomDirName
cp @("$BinariesPath\Microsoft.CodeAnalysis.dll",
"$BinariesPath\Microsoft.CodeAnalysis.CSharp.dll",
"$BinariesPath\Microsoft.CodeAnalysis.VisualBasic.dll",
"$BinariesPath\Microsoft.Net.ToolsetCompilers.props",
"$BinariesPath\csc.exe",
"$BinariesPath\vbc.exe",
"$BinariesPath\System.Collections.Immutable.dll",
"$BinariesPath\System.Reflection.Metadata.dll",
"$BinariesPath\VBCSCompiler.exe",
"$BinariesPath\VBCSCompiler.exe.config",
"$BinariesPath\ThirdPartyNotices.rtf") $randomDirName
$resourcesDir = GetResourcesDirectory $lang[0] $true
cp $resourcesDir\* $randomDirName
$fullArgs = $nugetArgs + @("-prop", "langCode=$($lang[1])",
"-prop", "language=$($lang[2])", "-BasePath", "$randomDirName",
"-prop", "licenseUrl=$prereleaseUrlRedist"
"$PSScriptRoot\NuSpec.loc\Microsoft.Net.Compilers.loc.nuspec")
& "$nugetExe" $fullArgs
rm -r -Force $randomDirName
}
# Copied from http://jeffhandley.com/archive/2012/12/13/Bulk-Publishing-NuGet-Packages.aspx
$defaultGalleryUrl = "https://ms-nuget.cloudapp.net"
function Submit-Package {
<#
.SYNOPSIS
Submits a NuGet package (or set of packages) to the gallery, but as hidden (unlisted).
.DESCRIPTION
Uploads the specified package (or all packages from a packages.config file) to the gallery and then immediately marks the package(s) as unlisted by running the nuget delete command.
.EXAMPLE
Submit-Package -packageId MyAwesomePackage -packageVersion 2.0.0.0 -packageFile MyAwesomePackage.2.0.0.nupkg -apiKey 00000000-0000-0000-0000-000000000000 -galleryUrl https://nuget.org
.EXAMPLE
Submit-Package -packagesConfig packages.config -apiKey 00000000-0000-0000-0000-000000000000 -galleryUrl https://nuget.org
.PARAMETER packageId
The Id of the package to hide/show
.PARAMETER packageVersion
The Version of the package to hide/show
.PARAMETER packageFile
The nupkg file to upload for the NuGet package
.PARAMETER packagesConfig
The XML config file that lists the packages to be hidden/shown
.PARAMETER galleryUrl
The NuGet gallery Url to connect to. By default, https://nuget.org
#>
param(
[Parameter(ParameterSetName="package")] $packageId,
[Parameter(ParameterSetName="package")] $packageVersion,
[Parameter(ParameterSetName="package")] $packageFile,
[Parameter(ParameterSetName="config")] $packagesConfig,
$apiKey,
$galleryUrl = $defaultGalleryUrl
)
If ($apiKey -eq $null) { throw "Parameter 'apiKey' was not specified" }
If ($galleryUrl -eq $null) { throw "Parameter 'galleryUrl' was not specified" }
If ($PSCmdlet.ParameterSetName -match "package") {
If ($packageId -eq $null) { throw "Parameter 'packageId' was not specified" }
If ($packageVersion -eq $null) { throw "Parameter 'packageVersion' was not specified" }
If ($packageFile -eq $null) { throw "Parameter 'packageFile' was not specified" }
$exists = Test-Path $packageFile
if ($exists -eq $false)
{
throw "File not found: $packageFile"
}
PushDelete -packageId $packageId -packageVersion $packageVersion -packageFile $packageFile -apiKey $apiKey -galleryUrl $galleryUrl
}
ElseIf ($PSCmdlet.ParameterSetName -match "config") {
If ($packagesConfig -eq $null) { throw "Parameter 'packagesConfig' was not specified" }
If (!(Test-Path $packagesConfig)) { throw "File '$packagesConfig' was not found" }
[xml]$packages = Get-Content $packagesConfig
foreach ($package in $packages.packages.package) {
$path = ".\" + $package.culture + "\" + $package.id + "." + $package.version + ".nupkg"
$path = $path.Replace("\\", "\")
$exists = Test-Path $path
if ($exists -eq $false)
{
throw "File not found: $path"
}
PushDelete -packageId $package.id -packageVersion $package.version -packageFile $path -apiKey $apiKey -galleryUrl $galleryUrl
}
}
}
function Set-NuGetPackageVisibility {
<#
.SYNOPSIS
Sets a package's visibility within the NuGet gallery
.DESCRIPTION
Hide (unlist) a package from the gallery or show (list) a package on the gallery.
.EXAMPLE
Set-PackageVisibility -action hide -packageId MyAwesomePackage -packageVersion 2.0.0.0 -apiKey 00000000-0000-0000-0000-000000000000 -galleryUrl https://nuget.org
.EXAMPLE
Set-PackageVisibility -action show -packageId MyAwesomePackage -packageVersion 2.0.0.0 -apiKey 00000000-0000-0000-0000-000000000000 -galleryUrl https://preview.nuget.org
.PARAMETER action
The action to take: hide or show
.PARAMETER packageId
The Id of the package to hide/show
.PARAMETER packageVersion
The Version of the package to hide/show
.PARAMETER packagesConfig
The XML config file that lists the packages to be hidden/shown
.PARAMETER galleryUrl
The NuGet gallery Url to connect to. By default, https://nuget.org
#>
[CmdletBinding(DefaultParameterSetName='package')]
param(
$action,
[Parameter(ParameterSetName="package")] $packageId,
[Parameter(ParameterSetName="package")] $packageVersion,
[Parameter(ParameterSetName="config")] $packagesConfig,
$apiKey,
$galleryUrl = $defaultGalleryUrl
)
If ($action -eq $null) { throw "Parameter 'action' was not specified" }
If ($apiKey -eq $null) { throw "Parameter 'apiKey' was not specified" }
If ($galleryUrl -eq $null) { throw "Parameter 'galleryUrl' was not specified" }
If ($PSCmdlet.ParameterSetName -match "package") {
If ($packageId -eq $null) { throw "Parameter 'packageId' was not specified" }
If ($packageVersion -eq $null) { throw "Parameter 'packageVersion' was not specified" }
SetVisibility -action $action -packageId $packageId -packageVersion $packageVersion -apiKey $apiKey -galleryUrl $galleryUrl
}
ElseIf ($PSCmdlet.ParameterSetName -match "config") {
If ($packagesConfig -eq $null) { throw "Parameter 'packagesConfig' was not specified" }
If (!(Test-Path $packagesConfig)) { throw "File '$packagesConfig' was not found" }
[xml]$packages = Get-Content $packagesConfig
foreach ($package in $packages.packages.package) {
SetVisibility -action $action -packageId $package.id -packageVersion $package.version -apiKey $apiKey -galleryUrl $galleryUrl
}
}
}
function Hide-NuGetPackage {
<#
.SYNOPSIS
Hides a package from the NuGet gallery
.DESCRIPTION
Marks the specified NuGet package as unlisted, hiding it from the gallery.
.EXAMPLE
Hide-NuGetPackage -packageId MyAwesomePackage -packageVersion 2.0.0.0 -apiKey 00000000-0000-0000-0000-000000000000 -galleryUrl https://preview.nuget.org
.PARAMETER packageId
The Id of the package to hide
.PARAMETER packageVersion
The Version of the package to hide
.PARAMETER packagesConfig
The XML config file that lists the packages to be hidden/shown
.PARAMETER galleryUrl
The NuGet gallery Url to connect to. By default, https://nuget.org
#>
param(
[Parameter(ParameterSetName="package")] $packageId,
[Parameter(ParameterSetName="package")] $packageVersion,
[Parameter(ParameterSetName="config")] $packagesConfig,
$apiKey,
$galleryUrl = $defaultGalleryUrl
)
If ($PSCmdlet.ParameterSetName -match "config") {
Set-NuGetPackageVisibility -action hide -packagesConfig $packagesConfig -apiKey $apiKey -galleryUrl $galleryUrl
}
Else {
Set-NuGetPackageVisibility -action hide -packageId $packageId -packageVersion $packageVersion -apiKey $apiKey -galleryUrl $galleryUrl
}
}
function Show-NuGetPackage {
<#
.SYNOPSIS
Shows a package on the NuGet gallery, listing an already-published but unlisted package.
.DESCRIPTION
Marks the specified NuGet package as listed, showing it on the gallery.
.EXAMPLE
Show-NuGetPackage -packageId MyAwesomePackage -packageVersion 2.0.0.0 -apiKey 00000000-0000-0000-0000-000000000000 -galleryUrl https://preview.nuget.org
.PARAMETER packageId
The Id of the package to show
.PARAMETER packageVersion
The Version of the package to show
.PARAMETER packagesConfig
The XML config file that lists the packages to be hidden/shown
.PARAMETER galleryUrl
The NuGet gallery Url to connect to. By default, https://nuget.org
#>
param(
[Parameter(ParameterSetName="package")] $packageId,
[Parameter(ParameterSetName="package")] $packageVersion,
[Parameter(ParameterSetName="config")] $packagesConfig,
$apiKey,
$galleryUrl = $defaultGalleryUrl
)
If ($PSCmdlet.ParameterSetName -match "config") {
Set-NuGetPackageVisibility -action show -packagesConfig $packagesConfig -apiKey $apiKey -galleryUrl $galleryUrl
}
Else {
Set-NuGetPackageVisibility -action show -packageId $packageId -packageVersion $packageVersion -apiKey $apiKey -galleryUrl $galleryUrl
}
}
function PushDelete {
param(
$packageId,
$packageVersion,
$packageFile,
$apiKey,
$galleryUrl
)
nuget push $packageFile -source $galleryUrl -apiKey $apiKey
nuget delete $packageId $packageVersion -source $galleryUrl -noninteractive -apiKey $apiKey
}
function SetVisibility {
param(
$action,
$packageId,
$packageVersion,
$apiKey,
$galleryUrl
)
If ($action -match "hide") {
$method = "DELETE"
$message = "hidden (unlisted)"
}
ElseIf ($action -match "show") {
$method = "POST"
$message = "shown (listed)"
}
Else {
throw "Invalid 'action' parameter value. Valid values are 'hide' and 'show'."
}
$url = "$galleryUrl/api/v2/Package/$packageId/$packageVersion"
$web = [System.Net.WebRequest]::Create($url)
$web.Method = $method
$web.Headers.Add("X-NuGet-ApiKey", "$apiKey")
$web.ContentLength = 0
Write-Host ""
Write-Host "Submitting the $method request to $url..." -foregroundColor Cyan
Write-Host ""
$response = $web.GetResponse()
If ($response.StatusCode -match "OK") {
Write-Host "Package '$packageId' Version '$packageVersion' has been $message." -foregroundColor Green -backgroundColor Black
Write-Host ""
}
Else {
Write-Host $response.StatusCode
}
}
Export-ModuleMember *-*
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.CSharp.Workspaces.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.CSharp.Workspaces.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll" target="lib\portable-net45+win8\$langCode$" />
<file src="Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.CSharp.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.CSharp.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.CSharp" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.CSharp.resources.dll" target="lib\portable-net45+win8\$langCode$" />
<file src="Microsoft.CodeAnalysis.CSharp.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.Common.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.Common.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Common" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.resources.dll" target="lib\portable-net45+win8\$langCode$" />
<file src="Microsoft.CodeAnalysis.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.Compilers.$langCode$</id>
<summary>.NET Compiler Platform ("Roslyn")</summary>
<description>
.NET Compiler Platform ("Roslyn"). Install this package to get both C# and Visual Basic support. Install either of the dependencies directly to get one of the languages separately.
Supported Platforms:
- .NET Framework 4.5
- Windows 8
- Portable Class Libraries
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Compilers" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.EditorFeatures.Text.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.EditorFeatures.Text.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.EditorFeatures.Text" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.EditorFeatures.Text.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.VisualBasic.Workspaces.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.VisualBasic.Workspaces.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.VisualBasic.Workspaces" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll" target="lib\portable-net45+win8\$langCode$" />
<file src="Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.VisualBasic.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.VisualBasic.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.VisualBasic" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.VisualBasic.resources.dll" target="lib\portable-net45+win8\$langCode$" />
<file src="Microsoft.CodeAnalysis.VisualBasic.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.Workspaces.Common.$langCode$</id>
<description>
The $language$ language resources for Microsoft.CodeAnalysis.Workspaces.Common.
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Workspaces.Common" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.Workspaces.resources.dll" target="lib\portable-net45+win8\$langCode$" />
<file src="Microsoft.CodeAnalysis.Workspaces.resources.dll" target="lib\net45\$langCode$" />
<file src="Microsoft.CodeAnalysis.Workspaces.Desktop.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.CodeAnalysis.$langCode$</id>
<summary>.NET Compiler Platform ("Roslyn").</summary>
<description>
.NET Compiler Platform ("Roslyn").
This is the all-in-one package (a superset of all assemblies). You can install any of these sub-packages if you only want part of the functionality:
- "Microsoft.CodeAnalysis.CSharp.Workspaces" (C# compiler + services)
- "Microsoft.CodeAnalysis.VisualBasic.Workspaces" (VB compiler + services)
- "Microsoft.CodeAnalysis.Compilers" (both compilers)
- "Microsoft.CodeAnalysis.CSharp" (only the C# compiler)
- "Microsoft.CodeAnalysis.VisualBasic (only the VB compiler)
Supported Platforms:
- .NET Framework 4.5
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
</files>
</package>
\ No newline at end of file
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.Net.Compilers.$langCode$</id>
<description>
The $language$ language version of the Microsoft.Net.Compilers package.
</description>
<language>$langCode$</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<file src="Microsoft.Net.ToolsetCompilers.props" target="build\Microsoft.Net.Compilers.props" />
<file src="Microsoft.CodeAnalysis.dll" target="tools" />
<file src="Microsoft.CodeAnalysis.CSharp.dll" target="tools" />
<file src="Microsoft.CodeAnalysis.VisualBasic.dll" target="tools" />
<file src="csc.exe" target="tools" />
<file src="vbc.exe" target="tools" />
<file src="System.Collections.Immutable.dll" target="tools" />
<file src="System.Reflection.Metadata.dll" target="tools" />
<file src="VBCSCompiler.exe" target="tools" />
<file src="VBCSCompiler.exe.config" target="tools" />
<file src="ThirdPartyNotices.rtf" target="" />
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.CodeAnalysis.resources.dll" target="tools/$langCode$" />
<file src="Microsoft.CodeAnalysis.CSharp.resources.dll" target="tools/$langCode$" />
<file src="Microsoft.CodeAnalysis.VisualBasic.resources.dll" target="tools/$langCode$" />
<file src="csc.resources.dll" target="tools/$langCode$" />
<file src="vbc.resources.dll" target="tools/$langCode$" />
<file src="vbcsc2ui.dll" target="tools/$langCode$" />
<file src="VBCSCompiler.resources.dll" target="tools/$langCode$" />
</files>
</package>
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.VisualStudio.LanguageServices.$langCode$</id>
<description>
The $language$ language resources for Microsoft.VisualStudio.LanguageServices.
</description>
<dependencies>
<dependency id="Microsoft.VisualStudio.LanguageServices" version="[$currentVersion$]" />
</dependencies>
<language>$langCode$</language>
<version>$currentVersion$</version>
<authors>$authors$</authors>
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
</metadata>
<files>
<!-- Add references to localized resource dlls here. Ensure the target includes the loc suffix directory language code-->
<file src="Microsoft.VisualStudio.LanguageServices.resources.dll" target="lib\net45\$langCode$" />
</files>
</package>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<DirectedGraph xmlns="http://schemas.microsoft.com/vs/2009/dgml">
<Nodes>
<Node Id="Microsoft.Bcl.Immutable"/>
<Node Id="Microsoft.Bcl.Metadata"/>
<Node Id="Microsoft.CodeAnalysis"/>
<Node Id="Microsoft.CodeAnalysis.CodeActions"/>
<Node Id="Microsoft.CodeAnalysis.CSharp"/>
<Node Id="Microsoft.CodeAnalysis.CSharp.Workspaces"/>
<Node Id="Microsoft.CodeAnalysis.Common"/>
<Node Id="Microsoft.CodeAnalysis.Compilers"/>
<Node Id="Microsoft.CodeAnalysis.Features"/>
<Node Id="Microsoft.CodeAnalysis.Test.Resources.Proprietary"/>
<Node Id="Microsoft.CodeAnalysis.VisualBasic"/>
<Node Id="Microsoft.CodeAnalysis.VisualBasic.Workspaces"/>
<Node Id="Microsoft.CodeAnalysis.Workspaces.Common"/>
<Node Id="Microsoft.Composition"/>
<Node Id="Microsoft.Net.Compilers"/>
<Node Id="Microsoft.Net.RoslynDiagnostics"/>
<Node Id="Microsoft.Net.ToolsetCompilers"/>
<Node Id="Microsoft.VisualStudio.LanguageServices"/>
</Nodes>
<Links>
<Link Source="Microsoft.Bcl.Metadata" Target="Microsoft.Bcl.Immutable" />
<Link Source="Microsoft.CodeAnalysis" Target="Microsoft.CodeAnalysis.CSharp.Workspaces"/>
<Link Source="Microsoft.CodeAnalysis" Target="Microsoft.CodeAnalysis.VisualBasic.Workspaces"/>
<Link Source="Microsoft.CodeAnalysis.CodeActions" Target="Microsoft.CodeAnalysis.Workspaces.Common"/>
<Link Source="Microsoft.CodeAnalysis.Common" Target="Microsoft.Bcl.Immutable"/>
<Link Source="Microsoft.CodeAnalysis.Common" Target="Microsoft.Bcl.Metadata"/>
<Link Source="Microsoft.CodeAnalysis.Compilers" Target="Microsoft.CodeAnalysis.CSharp"/>
<Link Source="Microsoft.CodeAnalysis.Compilers" Target="Microsoft.CodeAnalysis.VisualBasic"/>
<Link Source="Microsoft.CodeAnalysis.CSharp" Target="Microsoft.CodeAnalysis.Common"/>
<Link Source="Microsoft.CodeAnalysis.CSharp.Workspaces" Target="Microsoft.CodeAnalysis.CSharp"/>
<Link Source="Microsoft.CodeAnalysis.CSharp.Workspaces" Target="Microsoft.CodeAnalysis.Workspaces.Common"/>
<Link Source="Microsoft.CodeAnalysis.Features" Target="Microsoft.CodeAnalysis.CodeActions"/>
<Link Source="Microsoft.CodeAnalysis.VisualBasic" Target="Microsoft.CodeAnalysis.Common"/>
<Link Source="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Target="Microsoft.CodeAnalysis.VisualBasic"/>
<Link Source="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Target="Microsoft.CodeAnalysis.Workspaces.Common"/>
<Link Source="Microsoft.CodeAnalysis.Workspaces.Common" Target="Microsoft.CodeAnalysis.Common"/>
<Link Source="Microsoft.CodeAnalysis.Workspaces.Common" Target="Microsoft.Composition"/>
<Link Source="Microsoft.Net.RoslynDiagnostics" Target="Microsoft.Net.ToolsetCompilers"/>
<Link Source="Microsoft.VisualStudio.LanguageServices" Target="Microsoft.CodeAnalysis.CodeActions"/>
</Links>
<Properties>
<Property Id="Bounds" DataType="System.Windows.Rect" />
</Properties>
</DirectedGraph>
<?xml version="1.0" encoding="utf-8"?>
<!--
The list of NuGet packages we produce. If you update this with the current version
you can use the "NuGetPackagePublishing.psm1 PowerShell module to publish and or
hide our NuGet packages.
For example:
Import-Module .\NuGetPackagePublishing.psm1
Publish-NuGetPackage -ApiKey <key> -config packages.config
-->
<packages>
<package id="Microsoft.CodeAnalysis" version="$version$" />
<package id="Microsoft.CodeAnalysis.CodeActions" version="$version$" />
<package id="Microsoft.CodeAnalysis.Common" version="$version$" />
<package id="Microsoft.CodeAnalysis.Compilers" version="$version$" />
<package id="Microsoft.CodeAnalysis.CSharp" version="$version$" />
<package id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="$version$" />
<package id="Microsoft.CodeAnalysis.VisualBasic" version="$version$" />
<package id="Microsoft.CodeAnalysis.VisualBasic.Workspaces" version="$version$" />
<package id="Microsoft.CodeAnalysis.Workspaces.Common" version="$version$" />
<package id="Microsoft.VisualStudio.LanguageServices" version="$version$" />
<!-- May not want to push this publicly. -->
<package id="Microsoft.CodeAnalysis.CSharp.Features" version="$version$" />
</packages>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册