first download "nuget.exe"
open cmd and change the path to particular folder in which "nuget.exe" is downloaded.
generate nuspec file using folling command - nuget spec "E:\Naresh\proj.csproj"
package - it will generate this type of file like proj.csproj.nuspec
edit that file to make necessary changes like below
<?xml version="1.0"?>
<package >
<metadata>
<id>proj</id> // project name
<version>1.0.0</version>
<authors>Naresh</authors>
<owners>Naresh</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Package description</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2019</copyright>
<tags>Tag1 Tag2</tags> // no need
<dependencies>
<dependency id="SampleDependency" version="1.0" /> //no need of samples
</dependencies>
</metadata>
<files>
<file src="E:\Naresh\proj\bin\Debug\*.*" target="lib\net461" /> // main project file to package - means debug location
</files>
</package>
we need build the package based on that nuspec file- example cmd path E:\download> nuget pack proj.csproj.nuspec
done...
application goto project manage nuget packages - settings - add one available package source - + click and set the path to nuget package in our local system. goto manage and we will see the new package source.. njoyyyy.. by Vasista Bhargav
open cmd and change the path to particular folder in which "nuget.exe" is downloaded.
generate nuspec file using folling command - nuget spec "E:\Naresh\proj.csproj"
package - it will generate this type of file like proj.csproj.nuspec
edit that file to make necessary changes like below
<?xml version="1.0"?>
<package >
<metadata>
<id>proj</id> // project name
<version>1.0.0</version>
<authors>Naresh</authors>
<owners>Naresh</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Package description</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2019</copyright>
<tags>Tag1 Tag2</tags> // no need
<dependencies>
<dependency id="SampleDependency" version="1.0" /> //no need of samples
</dependencies>
</metadata>
<files>
<file src="E:\Naresh\proj\bin\Debug\*.*" target="lib\net461" /> // main project file to package - means debug location
</files>
</package>
we need build the package based on that nuspec file- example cmd path E:\download> nuget pack proj.csproj.nuspec
done...
application goto project manage nuget packages - settings - add one available package source - + click and set the path to nuget package in our local system. goto manage and we will see the new package source.. njoyyyy.. by Vasista Bhargav