{"action":"created","issue":{"url":"https://api.github.com/repos/d365collaborative/d365fo.tools/issues/11","repository_url":"https://api.github.com/repos/d365collaborative/d365fo.tools","labels_url":"https://api.github.com/repos/d365collaborative/d365fo.tools/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/d365collaborative/d365fo.tools/issues/11/comments","events_url":"https://api.github.com/repos/d365collaborative/d365fo.tools/issues/11/events","html_url":"https://github.com/d365collaborative/d365fo.tools/issues/11","id":343038936,"node_id":"MDU6SXNzdWUzNDMwMzg5MzY=","number":11,"title":"Implement full compile","user":{"login":"ITRasmus","id":38426015,"node_id":"MDQ6VXNlcjM4NDI2MDE1","avatar_url":"https://avatars3.githubusercontent.com/u/38426015?v=4","gravatar_id":"","url":"https://api.github.com/users/ITRasmus","html_url":"https://github.com/ITRasmus","followers_url":"https://api.github.com/users/ITRasmus/followers","following_url":"https://api.github.com/users/ITRasmus/following{/other_user}","gists_url":"https://api.github.com/users/ITRasmus/gists{/gist_id}","starred_url":"https://api.github.com/users/ITRasmus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ITRasmus/subscriptions","organizations_url":"https://api.github.com/users/ITRasmus/orgs","repos_url":"https://api.github.com/users/ITRasmus/repos","events_url":"https://api.github.com/users/ITRasmus/events{/privacy}","received_events_url":"https://api.github.com/users/ITRasmus/received_events","type":"User","site_admin":false},"labels":[{"id":982545187,"node_id":"MDU6TGFiZWw5ODI1NDUxODc=","url":"https://api.github.com/repos/d365collaborative/d365fo.tools/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-20T09:35:35Z","updated_at":"2018-12-11T02:04:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We should implement the ability to do a partial compile with the tool\r\n\r\n\r\nhttps://community.dynamics.com/ax/b/faheemahmeddynamicsax/archive/2016/11/21/use-command-line-to-build-your-dynamic-365-visual-studio-metadata-project-xppc\r\n"},"comment":{"url":"https://api.github.com/repos/d365collaborative/d365fo.tools/issues/comments/446045197","html_url":"https://github.com/d365collaborative/d365fo.tools/issues/11#issuecomment-446045197","issue_url":"https://api.github.com/repos/d365collaborative/d365fo.tools/issues/11","id":446045197,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjA0NTE5Nw==","user":{"login":"Ievgenm","id":27251997,"node_id":"MDQ6VXNlcjI3MjUxOTk3","avatar_url":"https://avatars3.githubusercontent.com/u/27251997?v=4","gravatar_id":"","url":"https://api.github.com/users/Ievgenm","html_url":"https://github.com/Ievgenm","followers_url":"https://api.github.com/users/Ievgenm/followers","following_url":"https://api.github.com/users/Ievgenm/following{/other_user}","gists_url":"https://api.github.com/users/Ievgenm/gists{/gist_id}","starred_url":"https://api.github.com/users/Ievgenm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ievgenm/subscriptions","organizations_url":"https://api.github.com/users/Ievgenm/orgs","repos_url":"https://api.github.com/users/Ievgenm/repos","events_url":"https://api.github.com/users/Ievgenm/events{/privacy}","received_events_url":"https://api.github.com/users/Ievgenm/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T02:04:28Z","updated_at":"2018-12-11T02:04:28Z","author_association":"NONE","body":"Here you go\r\n\r\nusing Microsoft.Dynamics.AX.Framework.Xlnt.ILGenerator;\r\nusing Microsoft.Dynamics.AX.Framework.Xlnt.XppParser.Pass2;\r\nusing System;\r\nclass Program\r\n{\r\n    const string PackagesLocalDirectory = @\"k:\\AosService\\PackagesLocalDirectory\";\r\n    static void Main(string[] args)\r\n    {\r\n        string moduleToCompile = \"Retail\";\r\n        ServiceMetadataProvider provider = new ServiceMetadataProvider(PackagesLocalDirectory, true, true, true, moduleToCompile);\r\n        var modules  = provider.GetReferencedModules();\r\n       \r\n        foreach (var module in modules )\r\n        {\r\n            CompileModule(module);\r\n        }\r\n\r\n        CompileModule(moduleToCompile);\r\n\r\n        Console.ReadLine();\r\n    }\r\n\r\n    static void CompileModule(string module)\r\n    {\r\n        Parameters parameters = new Parameters();\r\n        parameters.XppMetadataPath = PackagesLocalDirectory;\r\n        parameters.ModelModuleName = module;\r\n        parameters.ReferencedAssembliesFolder = PackagesLocalDirectory;\r\n        parameters.AssemblyOutputPath = System.IO.Path.Combine(PackagesLocalDirectory, module, \"bin\");\r\n        ILGeneratorMain.Compile(parameters);\r\n    }\r\n}\r\n"}}
{"actor":{"display_login":"Ievgenm"}}