-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't get <contentfiles> working #2060
Comments
Paths under
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>NLog.Config</id>
<version>4.2.3.1</version>
<title>NLog Configuration</title>
<authors>Kim Christensen,Julian Verdurmen</authors>
<owners>Kim Christensen</owners>
<licenseUrl>http://raw.github.com/NLog/NLog/master/LICENSE.txt</licenseUrl>
<projectUrl>http://nlog-project.org/</projectUrl>
<iconUrl>http://nlog-project.org/NConfig.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Empty NLog.config file.</description>
<summary>Empty NLog.config file for use with NLog.</summary>
<releaseNotes>NLog 4.2.3 - Visual Studio 2015 compatible. (no Powershell install needed)</releaseNotes>
<language>en-US</language>
<tags>nlog xml config</tags>
<dependencies>
<dependency id="NLog" version="4.2.3" />
<dependency id="NLog.Schema" version="4.0" />
</dependencies>
<contentFiles>
<files include="**/*" buildAction="None" copyToOutput="true" flatten="true" />
</contentFiles>
</metadata>
<files>
<file src="content\NLog.config" target="content\NLog.config" />
<file src="content\NLog.config" target="contentFiles\any\any\NLog.config" />
<file src="tools\Install.ps1" target="tools\Install.ps1" />
</files>
</package> |
Note also that contentFiles is only for immutable content. The user will not be able to modify this file and it will be copied to the output folder each time, potentially overwriting user changes. |
We're tracking mutable content for project.json separately. |
@emgarten, where are you tracking support for mutable content for project.json? Couldn't find it in the issue tracker. Also, this feature isn't working for ASP.NET 5 project. I've created a simple nuget package with the following spec:
and |
I also did not got it working. The specs are unclear where the items will be added. (but did not checked the docs lately) |
The settings specified by @emgarten do not work for extracting contents from nuget which contains .js files. Please provide working settings for this usecase. Thanks. |
@neethasp please open a new issue with repro steps. |
We like to make the NLog.Config / NLog.Schema packages available for ASP.NET5 projects. We like to add a file to the root of the website, e.g. nlog.config.
But we don't get it working. The nlog.config is added to the bin folder, .e.g. C:\Users....dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin
We tried the following nuspec:
Tested in VS2015 SP1.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: