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

dotnet integration pack test IL issue #11454

Closed
erdembayar opened this issue Dec 15, 2021 · 1 comment
Closed

dotnet integration pack test IL issue #11454

erdembayar opened this issue Dec 15, 2021 · 1 comment

Comments

@erdembayar
Copy link
Contributor

erdembayar commented Dec 15, 2021

Please run any dotnet integration test like one below.

https://github.com/NuGet/NuGet.Client/blob/dev-eryondon-9949PackNoWarn/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/PackCommandTests.cs#L5716-L5783

In the 1st run everything works as expected, but 2nd/3rd of same test fails with obscure error.

dotnet.exe pack -o C:\NuGetProj\NuGet.Client\.test\work\d7b832e8\913de640\ClassLibrary1 command failed with following log information :
 Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
  Determining projects to restore...
  All projects are up-to-date for restore.
  You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
  ClassLibrary1 -> C:\NuGetProj\NuGet.Client\.test\work\d7b832e8\913de640\ClassLibrary1\bin\Debug\net5.0\ClassLibrary1.dll
C:\NuGetProj\NuGet.Client\.test\work\e9383fde\fd462388\sdk\5.0.200-servicing.21120.4\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(278,15): error MSB4064: The "Readme" parameter is not supported by the "PackTask" task. Verify the parameter exists on the task, and it is a settable public instance property. [C:\NuGetProj\NuGet.Client\.test\work\d7b832e8\913de640\ClassLibrary1\ClassLibrary1.csproj]
C:\NuGetProj\NuGet.Client\.test\work\e9383fde\fd462388\sdk\5.0.200-servicing.21120.4\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error MSB4063: The "PackTask" task could not be initialized with its input parameters.  [C:\NuGetProj\NuGet.Client\.test\work\d7b832e8\913de640\ClassLibrary1\ClassLibrary1.csproj]

 Expected: True
Actual:   False

Workaround: Backup "NuGet.Client\artifacts\NuGet.Build.Tasks.Pack\bin\Debug\netstandard2.0\ilmerge\NuGet.Build.Tasks.Pack.dll" file somewhere then restore after each test run. Somehow this file get removed after each test run.

@erdembayar erdembayar changed the title dotnet integration test IL issue dotnet integration pack test IL issue Dec 15, 2021
@nkolev92 nkolev92 added the Priority:2 Issues for the current backlog. label Dec 16, 2021
@nkolev92
Copy link
Member

Fixed in NuGet/NuGet.Client#4488.

Not sure why it wasn't closed.

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