Patch for Microsoft.VisualStudioEng.MicroBuild.Core prebuilt (#16450)

This commit is contained in:
Nikola Milosavljevic 2023-05-19 13:40:04 -07:00 committed by GitHub
parent c8b79b9e39
commit 3b0743fa60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,24 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nikola Milosavljevic <nikolam@microsoft.com>
Date: Fri, 19 May 2023 17:07:26 +0000
Subject: [PATCH] Do not use Microsoft.VisualStudioEng.MicroBuild.Core package
in source-build
Backport: https://github.com/NuGet/NuGet.Client/pull/5175
---
Directory.Packages.props | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 526d86ede..a3fb0ea79 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -126,7 +126,7 @@
<ItemGroup>
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" Condition="'$(Shipping)' == 'true' AND '$(IsXPlat)' != 'true'" />
- <GlobalPackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core" version="1.0.0" />
+ <GlobalPackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core" version="1.0.0" Condition="'$(DotNetBuildFromSource)' != 'true'" />
</ItemGroup>
<ItemGroup Condition=" '$(UsePublicApiAnalyzer)' == 'true' ">