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

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

Closed
dominoFire opened this Issue Mar 26, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@dominoFire
Copy link

dominoFire commented Mar 26, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.