昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期一, 五月 09, 2016

Visual Studio post script error stops program running

I have a post script to copy some files after build.

The script itself is simple, it created a folder and copy a few files into that folder. 

If the folder already exist, the script will not create the folder, it will throw an error and continue coping the files. 

The problem here is that visual studio will not start debugging if there is an error in the post build script. 

I don't care too much about the script error. A simple way to cheat this is manually set the errorlevel value to 0 after running the md command.


md $(TargetDir)\queries & set errorlevel=0
copy /y $(ProjectDir)\queries\* $(TargetDir)\queries



--
Feng

星期一, 五月 02, 2016

Install Android SDK from command line

list all the available target:
android list target

list all the available sdk:
android list sdk

install sdk:

android update -u -t id,id,id...
(make sure the id in the correct order of dependency)



--
Feng

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.