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

Enabling publishing portable apps #136

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Enabling publishing portable apps #136

merged 1 commit into from
Apr 15, 2016

Conversation

moozzyk
Copy link
Contributor

@moozzyk moozzyk commented Apr 15, 2016

Addresses #109

@@ -20,21 +20,23 @@ public static int Main(string[] args)
app.HelpOption("-h|--help");

var publishFolderOption = app.Option("--publish-folder|-p", "The path to the publish output folder", CommandOptionType.SingleValue);
var frameworkOption = app.Option("-f|--framework <FRAMEWORK>", "Target framework of application being published", CommandOptionType.SingleValue);
Copy link
Member

Choose a reason for hiding this comment

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

Should we say something about this argument being required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could. At the moment we don't say anything for --publish-folder so I did not add it here either. The reality is that typically people will not run it manually. Rather it will be in project.json in the post publish script section (created by our templates)

@Tratcher
Copy link
Member

What does the new project.json tool script look like?

@moozzyk
Copy link
Contributor Author

moozzyk commented Apr 15, 2016

Haven't tried it end to end but it should be something along these lines:

  "scripts": {
    "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
  }

@moozzyk
Copy link
Contributor Author

moozzyk commented Apr 15, 2016

We would also need to add configuration for this: #128. I think it is not for RC2 and it would be optional.

@Tratcher
Copy link
Member

"%publish:publish:" really?
:shipit:

@moozzyk
Copy link
Contributor Author

moozzyk commented Apr 15, 2016

Copied incorrectly. It is just %publish:FullTargetFramework%

@moozzyk moozzyk merged commit 1410a5a into release Apr 15, 2016
@moozzyk moozzyk deleted the pawelka/portable branch April 15, 2016 23:09
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