Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed project reference paths in legacy VC2010 action

  • Loading branch information...
commit e5c5c179bd6b083377025788fd1196f3d7eee73f 1 parent feaf4b9
@starkos starkos authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/actions/vstudio/vs2010_vcxproj.lua
View
4 src/actions/vstudio/vs2010_vcxproj.lua
@@ -1189,9 +1189,11 @@
function vc2010.projectReferences(prj)
local deps = premake.getdependencies(prj)
if #deps > 0 then
+ local prjpath = project.getlocation(prj)
+
_p(1,'<ItemGroup>')
for _, dep in ipairs(deps) do
- local deppath = path.getrelative(prj.solution.location, vstudio.projectfile(dep))
+ local deppath = path.getrelative(prjpath, vstudio.projectfile(dep))
_p(2,'<ProjectReference Include=\"%s\">', path.translate(deppath, "\\"))
_p(3,'<Project>{%s}</Project>', dep.uuid)
_p(2,'</ProjectReference>')
Please sign in to comment.
Something went wrong with that request. Please try again.