{"action":"closed","issue":{"url":"https://api.github.com/repos/peachpiecompiler/peachpie/issues/195","repository_url":"https://api.github.com/repos/peachpiecompiler/peachpie","labels_url":"https://api.github.com/repos/peachpiecompiler/peachpie/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/peachpiecompiler/peachpie/issues/195/comments","events_url":"https://api.github.com/repos/peachpiecompiler/peachpie/issues/195/events","html_url":"https://github.com/peachpiecompiler/peachpie/issues/195","id":307092712,"number":195,"title":"Using Peachpie app as a NuGet package.","user":{"login":"gordon-matt","id":2860937,"avatar_url":"https://avatars1.githubusercontent.com/u/2860937?v=4","gravatar_id":"","url":"https://api.github.com/users/gordon-matt","html_url":"https://github.com/gordon-matt","followers_url":"https://api.github.com/users/gordon-matt/followers","following_url":"https://api.github.com/users/gordon-matt/following{/other_user}","gists_url":"https://api.github.com/users/gordon-matt/gists{/gist_id}","starred_url":"https://api.github.com/users/gordon-matt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordon-matt/subscriptions","organizations_url":"https://api.github.com/users/gordon-matt/orgs","repos_url":"https://api.github.com/users/gordon-matt/repos","events_url":"https://api.github.com/users/gordon-matt/events{/privacy}","received_events_url":"https://api.github.com/users/gordon-matt/received_events","type":"User","site_admin":false},"labels":[{"id":322093832,"url":"https://api.github.com/repos/peachpiecompiler/peachpie/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-03-21T01:16:12Z","updated_at":"2018-03-26T12:49:00Z","closed_at":"2018-03-26T12:49:00Z","author_association":"CONTRIBUTOR","body":"This is probably more of a question than an issue - not sure if it's an issue or just me not knowing the answer.\r\n\r\nI have packaged the Website project into a NuGet **.nupkg** file and referenced it from another project. I then changed my configuration paths. They were previously as follows in my main test project:\r\n\r\n```\r\n\"ResponsiveFileManagerConfig\": {\r\n    \"CurrentPath\": \"..\\\\..\\\\WebApplication\\\\wwwroot\\\\Media\\\\Uploads\\\\\",\r\n    \"ThumbsBasePath\": \"..\\\\..\\\\WebApplication\\\\wwwroot\\\\Media\\\\Thumbs\\\\\"\r\n  }\r\n```\r\n\r\nI simply changed \"WebApplication\" to \"ConsoleApp1\", which is what I am using to test the NuGet package:\r\n\r\n```\r\n\"ResponsiveFileManagerConfig\": {\r\n    \"CurrentPath\": \"..\\\\..\\\\ConsoleApp1\\\\wwwroot\\\\Media\\\\Uploads\\\\\",\r\n    \"ThumbsBasePath\": \"..\\\\..\\\\ConsoleApp1\\\\wwwroot\\\\Media\\\\Thumbs\\\\\"\r\n  }\r\n```\r\n\r\nNow I get error messages from the file manager itself about the **$current_path** not existing. I guess because now the directory structure when referencing a NuGet package is a little bit different (but I am not sure how).. so I tried various combinations, like:\r\n\r\n```\r\n\"ResponsiveFileManagerConfig\": {\r\n    \"CurrentPath\": \"..\\\\ConsoleApp1\\\\wwwroot\\\\Media\\\\Uploads\\\\\",\r\n    \"ThumbsBasePath\": \"..\\\\ConsoleApp1\\\\wwwroot\\\\Media\\\\Thumbs\\\\\"\r\n  }\r\n```\r\nand:\r\n```\r\n\"ResponsiveFileManagerConfig\": {\r\n    \"CurrentPath\": \"..\\\\wwwroot\\\\Media\\\\Uploads\\\\\",\r\n    \"ThumbsBasePath\": \"..\\\\wwwroot\\\\Media\\\\Thumbs\\\\\"\r\n  }\r\n```\r\nand:\r\n```\r\n\"ResponsiveFileManagerConfig\": {\r\n    \"CurrentPath\": \"\\\\wwwroot\\\\Media\\\\Uploads\\\\\",\r\n    \"ThumbsBasePath\": \"\\\\wwwroot\\\\Media\\\\Thumbs\\\\\"\r\n  }\r\n```\r\n\r\nObviously none of those are working. Could you perhaps help me figure out the correct paths to use?\r\n\r\n**NOTE**: This is related to issue #185"}}
{"actor":{"display_login":"gordon-matt"}}