Jump to content

Set an Environment variable in Visual Studio 2010


ParaToxic
 Share

Recommended Posts

Hey guys I have a big problem here.I want to build Android apk files with the vs-android framework and the Android SDK/NDK.

So now in the sample project I have to set the variable $(AndroidNdkDir) to a value , but it's now set to <unset> .

 

Well I can see it when I opne the project properties and go to Debugging -> Remote Command Arguments -> (Dropdown ) Change -> Makros>> and there is a table with that stuff but I can't change it...

 

Well I'm searching for 1,5 hours now and can't find hot to do that. On some sites there are some commands like setx AndroidNdkDir "C:...." .... but where ?

 

Thanks

Link to comment
Share on other sites

I'm assuming you are trying to set an environment path variable... in Visual studio check the menu for tools / vs command line, then type: set AndroidNdkDir="c:\your path here" ... you can check if a variable is set by just typing: set name_of_variable, and if it exists it will print out it's value.. if you try this in a regular windows cmd the set command only works for that cmd session, global environment variables can be edited from control panel / system / advanced / environment variables

Link to comment
Share on other sites

You can put environment variables in c:\autoexec.bat, like this:

SET ANDROIDNDKDIR=C:\PRG\NDK

Or the new style is to put them in the My Computer/Properties/Advanced System Settings/Environment Variables.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

That is so wrong, it's just a horrible idea, why would anyone in their right mind do it?

 

I was a .net 'build master' for a company. This link made me see the words msbuild again. There needs to be blood. I double dog dare anyone to integrate an open source testing tool(which are the only good ones) as part of a tfs build with reports working /fml

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...