Skip to content

Error messages in .\configure.ps1 and .\build.ps1  #7914

Closed
NuGet/NuGet.Client
#2803

Description

@dominoFire

Details about Problem

NuGet product used: build script

NuGet version: 4.9.4.5839

dotnet.exe --version: sdk-2.2.300-preview-010042-win-x64

VS version (if appropriate):

OS version: Windows 10 [Version 10.0.17763.379]

Worked before? Yes, using a Developer Command Prompt

Detailed repro steps so we can see the same problem

  1. Start a PowerShell console
  2. Start with a fresh copy of the NuGet.Client repo (git clean -xdf)
  3. Execute .\configure.ps1
  4. Execute .\build.ps1

Expected behavior

  1. No error messages in configure.ps1 output
  2. Execution of core unit tests

Actual behavior

  1. Error messages in configure.ps1 output
  2. Fail on running core unit test.

Logs

Logs for commands

transcript-build.txt

At the end of the build.ps1 command:

C:\repos\NuGet.Client\cli\sdk\2.2.300-preview-010042\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(208,5): error NETSDK1004: Assets file 'C:\repos\NuGet.Client\artifacts\Test.Utility\15.0\obj\project.assets.json' not found. Run a NuGet package restore to gener
ate this file. [C:\repos\NuGet.Client\test\TestUtilities\Test.Utility\Test.Utility.csproj]
C:\repos\NuGet.Client\cli\sdk\2.2.300-preview-010042\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(208,5): error NETSDK1004: Assets file 'C:\repos\NuGet.Client\artifacts\NuGet.CommandLine.XPlat\15.0\obj\project.assets.json' not found. Run a NuGet package resto
re to generate this file. [C:\repos\NuGet.Client\src\NuGet.Core\NuGet.CommandLine.XPlat\NuGet.CommandLine.XPlat.csproj]
C:\repos\NuGet.Client\cli\sdk\2.2.300-preview-010042\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(208,5): error NETSDK1004: Assets file 'C:\repos\NuGet.Client\artifacts\NuGet.CommandLine.XPlat\15.0\obj\project.assets.json' not found. Run a NuGet package resto
re to generate this file. [C:\repos\NuGet.Client\src\NuGet.Core\NuGet.CommandLine.XPlat\NuGet.CommandLine.XPlat.csproj]
C:\repos\NuGet.Client\cli\sdk\2.2.300-preview-010042\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(208,5): error NETSDK1004: Assets file 'C:\repos\NuGet.Client\artifacts\NuGet.Indexing\15.0\obj\project.assets.json' not found. Run a NuGet package restore to gen
erate this file. [C:\repos\NuGet.Client\src\NuGet.Core\NuGet.Indexing\NuGet.Indexing.csproj]
C:\repos\NuGet.Client\cli\sdk\2.2.300-preview-010042\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(208,5): error NETSDK1004: Assets file 'C:\repos\NuGet.Client\artifacts\NuGet.Resolver\15.0\obj\project.assets.json' not found. Run a NuGet package restore to gen
erate this file. [C:\repos\NuGet.Client\src\NuGet.Core\NuGet.Resolver\NuGet.Resolver.csproj]
  NuGet.Shared.Tests -> C:\repos\NuGet.Client\test\NuGet.Core.Tests\NuGet.Shared.Tests\bin\Debug\net472\win7-x64\NuGet.Shared.Tests.dll
  NuGet.Shared.Tests -> C:\repos\NuGet.Client\test\NuGet.Core.Tests\NuGet.Shared.Tests\bin\Debug\netcoreapp2.1\win7-x64\NuGet.Shared.Tests.dll
  Discovering test assemblies for NuGet.Shared.Tests
Invoke-BuildStep : Failed - Running Build, Pack, Core unit tests, and Unit tests for VS 15.0
At C:\repos\NuGet.Client\build.ps1:111 char:1
+ Invoke-BuildStep $VS15Message {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-BuildStep

Error-Log : [11:38:19 +327]     [FAILED +00:05:27] Running Build, Pack, Core unit tests, and Unit tests for VS 15.0
At C:\repos\NuGet.Client\build\common.ps1:142 char:17
+ ...             Error-Log "[FAILED +$(Format-ElapsedTime $sw.Elapsed)] $B ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Error-Log

Activity

  1. added
    Type:Engineering
    on Mar 26, 2019
  2. added this to the Backlog milestone on Mar 26, 2019
  3. self-assigned this
    on Apr 15, 2019
  4. modified the milestones: Backlog, 5.1 on Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Engineering

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions