Skip to content

Move project to app CRTs in preparation to run Universal#3474

Merged
miniksa merged 8 commits intomasterfrom
dev/miniksa/crt
Nov 8, 2019
Merged

Move project to app CRTs in preparation to run Universal#3474
miniksa merged 8 commits intomasterfrom
dev/miniksa/crt

Conversation

@miniksa
Copy link
Member

@miniksa miniksa commented Nov 7, 2019

Summary of the Pull Request

  • Non-Desktop editions need to use the App CRT. This moves us to the App CRT for all WinRT projects (Terminal projects).

PR Checklist

  • I work here
  • Tests should still pass
  • Am a core contributor.

Detailed Description of the Pull Request / Additional comments

We were overriding to the desktop SDK for our terminal project for reasons related to unpackaged activation. But:

  1. That's not super important as we're focused on packaged activation for a myriad of other reasons
  2. We have the forwarders now and as long as they're next to the WindowsTerminal.exe, they should be invoked and forward the App CRT things to the desktop one.

In order for me to get this to run on non-Desktop platforms, I need the universal app CRT instead. So this uses that by default.

One casualty of war is winconpty.dll. If I build it in DLL form since it's a non-store project, it gets the desktop CRT. But the now-universal TerminalConnection.dll project dependent on the app CRT needs that.

I could set winconpty.dll to the store/app crt... and then the tests would break unless I carried the forwarders with.

So since there's no pressing need to distribute the winconpty.dll as a DLL, I made it a .lib and let it get rolled into the relevant binaries that already have their platform-appropriate CRTs.

Validation Steps Performed

F5-ran the CascadiaPackage project

… it'll use the CRT inside TerminalConnection (or its other consumers) instead of linking its own.
… on how CRT linking works for future reference. I'm sure this will come up again.
@miniksa miniksa self-assigned this Nov 7, 2019
@DHowett-MSFT DHowett-MSFT changed the title Moves project to app CRTs in preparation to run Universal Move project to app CRTs in preparation to run Universal Nov 7, 2019
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

Sad to see the final nail in the unpackaged coffin. I had hoped to resurrect that monster at some point in the future, but this definitely takes priority over my monster.

@miniksa
Copy link
Member Author

miniksa commented Nov 8, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DHowett-MSFT
Copy link
Contributor

Note to self: Reports that this has different results for Unicode rendering (???)

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.

3 participants