{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools/issues/161","repository_url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools","labels_url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools/issues/161/comments","events_url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools/issues/161/events","html_url":"https://github.com/OfficeDev/Open-Xml-PowerTools/issues/161","id":242694922,"number":161,"title":"vnext branch Path issue + System.IO.Packaging.dll ","user":{"login":"svhadar","id":29213213,"avatar_url":"https://avatars3.githubusercontent.com/u/29213213?v=4","gravatar_id":"","url":"https://api.github.com/users/svhadar","html_url":"https://github.com/svhadar","followers_url":"https://api.github.com/users/svhadar/followers","following_url":"https://api.github.com/users/svhadar/following{/other_user}","gists_url":"https://api.github.com/users/svhadar/gists{/gist_id}","starred_url":"https://api.github.com/users/svhadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svhadar/subscriptions","organizations_url":"https://api.github.com/users/svhadar/orgs","repos_url":"https://api.github.com/users/svhadar/repos","events_url":"https://api.github.com/users/svhadar/events{/privacy}","received_events_url":"https://api.github.com/users/svhadar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-13T13:07:47Z","updated_at":"2017-07-29T23:48:45Z","closed_at":null,"body":"Hi,\r\nit is the first time I tried to work with the Open-XML-Powertools.\r\nI cloned the vnext branch and followed the \"new\" youtube video for the VS2071 build process.\r\nThe build process (using OpenXMLPowertools -> targeting .net 4.5)  runs fine with 2 successfull builds and no errors.\r\nWhile importing the module I run into the following error multiple times:\r\n\r\n```\r\nAdd-Type : Cannot bind parameter 'Path' to the target. Exception setting \"Path\": \"Cannot find path '<path>\\WindowsPowerShell\\Modules\\Open-Xml-Sdk\\DocumentFormat.OpenXml\\bin\\debug\\DocumentFormat.OpenXml.dll' because it\r\ndoes not exist.\"\r\n\r\n```\r\nThe \"Open-Xml-Sdk\" directory does not exist. I assume that this was the path when the Open-XML-SDK was build from source.\r\nAs the vnext branch uses nuget the path to the DocumentFormat.OpenXml.dll (to my understanding) should now be:\r\n....\\packages\\DocumentFormat.OpenXml.2.7.2-vnext0027\\lib\\net45\r\n\r\nOnce I changed that in AddTypes.ps1 I get the following while trying to import the module:\r\n\r\n```\r\nAdd-Type : Cannot bind parameter 'Path' to the target. Exception setting \"Path\": \"Cannot find path ```\r\n'<path>\\Documents\\WindowsPowerShell\\Modules\\Open-Xml-Sdk\\DocumentFormat.OpenXml\\bin\\debug\\System.IO.Packaging.dll' because it\r\ndoes not exist.\"\r\n```\r\nThe System.IO.Packaging.dll is not included in the open-xml-powertools directory before or after the build.\r\nI tried to install System.IO.Packaging.dll via nuget but it failed due to the targeting  .NET framework (4.5).\r\nI could not find System.IO.Packaging.dll anywhere on my system.\r\n\r\nI am working on a windows server 2012 R2 with Powershell 5.\r\n.NET 3.5 and 4.5 are installed.\r\n\r\nCan anyone help me out on this?\r\n\r\nThanks\r\n\r\nSven\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools/issues/comments/318867093","html_url":"https://github.com/OfficeDev/Open-Xml-PowerTools/issues/161#issuecomment-318867093","issue_url":"https://api.github.com/repos/OfficeDev/Open-Xml-PowerTools/issues/161","id":318867093,"user":{"login":"svhadar","id":29213213,"avatar_url":"https://avatars3.githubusercontent.com/u/29213213?v=4","gravatar_id":"","url":"https://api.github.com/users/svhadar","html_url":"https://github.com/svhadar","followers_url":"https://api.github.com/users/svhadar/followers","following_url":"https://api.github.com/users/svhadar/following{/other_user}","gists_url":"https://api.github.com/users/svhadar/gists{/gist_id}","starred_url":"https://api.github.com/users/svhadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svhadar/subscriptions","organizations_url":"https://api.github.com/users/svhadar/orgs","repos_url":"https://api.github.com/users/svhadar/repos","events_url":"https://api.github.com/users/svhadar/events{/privacy}","received_events_url":"https://api.github.com/users/svhadar/received_events","type":"User","site_admin":false},"created_at":"2017-07-29T23:48:45Z","updated_at":"2017-07-29T23:48:45Z","body":"Thanks pigrew.\r\n\r\nJust to be clear, I am getting a clean build with System.IO.Packaging in the source files, \r\nThe errors I mentioned in my first post occurred while trying to import the Open-XML-Powertools module in a Powershell \"session\".\r\n\r\nI now got a clean clone of Open-XML-Powertools and replaced all occurrences (5) of \"using System.IO.Packaging;\" with \"//using System.IO.Packaging;\".\r\nBut during the build I now get 7 Errors all related to missing types or namespaces:\r\nThey all look like this:\r\n```\r\nSeverity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\r\nError\tCS0246\tThe type or namespace name 'PackagePart' could not be found (are you missing a using directive or an assembly reference?)\tOpenXmlPowerTools\tC:\\Users\\HadarS\\Documents\\Open-XML-Powertools\\OpenXmlPowerTools\\WmlComparer.cs\t4451\tActive\r\n```\r\nonly the missing type of namespace varies:\r\nWmlDocument, PackagePart, Package\r\n\r\nI may be missing something and would be very grateful is someone can point me in the right direction.\r\n\r\nThanks\r\nSven\r\n"}}
{"actor":{"display_login":"svhadar"}}