-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Add configurations for additional targeting packs #15520
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,17 @@ | |
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> | ||
<PropertyGroup> | ||
<NuGetDeploySourceItem>Reference</NuGetDeploySourceItem> | ||
<NuGetTargetMoniker Condition="'$(TargetGroup)' == 'netcoreapp'">.NETFramework,Version=v4.6.1</NuGetTargetMoniker> | ||
<NugetRuntimeIdentifier>None</NugetRuntimeIdentifier> | ||
<OutputPath>$(RefRootPath)/$(TargetGroup)</OutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(TargetGroup)' == 'net463'"> | ||
<!-- Missing 4.6.3 targeting pack, use 462 for now --> | ||
<TargetingPackNugetPackageId>Microsoft.TargetingPack.NETFramework.v4.6.2</TargetingPackNugetPackageId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see you are now making use of TargetingPackNugetPackageId I was planning to clean that out, but I guess I will leave it alone now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can clean it out if you want to and just move it to these projects. |
||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(TargetGroup)' == 'netcoreapp'"> | ||
<!-- For NETCoreApp we need the net461 targeting pack to generate facades --> | ||
<NuGetTargetMoniker>.NETFramework,Version=v4.6.1</NuGetTargetMoniker> | ||
<TargetingPackNugetPackageId>Microsoft.TargetingPack.NETFramework.v4.6.1</TargetingPackNugetPackageId> | ||
<OutputPath>$(NetFxRefPath)</OutputPath> | ||
</PropertyGroup> | ||
<!-- Filter the targeting pack to just these assemblies which we need netcoreapp shims for --> | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"frameworks": { | ||
"{TFM}": { | ||
"dependencies": { | ||
"{PackageId}": "1.0.1" | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"frameworks": { | ||
"{TFM}": { | ||
"dependencies": { | ||
"NETStandard.Library": "2.0.0-beta-24919-01", | ||
"System.Diagnostics.Contracts": "4.3.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for the different template for 1.x? The only difference appears to be this System.Diagnostics.Contracts package. Are you working around some issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is where we pull in additional NETStandard1.x packages that are needed by our libraries that aren't part of the NETStandard.Library package. So far all I've needed is this guy, we might need more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can probably get away with sharing the same template and just having a poor mans version of your conflict resolution in the project. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like it because that means a vertical build will download packages from NuGet. I separated it so that we wouldn't download anything we didn't build in another repo for a vertical build. |
||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<BuildConfigurations> | ||
portable_net45+win8+sl5; | ||
portable_net40+sl4+win8+wp8; | ||
</BuildConfigurations> | ||
</PropertyGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> | ||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> | ||
<PropertyGroup> | ||
<NuGetDeploySourceItem>Reference</NuGetDeploySourceItem> | ||
<NugetRuntimeIdentifier>None</NugetRuntimeIdentifier> | ||
<OutputPath>$(RefRootPath)/$(TargetGroup)</OutputPath> | ||
</PropertyGroup> | ||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> | ||
<Target Name="FilterTargetingPackResolvedNugetPackages" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need the empty filter target? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because I don't want any filtering. Without this I was only getting mscorlib. Perhaps there's a better way to do this if we update the filtering target but I didn't see a good hook, and I didn't want to list out every assembly. We might want to do the same for the desktop targeting packs, then move your shim list into shims.proj. /cc @tarekgh There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see yeah we should probably remove this filtering completely and switch to the other package filtering that @tarekgh created. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good suggestion. I forgot about that. |
||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"frameworks": { | ||
"{TFM}": { | ||
"dependencies": { | ||
"{PackageId}": "1.0.0" | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need to have net45x in general?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did before. Some facades were being built against this for the API versions that target netstandard1.1 or lower.