Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create nuspec for servicehub r2r symbol packages #75514

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eng/Signing.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
-->
<ItemGroup>
<!-- Exclude two manually zipped servicehub symbol nupkgs from being signed -->
<ItemsToSign Remove="$(ArtifactsNonShippingPackagesDir)Microsoft.CodeAnalysis.Remote.ServiceHub.CoreComponents.x64.Symbols.nupkg"/>
<ItemsToSign Remove="$(ArtifactsNonShippingPackagesDir)Microsoft.CodeAnalysis.Remote.ServiceHub.CoreComponents.arm64.Symbols.nupkg"/>
<ItemsToSign Remove="$(ArtifactsNonShippingPackagesDir)Microsoft.CodeAnalysis.Remote.ServiceHub.CoreComponents.x64.Symbols.*.nupkg"/>
<ItemsToSign Remove="$(ArtifactsNonShippingPackagesDir)Microsoft.CodeAnalysis.Remote.ServiceHub.CoreComponents.arm64.Symbols.*.nupkg"/>

<ItemsToSign Include="$(ArtifactsPackagesDir)**\*.tgz" />
<ItemsToSign Include="$(VisualStudioSetupOutputPath)**\*.zip" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>

Expand Down Expand Up @@ -111,9 +111,34 @@
<Target Name="CompileReadyToRun"
DependsOnTargets="CompileReadyToRunImage"
Condition="'$(GenerateReadyToRun)' == 'true'">


<PropertyGroup>
<_SymbolPackageId>$(ProjectName).Symbols</_SymbolPackageId>
<_NuspecFilePath>$(PdbWorkDir)\$(_SymbolPackageId).nuspec</_NuspecFilePath>
<_NuspecFileContent>
<![CDATA[{<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>$(_SymbolPackageId)</id>
<version>$(PackageVersion)</version>
<authors>Microsoft</authors>
<license type="expression">MIT</license>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<projectUrl>https://github.com/dotnet/roslyn</projectUrl>
<description>Package Description
More details at https://aka.ms/roslyn-packages</description>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>Roslyn CodeAnalysis Compiler CSharp VB VisualBasic Parser Scanner Lexer Emit CodeGeneration Metadata IL Compilation Scripting Syntax Semantics</tags>
</metadata>
</package>
]]>
</_NuspecFileContent>
</PropertyGroup>

<WriteLinesToFile File="$(_NuspecFilePath)" Lines="$(_NuspecFileContent)" Overwrite="true"/>

<MakeDir Directories="$(ArtifactsNonShippingPackagesDir)" />
<ZipDirectory SourceDirectory="$(PdbWorkDir)" DestinationFile="$(ArtifactsNonShippingPackagesDir)$(ProjectName).Symbols.nupkg" />
<ZipDirectory SourceDirectory="$(PdbWorkDir)" DestinationFile="$(ArtifactsNonShippingPackagesDir)$(_SymbolPackageId).$(PackageVersion).nupkg" />
</Target>

<!--
Expand Down Expand Up @@ -188,3 +213,4 @@

<Target Name="PublishVsixItems" DependsOnTargets="Publish;PublishedProjectOutputGroup;CompileReadyToRun" Returns="@(_VsixItem)" />
</Project>

Loading