exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 58 discussion

Actual exam question from Microsoft's 70-487
Question #: 58
Topic #: 1
[All 70-487 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have developed a .NET Standard Library.
You need to produce a NuGet package.
Solution: Run the msbuild command with the publish target specified.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Package the component with the NuGet pack command. The dotnet pack command and msbuild -t:pack may be used as alternates.
References:
https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets https://docs.microsoft.com/en-us/nuget/guides/create-net-standard-packages-vs2015

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LeonWang
Highly Voted 5 years, 5 months ago
I think the ans is B. Msbuild target pack is correct. Not target publish.
upvoted 20 times
GabF
5 years ago
The Q. 57 and 59 change only the solution and it’s Yes. So, I think it’s No for this question.
upvoted 1 times
Dev666
4 years, 10 months ago
agreed should be B
upvoted 1 times
...
...
...
ctygehtuk
Highly Voted 5 years, 4 months ago
The answer is clearly B. It needs msbuild command with the pack target specified, not publish.
upvoted 8 times
...
EltonCostaBR
Most Recent 4 years, 5 months ago
A correct https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli
upvoted 2 times
modsjunk
4 years, 5 months ago
parameter is incorrect, should be -t:pack and not publish
upvoted 1 times
...
...
nelaed
4 years, 10 months ago
It can be done with MSBuild "The command that creates a package, msbuild -t:pack, is functionality equivalent to dotnet pack." https://docs.microsoft.com/pl-pl/nuget/create-packages/creating-a-package-msbuild
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...