Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Using a custom NUGET package

$
0
0

I have a library class that I've turned into a NUGET package (or created a package from).I am hosting it on a shared drive and managed to get it to show up in the package manager (and also install it). But after that I can't seem to find a way to actually use it in code.

I thought I could just use the name space that the original code is using like this:

using CompanyName.WriteAssistant

Or just do using CompanyName and then var test = WriteAssistant.Write(someObject), but neither seem to work.

I have also noticed that the contents of the package, after being downloaded to the project where I want to use it, is literally just the entire solution folder of the original project, whereas most packages seem to be much smaller with just a nupckg file.

Here is my nuspec:

<?xml version="1.0" encoding="utf-8"?><package ><metadata><id>WriteAssistant</id><version>1.0.0</version><authors>parrotmaster</authors><requireLicenseAcceptance>false</requireLicenseAcceptance><license type="expression">MIT</license><!-- <icon>icon.png</icon> --><description>Allow writing data to file</description><releaseNotes>Inital version.</releaseNotes><copyright>$copyright$</copyright><tags>writing write file</tags><dependencies><group targetFramework=".NETStandard2.1"><dependency id="CompanyWriteAssistant" version="1.0.0" /></group></dependencies></metadata></package>

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>