{"action":"created","issue":{"url":"https://api.github.com/repos/premake/premake-core/issues/219","labels_url":"https://api.github.com/repos/premake/premake-core/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/premake/premake-core/issues/219/comments","events_url":"https://api.github.com/repos/premake/premake-core/issues/219/events","html_url":"https://github.com/premake/premake-core/pull/219","id":102768312,"number":219,"title":"Empty projects no longer ignore platform toolset when there are no \"cpp\" files present","user":{"login":"samsinsane","id":11887457,"avatar_url":"https://avatars.githubusercontent.com/u/11887457?v=3","gravatar_id":"","url":"https://api.github.com/users/samsinsane","html_url":"https://github.com/samsinsane","followers_url":"https://api.github.com/users/samsinsane/followers","following_url":"https://api.github.com/users/samsinsane/following{/other_user}","gists_url":"https://api.github.com/users/samsinsane/gists{/gist_id}","starred_url":"https://api.github.com/users/samsinsane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsinsane/subscriptions","organizations_url":"https://api.github.com/users/samsinsane/orgs","repos_url":"https://api.github.com/users/samsinsane/repos","events_url":"https://api.github.com/users/samsinsane/events{/privacy}","received_events_url":"https://api.github.com/users/samsinsane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-24T11:04:30Z","updated_at":"2015-09-10T21:28:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/premake/premake-core/pulls/219","html_url":"https://github.com/premake/premake-core/pull/219","diff_url":"https://github.com/premake/premake-core/pull/219.diff","patch_url":"https://github.com/premake/premake-core/pull/219.patch"},"body":"I'm unsure of the intended functionality of this code, but to me, if you specify the VS2013 action, it should make a VS2013 project regardless of the files you're adding.\r\n\r\nFixes #93"},"comment":{"url":"https://api.github.com/repos/premake/premake-core/issues/comments/139384622","html_url":"https://github.com/premake/premake-core/pull/219#issuecomment-139384622","issue_url":"https://api.github.com/repos/premake/premake-core/issues/219","id":139384622,"user":{"login":"tritao","id":602268,"avatar_url":"https://avatars.githubusercontent.com/u/602268?v=3","gravatar_id":"","url":"https://api.github.com/users/tritao","html_url":"https://github.com/tritao","followers_url":"https://api.github.com/users/tritao/followers","following_url":"https://api.github.com/users/tritao/following{/other_user}","gists_url":"https://api.github.com/users/tritao/gists{/gist_id}","starred_url":"https://api.github.com/users/tritao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tritao/subscriptions","organizations_url":"https://api.github.com/users/tritao/orgs","repos_url":"https://api.github.com/users/tritao/repos","events_url":"https://api.github.com/users/tritao/events{/privacy}","received_events_url":"https://api.github.com/users/tritao/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T21:28:18Z","updated_at":"2015-09-10T21:28:18Z","body":"I've also been affected by that problem about the IDE asking to upgrade some projects... it's really annoying. I didn't know why that happened so I added this hack which seemed to fix it:\r\n\r\n```\r\n-- Premake hacks\r\n\r\nlocal p = premake\r\nlocal m = p.vstudio.vc2010\r\n\r\npremake.override(premake.vstudio.vc2010, \"platformToolset\", function(base, cfg)\r\n    local tool, version = p.config.toolset(cfg)\r\n    if version then\r\n      version = \"v\" .. version\r\n    else\r\n      local action = p.action.current()\r\n      version = action.vstudio.platformToolset\r\n    end\r\n    m.element(\"PlatformToolset\", nil, version)\r\nend)\r\n```"}}