|
|
@@ -38,10 +38,17 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|
|
|
|
|
<!-- Reference implementation assemblies in addition to ref assemblies to get xml docs -->
|
|
|
<ReferenceImplementationAssemblies>true</ReferenceImplementationAssemblies>
|
|
|
+ <!-- We are ignoring MSB3243 warnings since implemenation and reference assemblies are versioned differently. We need both to compose the targeting pack with reference assemblies and xml docs. -->
|
|
|
+ <MSBuildWarningsAsMessages>MSB3243</MSBuildWarningsAsMessages >
|
|
|
|
|
|
<!-- Platform manifest data -->
|
|
|
<FrameworkListFileName>FrameworkList.xml</FrameworkListFileName>
|
|
|
<FrameworkListOutputPath>$(ArtifactsObjDir)$(FrameworkListFileName)</FrameworkListOutputPath>
|
|
|
+
|
|
|
+ <!-- Platform manifest and package override metatdata -->
|
|
|
+ <ReferencePackSharedFxVersion>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).0</ReferencePackSharedFxVersion>
|
|
|
+ <ReferencePackSharedFxVersion Condition="'$(VersionSuffix)' != ''">$(ReferencePackSharedFxVersion)-$(VersionSuffix)</ReferencePackSharedFxVersion>
|
|
|
+ <ReferencePlatformManifestOutputPath>$(ArtifactsObjDir)ref\PlatformManifest.txt</ReferencePlatformManifestOutputPath>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
<ItemGroup>
|
|
|
@@ -80,7 +87,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|
|
</BuildDependsOn>
|
|
|
|
|
|
<!-- No-op when in source build -->
|
|
|
- <BuildDependsOn Condition="'$(IsTargetingPackBuilding)' != 'false' and '$(DotNetBuildFromSource)' == 'true'"/>
|
|
|
+ <BuildDependsOn Condition="'$(IsTargetingPackBuilding)' == 'false'"/>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
<!-- Override the default MSBuild targets so that nothing is returned from the project since it represents a collection of assemblies. -->
|
|
|
@@ -95,6 +102,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|
|
|
|
|
<!-- This target finds the reference assemblies. -->
|
|
|
<Target Name="_ResolveTargetingPackContent"
|
|
|
+ Returns="@(AspNetCoreReferenceAssemblyPath)"
|
|
|
BeforeTargets="_GetPackageFiles"
|
|
|
DependsOnTargets="ResolveReferences;FindReferenceAssembliesForReferences">
|
|
|
<ItemGroup>
|
|
|
@@ -111,6 +119,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|
|
Exclude="
|
|
|
@(_SelectedExtensionsRefAssemblies);
|
|
|
@(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref'));
|
|
|
+ @(ReferencePathWithRefAssemblies->WithMetadataValue('IsReferenceAssembly', 'false'));
|
|
|
@(ReferencePathWithRefAssemblies->WithMetadataValue('ReferenceGrouping', 'Microsoft.NETCore.App'));" />
|
|
|
|
|
|
<AspNetCoreReferenceAssemblyPath
|
|
|
@@ -118,11 +127,23 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|
|
|
|
|
<AspNetCoreReferenceDocXml Include="@(_ResolvedProjectReferencePaths->WithMetadataValue('IsReferenceAssembly', 'false')->'%(RootDir)%(Directory)%(FileName).xml')" />
|
|
|
<AspNetCoreReferenceDocXml Include="@(_SelectedExtensionsRefAssemblies->'$(MicrosoftInternalExtensionsRefsPath)%(FileName).xml')" />
|
|
|
+ </ItemGroup>
|
|
|
+
|
|
|
+ <RepoTasks.GenerateSharedFrameworkDepsFile
|
|
|
+ DepsFilePath="$(ProjectDepsFilePath)"
|
|
|
+ TargetFramework="$(TargetFramework)"
|
|
|
+ FrameworkName="$(TargetingPackName)"
|
|
|
+ FrameworkVersion="$(ReferencePackSharedFxVersion)"
|
|
|
+ References="@(AspNetCoreReferenceAssemblyPath)"
|
|
|
+ RuntimeIdentifier="$(TargetRuntimeIdentifier)"
|
|
|
+ RuntimePackageName="$(PackageId)"
|
|
|
+ PlatformManifestOutputPath="$(ReferencePlatformManifestOutputPath)" />
|
|
|
|
|
|
+ <ItemGroup>
|
|
|
<RefPackContent Include="@(AspNetCoreReferenceAssemblyPath)" PackagePath="$(RefAssemblyPackagePath)" />
|
|
|
<RefPackContent Include="@(AspNetCoreReferenceDocXml)" PackagePath="$(RefAssemblyPackagePath)" />
|
|
|
<RefPackContent Include="$(TargetDir)$(PackageConflictManifestFileName)" PackagePath="$(ManifestsPackagePath)" />
|
|
|
- <RefPackContent Include="$(PlatformManifestOutputPath)" PackagePath="$(ManifestsPackagePath)" />
|
|
|
+ <RefPackContent Include="$(ReferencePlatformManifestOutputPath)" PackagePath="$(ManifestsPackagePath)" />
|
|
|
</ItemGroup>
|
|
|
</Target>
|
|
|
|
|
|
@@ -130,9 +151,10 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
|
|
DependsOnTargets="ResolveReferences"
|
|
|
Inputs="$(MSBuildAllProjects)"
|
|
|
Outputs="$(TargetDir)$(PackageConflictManifestFileName)">
|
|
|
+
|
|
|
<ItemGroup>
|
|
|
<_AspNetCoreAppPackageOverrides Include="@(ReferencePath->'%(NuGetPackageId)|%(NuGetPackageVersion)')" Condition=" '%(ReferencePath.NuGetPackageId)' != 'Microsoft.NETCore.App' AND '%(ReferencePath.NuGetSourceType)' == 'Package' " />
|
|
|
- <_AspNetCoreAppPackageOverrides Include="@(ReferencePath->'%(FileName)|$(SharedFxVersion)')" Condition=" '%(ReferencePath.ReferenceSourceTarget)' == 'ProjectReference' " />
|
|
|
+ <_AspNetCoreAppPackageOverrides Include="@(ReferencePath->'%(FileName)|$(ReferencePackSharedFxVersion)')" Condition=" '%(ReferencePath.ReferenceSourceTarget)' == 'ProjectReference' AND '%(ReferencePath.IsReferenceAssembly)' == 'true' " />
|
|
|
</ItemGroup>
|
|
|
|
|
|
<WriteLinesToFile
|