AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

dotnet publish is not constructing the msdeploy command correctly

Open davidsk opened this issue 8 years ago • 12 comments

Specifying replace rules in a publish profile causes the build to fail. It appears that dotnet publish is not constructing the command line properly, specifically it's leaving the match and replace values blank:

...
Task Parameter:
  ReplaceRuleItems=
    replaceFullPath
      Match=C:\\dev\\Test Projects\\MsDeployReplaceRuleTest\\bin\\Debug\\netcoreapp2\.1
      Replace=Files (TaskId:90)
      ...
  Running msdeploy.exe. (TaskId:90)
  "C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:manifest='C:\dev\Test Projects\MsDeployReplaceRuleTest\bin\Debug\netcoreapp2.1\MsDeployReplaceRuleTest.SourceManifest.xml' -dest:Package='C:\dev\Test Projects\MsDeployReplaceRuleTest\bin\Debug\netcoreapp2.1\MsDeployReplaceRuleTest.zip' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -replace:match,replace -declareParamFile:"C:\dev\Test Projects\MsDeployReplaceRuleTest\bin\Debug\netcoreapp2.1\MsDeployReplaceRuleTest.Parameters.xml" -retryAttempts=2 (TaskId:90)
...

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

davidsk avatar Jul 11 '18 17:07 davidsk

@Andrew-MSFT @guardrex should this issue be moved?

@davidsk Specifying replace rules in a publish profile is outside the scope of this article.

Rick-Anderson avatar Jul 11 '18 17:07 Rick-Anderson

Those ReplaceRuleItems bits are over in Web Sdk ... @davidsk, I recommend moving this over to aspnet/websdk issues.

guardrex avatar Jul 11 '18 18:07 guardrex

Done. https://github.com/aspnet/websdk/issues/383.

@Rick-Anderson Can you clarify the difference between the product and content feedback buttons? I opened this using the product feedback as it's not an issue with the content...

davidsk avatar Jul 11 '18 18:07 davidsk

We get issues where I'm wondering why the reader didn't click the 'product feedback' button ... They may have done so!

I have a wild and crazy idea ... brb ... I'm going to click that product feedback button and see what happens.

guardrex avatar Jul 11 '18 18:07 guardrex

This :point_down: 404's ...

capture

guardrex avatar Jul 11 '18 18:07 guardrex

It should be on the master branch ...

https://github.com/aspnet/Home/blob/master/CONTRIBUTING.md

guardrex avatar Jul 11 '18 18:07 guardrex

Glad u said something @davidsk ... I think readers click it ... get the 404 ... 'Oh, well! 😞 I'll try the other one.'

guardrex avatar Jul 11 '18 18:07 guardrex

@guardrex It didn't 404 for me, worked like a charm...

davidsk avatar Jul 11 '18 18:07 davidsk

@davidsk What's the link it points to when you rollover the "Product Feedback" button?

guardrex avatar Jul 11 '18 18:07 guardrex

My mistake, it does 404. I distinctly remember thinking that I was reporting product feedback, not content, and that was the correct button to push...

I think I misread the other button as "sign in to give feedback"...

davidsk avatar Jul 11 '18 18:07 davidsk

@Rick-Anderson opened an internal issue for investigation.

Since your main issue :point_up: is open over at https://github.com/aspnet/websdk/issues/383, I think you can close here. If you get an answer that seems actionable for docs, then ping us back over here. We can re-open this if needed.

guardrex avatar Jul 11 '18 18:07 guardrex

Sure. Thanks for taking the time.

davidsk avatar Jul 11 '18 18:07 davidsk