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

Build error MSB4057: The target "Restore" does not exist in the project. #74

Open
DIYsciBorg opened this issue Mar 3, 2020 · 2 comments

Comments

@DIYsciBorg
Copy link

Using Visual Studio 2019.
build engine 14.0.25420.1
from command prompt at the CsvReader-master folder (freshly unzipped from github archive)
Typing build I get back:

Checking Paket version (downloading latest stable)...
Hash file of version 5.242.2 found in cache.
Copying version 5.242.2 from cache.
Done in 2.14 second(s).
Paket version 5.242.2
Extracted Paket.Restore.targets to: C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master.paket\Paket.Restore.targets (Can be disabled with PAKET_SKIP_RESTORE_TARGETS=true)
Starting full restore process.
Performance:

  • Disk IO: 3 seconds
  • Runtime: 5 seconds
    Building project with version: LocalBuild
    Shortened DependencyGraph for Target Default:
    <== Default
    <== Test
    <== Build
    <== PackageRestore
    <== SetVersion
    <== Clean

The running order is:

  • Clean
  • SetVersion
  • PackageRestore
  • Build
  • Test
  • Default
    Running build with 1 worker
    Starting Target: Clean
    Creating C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\build
    Finished Target: Clean
    Starting Target: SetVersion (==> Clean)
    C:\Program Files\Git\cmd\git.exe log --oneline -1
    Exception! (git log --oneline failed: fatal: not a git repository (or any of the parent directories): .git)
    Created AssemblyInfo file "./code/SolutionInfo.cs".
    Finished Target: SetVersion
    Starting Target: PackageRestore (==> SetVersion)
    Building project: C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln
    C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe "C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln" /t:Restore /m /nodeReuse:False /p:RestorePackages="False" /p:Configuration="Release" /logger:Fake.MsBuildLogger+ErrorLogger,"C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\packages\build\FAKE\tools\FakeLib.dll"
    Microsoft (R) Build Engine version 14.0.25420.1
    Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/3/2020 1:27:00 PM.
1>Project "C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln" on node 1 (Restore target(s)).
1>ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
1>C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln.metaproj : error MSB4057: The target "Resto
re" does not exist in the project. [C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln]
1>Done Building Project "C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln" (Restore target(s))
-- FAILED.

Build FAILED.

   "C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln" (Restore target) (1) ->
     C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln.metaproj : error MSB4057: The target "Res
   tore" does not exist in the project. [C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.13
Running build failed.
Error:
Building C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln failed with exitcode 1.


Build Time Report

Target Duration


Clean 00:00:00.0044802
SetVersion 00:00:00.1475222
PackageRestore Failure
Total: 00:00:01.3314902

Status: Failure


  1. Building C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln failed with exitcode 1.
  2. MSB4057: C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master\CsvReader.sln.metaproj(0,0): The target "Restore" does not exist in the project.

C:\Users\Emery Premeaux\Dropbox\repos\CsvReader-master>

@lancasteradam
Copy link

I am also encountering this build issue. @phatcher , could you offer some advice? Are there some minor changes needed? Could you also specify in the readme.md what OS and .Net versions are required to build successfully?

Thanks,
Adam

@drcolombo
Copy link

@lancasteradam , @DIYsciBorg please verify that based on my fork: https://github.com/drcolombo/CsvReader. I believe this repository is not maintained anymore and I've already updated the whole project to support FAKE 5 last year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants