This commit is contained in:
Allison Chou 2023-01-23 23:42:34 -08:00 коммит произвёл GitHub
Родитель 8ae151d981
Коммит 9af7f2b5cb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
12 изменённых файлов: 18 добавлений и 23 удалений

Просмотреть файл

@ -116,6 +116,7 @@ stages:
# enableMicrobuild can't be read from a user-defined variable (Azure DevOps limitation)
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
enableMicrobuild: true
enablePublishBuildAssets: true
enablePublishUsingPipelines: true
jobs:
@ -460,22 +461,8 @@ stages:
parallel: true
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- stage: publishBuildAssets
displayName: Publish to Build Asset Registry
dependsOn: build
jobs:
# Publish to Build Asset Registry
- template: /eng/common/templates/job/publish-build-assets.yml
parameters:
publishUsingPipelines: true
pool:
name: NetCore1ESPool-Svc-Internal
demands: ImageOverride -equals windows.vs2022.amd64
- template: eng\common\templates\post-build\post-build.yml
parameters:
validateDependsOn:
- publishBuildAssets
publishingInfraVersion: 3
enableSigningValidation: false
enableNugetValidation: false

Просмотреть файл

@ -1,5 +1,5 @@
<Project>
<Target Name="_EnsureVSIXWasGenerated" AfterTargets="GenerateVisualStudioInsertionManifests" Condition="'$(OS)'=='WINDOWS_NT' AND '$(DotNetBuildFromSource)' != 'true'">
<Target Name="_EnsureVSIXWasGenerated" AfterTargets="GenerateVisualStudioInsertionManifests" Condition="'$(OS)'=='WINDOWS_NT' AND '$(ArcadeBuildFromSource)' != 'true'">
<PropertyGroup>
<VSSetupDir>$(ArtifactsDir)VSSetup\</VSSetupDir>
<RazorExtensionVSIXName>Microsoft.VisualStudio.RazorExtension.vsix</RazorExtensionVSIXName>
@ -9,7 +9,7 @@
Condition="!Exists('$(VSSetupDir)$(Configuration)\$(RazorExtensionVSIXName)')" />
</Target>
<Target Name="_ZipLanguageServerBinaries" AfterTargets="Pack" Condition="'$(DotNetBuildFromSource)' != 'true'">
<Target Name="_ZipLanguageServerBinaries" AfterTargets="Pack" Condition="'$(ArcadeBuildFromSource)' != 'true'">
<!-- This target is defined in eng/targets/Packaging.targets and included in every project. -->
<MSBuild Projects="$(RepoRoot)src\Razor\src\Microsoft.AspNetCore.Razor.LanguageServer\Microsoft.AspNetCore.Razor.LanguageServer.csproj"
Targets="_GetPackageVersionInfo"
@ -34,17 +34,17 @@
<MakeDir Directories="$(ZipOutputDir)" />
<Delete Files="%(LanguageServiceBinary.ZipFile)" />
<!-- Build a .zip file from each platform's directory and write it to 'artifacts' -->
<!-- Mac -->
<Exec Command="pwsh -NonInteractive -command &quot;&amp;{ Write-Host &quot;Writing %(LanguageServiceBinary.ZipFile)...&quot; ; Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::CreateFromDirectory('%(LanguageServiceBinary.SourceDir)', '%(LanguageServiceBinary.ZipFile)') }&quot;"
Condition="$([MSBuild]::IsOSPlatform('OSX'))" />
<!-- Windows -->
<Exec Command="powershell.exe -NonInteractive -command &quot;&amp;{ Write-Host &quot;Writing %(LanguageServiceBinary.ZipFile)...&quot; ; Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::CreateFromDirectory('%(LanguageServiceBinary.SourceDir)', '%(LanguageServiceBinary.ZipFile)') }&quot;"
Condition="$([MSBuild]::IsOSPlatform('Windows'))" />
<!-- Linux -->
<Exec Command="curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
<Exec Command="sudo yum install -y powershell 2>/dev/null" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />

Просмотреть файл

@ -3,12 +3,12 @@
<PropertyGroup>
<PublishingVersion>3</PublishingVersion>
<PublishDependsOnTargets>$(PublishDependsOnTargets);_PublishingBlobItems</PublishDependsOnTargets>
<_UploadPathRoot>aspnetcore-tooling</_UploadPathRoot>
<_UploadPathRoot>razor</_UploadPathRoot>
</PropertyGroup>
<ItemGroup>
<!-- Prepare for _PublishingBlobItems target. -->
<_ItemsToPublish Include="$(ArtifactsPackagesDir)**\*.tgz" />
<_ItemsToPublish Include="$(ArtifactsPackagesDir)**\*.tgz" Condition="'$(OS)' == 'Windows_NT'" />
<_ItemsToPublish Include="$(ArtifactsDir)LanguageServer\**\*.zip" />
</ItemGroup>

Просмотреть файл

@ -6,6 +6,7 @@
<EnableApiCheck>false</EnableApiCheck>
<IsShippingPackage>false</IsShippingPackage>
<RootNamespace>Microsoft.AspNetCore.Razor</RootNamespace>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -5,7 +5,7 @@
<PropertyGroup>
<PackageId>microsoft.aspnetcore.razor.vscode</PackageId>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<IsPackable Condition="'$(OS)' == 'Windows_NT'">true</IsPackable>
<!-- We technically ship this to a blob feed and then manually integrate with O#. Don't want this package making its way anywhere else. -->
<IsShippingPackage>false</IsShippingPackage>

Просмотреть файл

@ -6,6 +6,7 @@
<EnableApiCheck>false</EnableApiCheck>
<IsShippingPackage>false</IsShippingPackage>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -6,6 +6,7 @@
<EnableApiCheck>false</EnableApiCheck>
<IsShippingPackage>false</IsShippingPackage>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
<!--
Razor.ServiceHub won't always match the other packages Roslyn ships. This is ignorable.

Просмотреть файл

@ -6,6 +6,7 @@
<EnableApiCheck>false</EnableApiCheck>
<IsShippingPackage>false</IsShippingPackage>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -6,6 +6,7 @@
<EnableApiCheck>false</EnableApiCheck>
<IsShippingPackage>false</IsShippingPackage>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -7,6 +7,7 @@
<RulesDirectory>$(PkgMicrosoft_NET_Sdk_Razor)\build\netstandard2.0\Rules\</RulesDirectory>
<IsShippingPackage>false</IsShippingPackage>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -6,6 +6,7 @@
<EnableApiCheck>false</EnableApiCheck>
<IsShippingPackage>false</IsShippingPackage>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>

Просмотреть файл

@ -8,6 +8,7 @@
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<IsShippingPackage>false</IsShippingPackage>
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>
<ItemGroup>