Why doesn't msbuild publish work the same as Publish from Visual Studio? #7138
Unanswered
hallambaker
asked this question in
General
Replies: 1 comment
-
Moved this to an issue in the sdk repo that controls publish: dotnet/sdk#23043. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a large project that supports ten separate platforms with customized builds for each. So I want to be able to script this.
When I publish from within VS, it uses the parameters specified in the .pubxml file.
When I try to do the same thing from msbuild, it ignores the settings in the .pubxml which is really weird because that is the file I specified on the command line.
Instead of building the Release configuration specified in the .pubxml, it builds the Debug, it doesn't publish a single file and it doesn't put it where I specified.
How can I get Msbuild to publish using the settings from the pubxml?
Why is this not considered a bug?
I did have some conversations with a team member who advised me to basically respecify everything on the command line. But the documentation is non existent, incomplete and conflicting.
All my code is in.
https://github.com/hallambaker/Mathematical-Mesh
Am I somehow getting an obsolete version of Msbuild? I don't think so:
C:\Users\hallam> where msbuild
C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\MSBuild.exe
Beta Was this translation helpful? Give feedback.
All reactions