2

I have a solution containing only one WPF project, when i try it create a package from this project using msbuild(commandline), i got the error

The target "Package" does not exist in the current project.

Troy hunt discuss about this problem in this link Why the target "Package" does not exist in the current project., but it does not help me, maybe because i am using a WPF project and that example is for a web project.

Thanks

1 Answer 1

5

I was trying to create the publish the project using

msbuild MyProject.csproj /t:package /p:configuration=release

The above line works perfectly fine for web projects but for windows project it should be

msbuild MyProject.csproj /t:publish /p:configuration=release

I hope it saves someone's time

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.