File not found when creating package

This is the first time you are trying to create a Nuget package .

I am trying to run the following command:

nuget.exe pack Package.nuspec

But I get the following exception:

NuGet.exe: File not found: 'Site1.Master'. On line: 1 char: 10 + nuget.exe <<package Package.nuspec + CategoryInfo: NotSpecified: (File not found: "Site1.Master" .: String) [], RemoteException + FullyQualifiedErrorId: NativeCommandError


The file section in is Package.nuspecas follows:

<files>
    <file src="Site1.Master" target="content\Site1.Master" />
    <file src="Site1.Master.cs" target="content\Site1.Master.cs" />
    <file src="Site1.Master.cs.designer" target="content\Site1.Master.cs.designer" />
</files>

My Sample Solution is as follows:

enter image description here


Catalog:

enter image description here

+4
source share
1 answer

.nuspec .nuspec. , .

+5

Source: https://habr.com/ru/post/1662138/


All Articles