2

I'm installing a software extension for VS2017 which requires me to create a batch file in order to set the 'TargetVisualStudioEdition' environment variable, in my case the variable should be set to Community. What I did so far is to crate the following simple batch file:

set "%TargetVisualStudioEdition%"="Community"

Once I run it I receive:

set ""="Community"

Then, when I run the installer the installation stops because the environment variable has not been set. Am I missing something?

1
  • 1
    set TargetVisualStudioEdition=Community Commented May 5, 2019 at 13:33

1 Answer 1

1

don't think you need the %s wrapping the variable; just do set VARIABLE = value the %% is just to reference the variables. if this variable will be shared among processes, use setx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.