Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 623cfe7

Browse files
committed
Fix restore of netcoreapp when not downloading any packages
1 parent dcb36a8 commit 623cfe7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

eng/depProj.targets

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ See the LICENSE file in the project root for more information.
6868
BeforeTargets="ResolvePackageAssets"
6969
Condition="'$(VSDesignTimeBuild)' != 'true'" />
7070

71-
<Target Name="CoreCompile" Condition="'@(PackageReference)' != '' Or '@(PackageDownload)' == ''">
71+
<Target Name="CoreCompile">
7272

7373
<Error Condition="'$(NuGetDeploySourceItem)' != 'ReferenceCopyLocalPaths' AND
7474
'$(NuGetDeploySourceItem)' != 'Reference' AND
@@ -98,8 +98,12 @@ See the LICENSE file in the project root for more information.
9898
</ContentWithTargetPath>
9999
</ItemGroup>
100100

101-
<Error Condition="'@(NuGetDeploy)' == ''" Text="Error no assets were resolved from NuGet packages." />
102-
<Message Importance="High" Text="%(FullPath) (%(NuGetPackageId).%(NuGetPackageVersion)) -&gt; @(NuGetDeploy->'$(TargetDir)%(SubFolder)%(FileName)%(Extension)')" />
101+
<Message Importance="High"
102+
Condition="'@(NuGetDeploy)' == ''"
103+
Text="$(MSBuildProjectFile): No assets were resolved from NuGet packages." />
104+
<Message Importance="High"
105+
Condition="'@(NuGetDeploy)' != ''"
106+
Text="%(FullPath) (%(NuGetPackageId).%(NuGetPackageVersion)) -&gt; @(NuGetDeploy->'$(TargetDir)%(SubFolder)%(FileName)%(Extension)')" />
103107

104108
<!-- Include marker files if an extension has been provided -->
105109
<!-- internal builds use this to distinguish files which have already been signed -->

0 commit comments

Comments
 (0)