{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6894","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6894/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6894/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6894/events","html_url":"https://github.com/NuGet/Home/issues/6894","id":319561407,"number":6894,"title":"ContentFiles, buildAction and copyToOutput wont work for ASP.NET MVC5, but does for ASP.NET Core","user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars1.githubusercontent.com/u/5808377?v=4","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-02T13:52:13Z","updated_at":"2018-05-02T13:52:13Z","closed_at":null,"author_association":"NONE","body":"\r\n## Details about Problem\r\n\r\nWe have probably the same issue as https://github.com/NuGet/Home/issues/6404, but it's reproducible. \r\n\r\nNuGet product ui: VS UI\r\n\r\nNuGet version (x.x.x.xxx): 4.6.0\r\n\r\ndotnet.exe --version (if appropriate):\r\n\r\nVS version (if appropriate): VS2017 (15.6.5),\r\n\r\nOS version (i.e. win10 v1607 (14393.321)): win 10 enterprice\r\n\r\nWorked before? If so, with which NuGet version:\r\n\r\n## Detailed repro steps so we can see the same problem\r\n\r\n1. Create a new ASP.NET MVC 5 application (I choose .net 4.5.2)\r\n2. Install the package NLog.Schema (https://www.nuget.org/packages/NLog.schema) - version 4.5.3\r\n3. Check the properties of the added NLog.config: \r\n\r\n![image](https://user-images.githubusercontent.com/5808377/39526772-188c5c4c-4e20-11e8-9719-ccd80d02939d.png)\r\n\r\n\r\nexpected: \r\n\r\n- build action: none, \r\n- copy to output directory: Copy always *or* Copy if newer\r\n\r\ncurrent:\r\n\r\n- build action: content\r\n- copy to output directory: Do not copy\r\n\r\n...\r\n\r\n## Other suggested things\r\n\r\nit works for a new ASP.NET Core website\r\n\r\n![image](https://user-images.githubusercontent.com/5808377/39526924-79a5e534-4e20-11e8-8cda-5563aec8d06f.png)\r\n\r\nthe nuspec in the package:\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<package xmlns=\"http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd\">\r\n  <metadata>\r\n    <id>NLog.Config</id>\r\n    <version>4.5.3</version>\r\n    <title>NLog Configuration</title>\r\n    <authors>Kim Christensen, Julian Verdurmen</authors>\r\n    <owners>Kim Christenen, Julian Verdurmen</owners>\r\n    <requireLicenseAcceptance>false</requireLicenseAcceptance>\r\n    <licenseUrl>http://raw.github.com/NLog/NLog/master/LICENSE.txt</licenseUrl>\r\n    <projectUrl>http://nlog-project.org/</projectUrl>\r\n    <iconUrl>http://nlog-project.org/NConfig.png</iconUrl>\r\n    <description>Xml file to get started with configuring NLog. This package is not mandatory to get started with NLog: the configuration file can created manually and the configuration can be created programmatically.</description>\r\n    <summary>Configuration file for NLog.</summary>\r\n    <releaseNotes>NLog 4.5.3</releaseNotes>\r\n    <language>en-US</language>\r\n    <tags>nlog, xml, config</tags>\r\n    <dependencies>\r\n      <dependency id=\"NLog\" version=\"4.5.3\" />\r\n      <dependency id=\"NLog.Schema\" version=\"4.5.3\" />\r\n    </dependencies>\r\n    <contentFiles>\r\n      <files include=\"**/*.*\" buildAction=\"None\" copyToOutput=\"true\" flatten=\"true\" />\r\n    </contentFiles>\r\n  </metadata>\r\n</package>\r\n```\r\n\r\n### Verbose Logs\r\n\r\nNot sure which logs I could add .\r\n\r\n### Sample Project\r\n\r\nnot sure if useful, as it's an install thing.\r\n\r\n\r\n"}}
{"actor":{"display_login":"304NotModified"}}