8000 Solution Root in launchsettings.json · Issue #55 · colin-higgins/colin-higgins.github.io · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Solution Root in launchsettings.json #55
Open
@colin-higgins

Description

@colin-higgins

"Is anyone aware of a variable available to get project or solution root from launchSettings.json?
I'm currently working on the out of the box experience of my solution, and what we have now is a batch file that sets an environment variable for solution root, then the launchSettings.json file references that variable.
I am hoping to get rid of the batch file.
If I could put it into the pre-build step, I would, but on first open of the solution, it sets the environment variable, and Visual Studio needs to be restarted to access it anyways."

One option is to use the environment variables yes... %MY_ENV_ROOT%
Looks like all the regular macros are available: $(SolutionDir) does the trick.

"$(SolutionDir)src\\Project.Name\\bin\\$(Configuration)\\$(Platform)\\Project.Name.dll"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0