Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Introducing netstandard13aot target group in System.IO #6597

Merged
merged 1 commit into from
Mar 5, 2016

Conversation

tarekgh
Copy link
Member

@tarekgh tarekgh commented Mar 2, 2016

We need to build System.IO that work with corert which we need to get rid of WinRT
dependencies and that will require to have different code in System.IO which require
creating a new target group. This change should be no-op for other target groups.

@tarekgh
Copy link
Member Author

tarekgh commented Mar 2, 2016

@weshaggard @ericstj could you please have a look?

@@ -0,0 +1,19 @@
{
"frameworks": {
"netstandard1.5": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought you were going to make this netstandard13aot.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this has been changed to netstandard13aot, is the commit message still valid?
The PR title and commit message: "Introducing netstandard51aot target.."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do that. Appending aot to the framework moniker is not valid. 'netstandard13aot' is just an arbitrary string the build tooling is using to enable cross-compilation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. The project.json should just be netstandard1.3 for the framework. netstandard13aot is just shorthand for our build system.

@tarekgh tarekgh changed the title Introducing netstandard51aot target group in System.IO Introducing netstandard13aot target group in System.IO Mar 3, 2016
@@ -308,6 +309,13 @@
<NuGetTargetMoniker>.NETCore,Version=v5.0</NuGetTargetMoniker>
</PropertyGroup>
</When>
<When Condition="'$(TargetGroup)'=='netstandard13aot'">
<PropertyGroup>
<PackageTargetFramework>netstandard13aot</PackageTargetFramework>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be just nestandard1.3

@tarekgh
Copy link
Member Author

tarekgh commented Mar 4, 2016

@weshaggard & @ericstj I have fixed the code according to your comment and also included the packaging change as Eric described to me.

<SkipCommonResourcesIncludes>true</SkipCommonResourcesIncludes>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ExcludeAssemblyInfoPartialFile>true</ExcludeAssemblyInfoPartialFile>
<StringResourcesPath>Resources/Strings.netcore50aot.resx</StringResourcesPath>
<SkipValidatePackageTargetFramework Condition="'$(TargetGroup)' == 'netstandard13aot'">true</SkipValidatePackageTargetFramework>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this required?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you just needed to exclude the System.Private references you can use @(ValidateIgnoreReference) to do so.

@tarekgh
Copy link
Member Author

tarekgh commented Mar 4, 2016

@ericstj fixed the code according to your comments.

@ghost
Copy link

ghost commented Mar 4, 2016

You may as well want to run git commit --amned and update the commit message to netstandard13aot.

@tarekgh
Copy link
Member Author

tarekgh commented Mar 4, 2016

@jasonwilliams200OK I have updated the commit message. thanks

@tarekgh
Copy link
Member Author

tarekgh commented Mar 4, 2016

@dotnet-bot could you please test this?

@ericstj
Copy link
Member

ericstj commented Mar 4, 2016

Builds are failing because you missed the update to system.io.builds.


<ItemGroup Condition="'$(TargetGroup)' == 'netstandard13aot'">
<TargetingPackReference Include="System.Private.Interop" />
<ValidateIgnoreReference Include="System.Private.Interop" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be generalized to <ValidateIgnoreReference Inlcude="@(TargetingPackReference)" /> I know it is only one in this case but it might be better to generalize this. If we start getting more of these libraries we should actually add this in a common target in BuildTools.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated that. it is a good idea anyway

@ericstj
Copy link
Member

ericstj commented Mar 4, 2016

LGTM, OK to merge once all builds pass.

@tarekgh
Copy link
Member Author

tarekgh commented Mar 4, 2016

thanks @ericstj for your help and review here

We need to build System.IO that work with corert which we need to get rid of WinRT
dependencies and that will require to have different code in System.IO which require
creating a new target group. This change should be no-op for other target groups.

Conflicts:
	src/System.IO/src/System.IO.csproj
tarekgh added a commit that referenced this pull request Mar 5, 2016
Introducing netstandard13aot target group in System.IO
@tarekgh tarekgh merged commit 36f0fab into dotnet:master Mar 5, 2016
@tarekgh tarekgh deleted the netstandard15aot branch November 16, 2016 17:57
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Introducing netstandard13aot target group in System.IO

Commit migrated from dotnet/corefx@36f0fab
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants