Great88
Great88

Reputation: 428

how do i set environment variables in invokeprocess in TFS 2010

I am trying to set new environment variables in InvokeProcess in tfs2010, I tried creating a variable ENV_VAR of type IDictionary() and then in InvokeProcess then I tried adding new variable as ENV_VAR.Add("New","Variable") but it shows me an error. Thanks /G

Upvotes: 4

Views: 1912

Answers (1)

Great88
Great88

Reputation: 428

For someone with similar issue , I managed to resolve it , Way to define EnvironmentVariable in InvokeProcess activity
New Dictionary(Of String, String) From {{"Key1", "Value1"}, {"key2", "value2"}}

Upvotes: 8

Related Questions