-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish rzls as a nuget package for vs-code (#10453)
The majority of this was just copied from the way Roslyn packages their language server. Publish each of our RIDs for rzls as nuget packages instead of zipping them for the cdn.
- Loading branch information
Showing
7 changed files
with
154 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<Project> | ||
<!-- We are defining our own Pack target, so opt out of the SDK version. --> | ||
<PropertyGroup> | ||
<ImportNuGetBuildTasksPackTargetsFromSdk>false</ImportNuGetBuildTasksPackTargetsFromSdk> | ||
<_RazorPublishReadyToRun>false</_RazorPublishReadyToRun> | ||
<_RazorPublishReadyToRun Condition="'$(Configuration)' == 'Release'">true</_RazorPublishReadyToRun> | ||
</PropertyGroup> | ||
|
||
<Target Name="Pack"> | ||
<!-- | ||
We have to run restore first with the PublishReadyToRun flag set to true to ensure that the correct crossgen packages get restored. | ||
See https://github.com/dotnet/sdk/issues/20701 | ||
We also pass the RestoreUseStaticGraphEvaluation=false flag to workaround a long path issue when calling the restore target. | ||
See https://github.com/NuGet/Home/issues/11968 | ||
--> | ||
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Restore" Properties="PublishReadyToRun=$(_RazorPublishReadyToRun);RestoreUseStaticGraphEvaluation=false" /> | ||
|
||
<ItemGroup> | ||
<!-- Transform RuntimeIdentifiers property to item --> | ||
<RuntimeIdentifierForPack Include="$(RuntimeIdentifiers)" /> | ||
<RuntimeIdentifierForPack Include="neutral" /> | ||
|
||
<!-- Transform RuntimeIdentifierForPublish items to project items to pass to MSBuild task --> | ||
<ProjectToPublish Include="@(RuntimeIdentifierForPack->'$(MSBuildProjectFullPath)')"> | ||
<AdditionalProperties>PackRuntimeIdentifier=%(RuntimeIdentifierForPack.Identity)</AdditionalProperties> | ||
</ProjectToPublish> | ||
</ItemGroup> | ||
|
||
<MSBuild Projects="@(ProjectToPublish)" Targets="Pack" BuildInParallel="true" /> | ||
</Target> | ||
</Project> |
Oops, something went wrong.