Skip to content

Please avoid $(SolutionDir) in Project configuration #399

@ChristianFischer

Description

@ChristianFischer

The project configuration uses $(SolutionDir) on several settings, which makes it impossible to add the cocos projects into own solutions.

For example, in cocos2dx, PreLinkEvent this command is used:
if not exist "$(OutDir)" mkdir "$(OutDir)"
xcopy /Y /Q "$(SolutionDir)cocos2dx\platform\third_party\win32\libraries*.*" "$(OutDir)"

This could be replaced with:
if not exist "$(OutDir)" mkdir "$(OutDir)"
xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries*.*" "$(OutDir)"

The lua project uses $(SolutionDir) in it's include paths, where it can be replaced with "../../" relative paths.

This changes shouldn't affect existing projects, but should allow to add them into own visual studio solutions somewhere else on your hard disk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions