The target "CreateManifestResourceNames" does not exist in the project.

See original GitHub issue

I get this error when I try to build this project:

The target “CreateManifestResourceNames” does not exist in the project.


<Project Sdk="Microsoft.Build.Traversal/2.0.12"  ToolsVersion="15.0">
  <ItemGroup>
    <!-- Build all projects recursively under the "src" folder -->
    <ProjectReference Include="src\**\*.*proj" />
  </ItemGroup>
</Project>


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
tclancycommented, May 13, 2021

If it helps anyone else (as perverse as I am), I run into this off and on when building Power Apps Components. Sometimes msbuild /t:build works but sometimes it fails with this message. I just had it happen again immediately after a successful build. All I had changed in the interim was some documentation. However, running msbuild /t:build /restore fixed it.

It should be said this almost certainly user error or being overly bold: I have customized the paths to fit what I want and I am running this 95% on a Mac with only the server and the build step (and, for added fun, installing npm packages) running in a Windows VM.

1reaction
Kierantiescommented, Apr 7, 2020

I’ve just met this issue and found it to occur when not using .csproj

Failing:

  Restore completed in 35.68 ms for ...\packages\project.proj.
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 34.2 ms for ...\packages\project.proj.
C:\Program Files\dotnet\sdk\3.1.201\Microsoft.Common.CurrentVersion.targets(2795,7): error MSB4057: The target "CreateManifestResourceNames" does not exist in the project. [...\packages\project.proj]

Success:

  Restore completed in 2.71 sec for ...\packages\project.csproj.
Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 41.49 ms for ...\packages\project.csproj.
  project -> ...\packages\bin\Debug\net452\project.dll
  project -> ...\packages\results\
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found