nuspec

Is there an alternative to contentFiles with projects that use packages.config?

夙愿已清 提交于 2021-02-04 19:51:05
问题 I have a nuget package with content that I want to be copied to the build output when users install my package. There is support for this: NuGet ContentFiles Demystified in NuGet v3.3. However, it only works in projects that use project.json . The contentFiles are not copied to my build output when I have a project that uses packages.config . Is there an alternative or workaround I could use in order to make my NuGet package work on projects that use either a project.json or packages.config ?

Packing static content in Nuget for PackageReferece projects

邮差的信 提交于 2020-01-02 04:59:06
问题 I have a Class Library (net47) project and I'd like to pack into a nuget my dll and several files of static content (js, css, images...). I want to use this dll and the content from the consumer projects. These projects will be MVC PackageReference projects. In these projects the local static files are in the wwwroot folder. I have tried this: NuGet ContentFiles Demystified but I get my js and css files referenced (they aren't copied to my project content). In my nuspec I've tried with all

how to resolve “Unable to find package” nuget error

送分小仙女□ 提交于 2019-12-23 18:24:26
问题 Working on creating a nuget pkg for a project (A.csproj) which depends on another project (B.csprojec) added as a project reference. Here is the .nuspec , <?xml version="1.0"?> <package > <metadata> <id>A.Client</id> <title>A.Client</title> <description>HttpClient and Models for calling the A Microservice.</description> <version>1.0.2</version> <authors></authors> <owners></owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <copyright>.</copyright> <tags></tags> <dependencies>

NuGet doesn't copy config file

北慕城南 提交于 2019-12-23 09:39:36
问题 I've tried many different things now, none of which seem to work out as expected. I would like to share an example config(or image or whatever) file with my library that someone would be able to use and derive from. I tried to default to just To do so I tried to include it in the nuget package via *.nuspec and via *.csproj . None of which worked. For the *.nuspec part, I've tried this: <file src="bin\$configuration$\example.mylib.config" target="lib\net45" /> <file src="bin\$configuration$

NuGet Framework Assemblies not working

◇◆丶佛笑我妖孽 提交于 2019-12-23 06:50:10
问题 I'm trying to update a nuget package to add some assembly references, but I'm getting the following error: The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'frameworkAssemblies' in namespace http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. List of possible elements expected: 'dependencies, language, summary' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' I believe this functionality