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

How to deploy on a server with non-standard TCP port (1433). #62

Closed
axelgenus opened this issue Sep 21, 2020 · 2 comments
Closed

How to deploy on a server with non-standard TCP port (1433). #62

axelgenus opened this issue Sep 21, 2020 · 2 comments

Comments

@axelgenus
Copy link

axelgenus commented Sep 21, 2020

I've tried different combination but it seems like "dotnet publish" does not support specifying the server port to use for deployment. Is there any specific syntax to use?

What I tried:

/p:TargetServerName="localhost,5000"
/p:TargetServerName="localhost:5000"
/p:TargetServerName="(localhost,5000)"

All returns:

MSBUILD : error MSB1006: Property is not valid.
Switch: 1433

Also I tried looking for a "TargetServerPort" in the project source code to no avail.

@axelgenus
Copy link
Author

axelgenus commented Sep 21, 2020

Sorry, I just found out that this issue is actually related to MSBuild (see dotnet/msbuild#2999).

This is feasible escaping the double quotes like this:

/p:TargetServerName=\"localhost,5000\"

@jmezach
Copy link
Member

jmezach commented Sep 21, 2020

@axelgenus Glad to hear you've managed to resolve this. Perhaps we should add this to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants