BeforeTargets="ResolvePackageAssets"
Condition="'$(VSDesignTimeBuild)' != 'true'" />
- <Target Name="CoreCompile" Condition="'@(PackageReference)' != '' Or '@(PackageDownload)' == ''">
+ <Target Name="CoreCompile">
<Error Condition="'$(NuGetDeploySourceItem)' != 'ReferenceCopyLocalPaths' and
'$(NuGetDeploySourceItem)' != 'Reference' and
</ContentWithTargetPath>
</ItemGroup>
- <Error Condition="'@(NuGetDeploy)' == ''" Text="Error no assets were resolved from NuGet packages." />
- <Message Importance="High" Text="%(FullPath) (%(NuGetPackageId).%(NuGetPackageVersion)) -> @(NuGetDeploy->'$(TargetDir)%(SubFolder)%(FileName)%(Extension)')" />
+ <Message Importance="High"
+ Condition="'@(NuGetDeploy)' == ''"
+ Text="$(MSBuildProjectFile): No assets were resolved from NuGet packages." />
+ <Message Importance="High"
+ Condition="'@(NuGetDeploy)' != ''"
+ Text="%(FullPath) (%(NuGetPackageId).%(NuGetPackageVersion)) -> @(NuGetDeploy->'$(TargetDir)%(SubFolder)%(FileName)%(Extension)')" />
<!-- Include marker files if an extension has been provided -->
<!-- internal builds use this to distinguish files which have already been signed -->
<PackageReference Update="Microsoft.NETCore.App" IsImplicitlyDefined="false" PrivateAssets="None" />
</ItemGroup>
- <!-- Mark framework references from previous netcoreapp tfms >= 3.0 as copy-local. -->
- <Target Name="_FrameworkReferencesToPrivate"
- Condition="'$(TargetsNetCoreApp)' == 'true' and !$(TargetFramework.StartsWith('netcoreapp2.')) and '$(TargetFramework)' != '$(NetCoreAppCurrent)'"
- AfterTargets="_HandlePackageFileConflicts">
- <ItemGroup>
- <_referencePrivate Include="@(Reference)" Private="true" />
- <Reference Remove="@(Reference)" />
- <Reference Include="@(_referencePrivate)" />
- </ItemGroup>
- </Target>
-
<ItemGroup>
<!-- for all configurations this project provides refs for that configuration -->
<BinPlaceConfiguration Include="$(Configuration)" RefPath="$(RefPath)" />