title: dotnet publish-iis looking for web.config in wrong place
body: <p>I'm having trouble getting <code>dotnet publish-iis</code> to run correctly.</p>
  
  <p>To publish my project I'm using:</p>
  
  <pre><code>dotnet publish ./src/RetailGuardian.Web/ -o ./code_drop/RetailGuardian.Web --runtime dnet452
  </code></pre>
  
  <p>and I've set a postpublish script in my <code>project.json</code>:</p>
  
  <pre><code>"scripts": {
      "postpublish": "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
  }
  </code></pre>
  
  <p>The initial publish works properly, and places the code in a code_drop directory as expected (this was what I used to deploy in RC1 and it worked fine). However, publish-iis seems to not use the output path when attempting to locate the web.config. This is the output from when it runs:</p>
  
  <pre><code>Configuring the following project for use with IIS: './code_drop/RetailGuardian.Web'
  No web.config found. Creating './code_drop/RetailGuardian.Web\web.config'
  Could not find a part of the path 'G:\Projects\retailguardian\src\RetailGuardian.Web\code_drop\RetailGuardian.Web\web.config'.
  System.IO.DirectoryNotFoundException: Could not find a part of the path 'G:\Projects\retailguardian\src\RetailGuardian.Web\code_drop\RetailGuardian.Web\web.config'.
     at System.IO.Win32FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, FileStream parent)
     at System.IO.Win32FileSystem.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, Int32
  bufferSize, FileOptions options, FileStream parent)
     at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
     at Microsoft.AspNetCore.Server.IISIntegration.Tools.PublishIISCommand.Run()
     at Microsoft.AspNetCore.Server.IISIntegration.Tools.Program.&lt;&gt;c__DisplayClass0_0.&lt;Main&gt;b__0()
     at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
     at Microsoft.AspNetCore.Server.IISIntegration.Tools.Program.Main(String[] args)
  publish: Published to ./code_drop/RetailGuardian.Web
  Published 1/1 projects successfully
  </code></pre>
  
  <p>So it's trying to use <code>G:\Projects\retailguardian\src\RetailGuardian.Web\code_drop\RetailGuardian.Web\web.config</code> which is the source directory, rather than <code>G:\Projects\retailguardian\code_drop\RetailGuardian.Web\web.config</code> which is where the publish output is.</p>
  
  <p>(Curiously it also reports that the publish was successful, even though the postpublish fails)</p>