MS Build error - The target "Rebuild" does not exist in the project
See original GitHub issueDescription
Checking out the project and building it using the build.cmd file.
My system info:
- OS: Windows 8.1
- IDE: Visual Studio 2017 Community, with F# support installed
Repro steps
- Checkout the repository, happens with master (9b1bc25) branch.
- Open command-line window and navigate to the checkout directory
- Execute
build.cmd
Expected behavior
The build process completes without error.
Actual behavior
An error occurs in MSBuild, details below:
- Building I:\Projects\OSS\Paket\Paket.sln failed with exitcode 1.
- MSB4057: I:\Projects\OSS\Paket\tests\Paket.Tests\Paket.Tests.fsproj(0,0): The target “Rebuild” does not exist in the project.
- MSB4057: I:\Projects\OSS\Paket\src\Paket.Core\Paket.Core.fsproj(0,0): The target “Rebuild” does not exist in the project.
- MSB4057: I:\Projects\OSS\Paket\src\Paket\Paket.fsproj(0,0): The target “Rebuild” does not exist in the project.
- MSB4057: I:\Projects\OSS\Paket\integrationtests\Paket.IntegrationTests\Paket.IntegrationTests.fsproj(0,0): The target “Rebuild” does not exist in the proje ct.
The project is being checked out at I:\Projects\OSS\Paket
Known workarounds
None I can think of at the moment.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Target "build" does not exist in the project for Visual Studio
The problem was that I was using an old MSBuild (located in path %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe ). When I tried to ...
Read more >MSB4057: The target 'target name' does not exist ...
This error occurs when a target cannot be found, but it is referenced in a project file (such as in CallTarget , BeforeTargets...
Read more >MSBuild error MSB4057 after updating to VS 2019 16.10.0
After the update I'm getting the message error MSB4057: the target "Project1" does not exist in the project when I try the command...
Read more >The target "Build" does not exist in the project. (MSB4057)
I notice this error in any VB.NET project that I try to compile (VS for Mac 7.2.2 build 11). A work around was...
Read more >Error MSB4057: The target “Package” does not exist in the ...
Error MSB4057: The target “Package” does not exist in the project ... Solution 1: if it's Project is not found ,then add a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To found the issue, I created my own Rebuild-target to the fsproj-file first:
The issue was that a project file was saying
but with VS2019 the path was actually in
VisualStudio\v$(MSBuildToolsVersion)\FSharp\
and not inVisualStudio\v$(VisualStudioVersion)\FSharp\
sofixed it.
Seems to be back when VS2019 is installed.