Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Update self host deployer to target specific framework when lauching without publish #743

Merged
merged 1 commit into from
May 7, 2016

Conversation

JunTaoLuo
Copy link
Contributor

@JunTaoLuo JunTaoLuo commented May 6, 2016

#728 As titled.

I'm renaming the property to reflect the fact that it is no longer only used for publishing. This will require changes in Entropy, MusicStore, IISIntegration, ServerTests, Localization.
I have tested this locally, both default targets and explicit targets, to verify that apps are launched in the correct framework but I'll wait for some feedback before seeking RC2 approval.

@@ -74,8 +74,10 @@ protected CancellationToken StartSelfHost(Uri uri)
}
else
{
var targetFramework = DeploymentParameters.TargetFramework ?? (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr ? "net451" : "netcoreapp1.0");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm adding these default targets since I don't think they should change anymore and individual deployers can still override the default by specifying it explicitly. These defaults can also be added to ApplicationDeployer. The reason we had this option previously is because some apps contained multiple .NET Core targets (dnxcore50 and netstandardapp1.5 for example) making default targets less applicable but that is no longer the case.

@Tratcher
Copy link
Member

Tratcher commented May 6, 2016

:shipit:

@JunTaoLuo
Copy link
Contributor Author

RC2 approval cc @Eilon @DamianEdwards. I will merge this into release instead of dev on which I accidentally opened this PR.

@Eilon
Copy link
Member

Eilon commented May 6, 2016

@JunTaoLuo go for it, and please keep an eye on the CI to make sure that affected tests pass (or disable them and log RC2 bugs to investigate).

@JunTaoLuo JunTaoLuo merged commit 3337c28 into dev May 7, 2016
@JunTaoLuo JunTaoLuo deleted the johluo/deployers-update branch May 7, 2016 00:25
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.

4 participants