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

msbuild /t:pack fails with The "DevelopmentDependency" parameter is not supported by the "PackTask" task #5584

Closed
AArnott opened this issue Jul 11, 2017 · 2 comments

Comments

@AArnott
Copy link
Contributor

AArnott commented Jul 11, 2017

Details about Problem

VS version (if appropriate): d15rel 26709.00

dotnet --info
.NET Command Line Tools (2.0.0-preview2-006497)

Product Information:
 Version:            2.0.0-preview2-006497
 Commit SHA-1 hash:  06a2093335

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.0-preview2-006497\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview2-25407-01
  Build    : 40c565230930ead58a50719c0ec799df77bddee9

This works fine on the latest 15.2 release, so it's a regression in 15.3.

Detailed repro steps so we can see the same problem

git clone https://github.com/AArnott/C5.git
cd c5
git checkout 9d0121eb993f7aeaec1566e22e94f563967935bc
MSBuild /t:restore
cd c5
MSBuild /t:pack

Expected

Build succeeds

Actual

msbuild /t:pack
C:\Program Files\dotnet\sdk\2.0.0-preview2-006497\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(156,15): error MSB4064: The "DevelopmentDependency" parameter is not supported by the "PackTask" task. Verify the parameter exists on the task, and it is a settable public instance property. [C:\git\c5\c5\C5.csproj]
C:\Program Files\dotnet\sdk\2.0.0-preview2-006497\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(141,5): error MSB4063: The "PackTask" task could not be initialized with its input parameters.  [C:\git\c5\c5\C5.csproj]
@rohit21agrawal
Copy link
Contributor

can you try installing dotnet 2.0.0-preview2 from https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-preview2-download.md and then giving this a try?

@AArnott
Copy link
Contributor Author

AArnott commented Jul 11, 2017

Thanks for your help @rohit21agrawal. As you found, a stale copy of the NuGet.Build.Tasks.Pack.dll assembly is carried by ths msbuildsdkextras package.

@AArnott AArnott closed this as completed Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants