Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 913 Bytes

File metadata and controls

28 lines (19 loc) · 913 Bytes
title NuGet Error NU5026
description NU5026 Error code
author mishra14
ms.author jodou
ms.date 8/3/2018
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU5026

NuGet Error NU5026

The file ''F:\project\bin\Debug\net461\project.exe' to be packed was not found on disk.

Issue

The project being packed has not been built yet and hence cannot be packed.

Solution

Please build the project before running dotnet pack operation or do not use --no-build option to allow dotnet pack to build the project before packaging.

You may have written a project that does not output assemblies. If you intend to ship an assembly-free NuGet package, disable dotnet pack’s requirement for an output assembly. You can do this by setting the IncludeBuildOutput property to false in your project file.

Also see related msbuild properties.