Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Issue: Files without filenames isn't included in the package [2742]

$
0
0
We are using a .htaccess (hypertext access) file in our project. When I run nuget pack it skips that specific file. It that by design, customizable or a bug?
Comments: Example 1 of specifying files in nuspec-file: <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>id</id> <title>title</title> <version>1.0.0</version> <authors>authors</authors> <owners>owners</owners> <licenseUrl>http://license.url</licenseUrl> <projectUrl>http://project.url</projectUrl> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>description</description> <releaseNotes>releaseNotes</releaseNotes> </metadata> <files> <file src="*.htaccess" target="" /> </files> </package> Result: a.htaccess _.htaccess Example 2 of specifying files in nuspec-file: <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>id</id> <title>title</title> <version>1.0.0</version> <authors>authors</authors> <owners>owners</owners> <licenseUrl>http://license.url</licenseUrl> <projectUrl>http://project.url</projectUrl> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>description</description> <releaseNotes>releaseNotes</releaseNotes> </metadata> <files> <file src="*.htaccess" target="" /> </files> </package> Result: NuGet.exe : Cannot create a package that has no dependencies nor content. At line:1 char:6 + nuget <<<< pack thon.nuspec + CategoryInfo : NotSpecified: (Cannot create a...es nor content.:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError

Viewing all articles
Browse latest Browse all 7612

Trending Articles



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