Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consume projections via nupkg vs. checked-in binaries #2733

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

msft-Jeyaram
Copy link
Contributor

@msft-Jeyaram msft-Jeyaram commented May 26, 2017

This will establish the WinObjC.Frameworks.UWP/MSAds packages and will be consumed by projects via the nupkg

  • Removing the pre-checked in binaries, headers
  • Removing the pre-checked in binary package project and removing it from the main build

Fixes #2688, #2687


This change is Reviewable

@msft-Jeyaram
Copy link
Contributor Author

msft-Jeyaram commented May 26, 2017

There is two instance of WINOBJC_SDK\ usage, that is being cleaned up now :)
#ByDesign

@msft-Jeyaram
Copy link
Contributor Author

msft-Jeyaram commented May 26, 2017

@rajsesh-msft the projection code is generated after applying the fixes to winmd2objc (my other CRs) #ByDesign

Copy link
Contributor

@rajsesh rajsesh left a comment

Choose a reason for hiding this comment

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

Per offline discussion, let us not check-in the generated code. Since this doesn't need to be built every day, we could just wrap the generation step in a script or a build task. This also doesn't have to be nightly built either.

@@ -24,6 +24,10 @@
</ProjectReference>
</ItemGroup>

<ItemGroup>
<PackageReference Condition="'$(BuildingFrameworksCore)' != 'true'" Include="WinObjC.Frameworks.UWP" Version="*" />

Choose a reason for hiding this comment

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

This is an interesting approach!

Do you think it should go down with the other PackageReferences?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope, we want to avoid Frameworks.Core from consuming this package.

Choose a reason for hiding this comment

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

That doesn't mean it can't go in the same block of package references... that just means we have to keep the Condition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, I assumed you meant to just include it without the condition.
Consider it moved.

@@ -223,6 +223,9 @@
<ItemGroup>
<ClInclude Include="..\..\..\..\tests\unittests\Starboard\LifetimeCounting.h" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="WinObjC.Frameworks.UWP" Version="*" />

Choose a reason for hiding this comment

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

Indentation is odd here!

@msft-Jeyaram
Copy link
Contributor Author

This saw random failures with NotificationQueue and filemanager tests.
Now it second run and local run seem to be fine

@msft-Jeyaram
Copy link
Contributor Author

msft-Jeyaram commented Jun 2, 2017

ping! @rajsesh-msft @DHowett-MSFT

Copy link

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

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

Moderately apprehensive about using BuildingFrameworksCore to turn off the package reference instead of inserting the package reference in every project that consumes UWP.

Also, don't our internal frameworks avoid Projections now? They should be generally free of it, and we might not want to even ALLOW them to link against it so we don't accidentally reintroduce dependencies.

@DHowett-MSFT DHowett-MSFT changed the title Implement steps to consume projections via nupkg vs pre-checked in binaries Consume projections via nupkg vs. checked-in binaries Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants