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

Changes to the publish-iis tool #169

Open
moozzyk opened this issue Apr 18, 2016 · 0 comments
Open

Changes to the publish-iis tool #169

moozzyk opened this issue Apr 18, 2016 · 0 comments

Comments

@moozzyk
Copy link

moozzyk commented Apr 18, 2016

The publish-iis tool underwent some breaking changes recently:

  • the name of the package that contains the publish-iis tool was changed to Microsoft.AspNetCore.Server.IISIntegration.Tools. This requires changing your project.json file to inlude the "Microsoft.AspNetCore.Server.IISIntegration.Tools" package instead of the "dotnet-publish-iis" package.
  • the tool needs now to distinguish portable apps from standalone apps to be able to write the web.config file correctly depending on the application type that is being published. This required adding a new, mandatory parameter --framework that tells the tool what framework the application was published for.
  • since HttpPlatformModule was replaced with AspNetCoreModule
    the web.config created by the publish-iis tool now configures IIS to use AspNetCoreModule instead of HttpPlatformHandler to forward requests to Kestrel

The code snippet below shows how to configure the new publish-iis tool in project.json file

"tools": {
  "Microsoft.AspNetCore.Server.IISIntegration.Tools": {
    "version": "1.0.0-*",
    "imports": "portable-net45+wp80+win8+wpa81+dnxcore50"
  }
},
"scripts": {
  "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
}

Please use aspnet/IISIntegration#139 for discussion.

@aspnet aspnet locked and limited conversation to collaborators Apr 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant