Is the DART_SDK environment variable officially deleted?

I remember what DART_SDKwas needed. but now I can not find any document about DART_SDK.

When do we need to install DART_SDK? I think that there is no need for ordinary cases.

+4
source share
3 answers

Some scripts need a way to search for the SDK, and this environment variable was usually used for this. But, as far as I saw, most of the codes left this way of searching the SDK directory (see, for example, http://dartbug.com/17349 , http://dartbug.com/16994 , http://dartbug.com/15019 (fixed), http://dartbug.com/10444 )

+2

.

, DartVS , SDK Analzyer ( , , !).

SDK, ​​( ); - , / SDK (, dev- ).

( SDK , , /. Chocolatey package , :))

+2

Yes. You're right. This variable becomes unofficial (undocumented).

Of course, it is possible to determine the path to the Dart SDK from the Dart script.

But for new programmers who want to find the path to the Dart SDK from scripts without Dart (for example, from files .bat), this can be problematic, as there is currently no official way to specify the path to the installed Dart SDK.

+1
source

All Articles