Testing package installation
Closed this issue · 4 comments
M-Yankov commented
Testing package installation
Before publishing a package, you typically want to test the process of installing a package into a project. The tests make sure that the necessarily files all end up in their correct places in the project.
You can test installations manually in Visual Studio or on the command line using the normal package installation steps.
For automated testing, the basic process is as follows:
- Copy the
.nupkg
file to a local folder. - Add the folder to your package sources using the
nuget sources -name <name> -source <path>
command (see nuget sources). Note that you need only set this local source once on any given computer. - Install the package from that source using
nuget install <packageID> -source <name>
where<name>
matches the name of your source as given tonuget sources
. Specifying the source ensures that the package is installed from that source alone. - Examine the file system to check that files are installed correctly.
M-Yankov commented
The Nuget package should be in Release mode, because of the javascript version
M-Yankov commented
Check the following scenario
- publish 7.3.0.0 version
- publish 9.1.0.0 version
Can I publish a bug fix with version 7.3.0.1 ?
M-Yankov commented
the 9.1.x.x version should support multiple .net version 4.0
and 4.5
M-Yankov commented
nuget pack MyProject.csproj -properties Configuration=Release