Change-Id: I95fcf11174496d5c61170be53d35fa8bb1e31775
#!/bin/sh
echo "############### tv-dotnet-generate-ni.post ################"
# Generate NI for dlls and exes under platform directories
-nitool --system
+export IBCDATA_DIR=/usr/share/dotnet.tizen/ibcdata
+# remove previous native image
+dotnettool --ni-reset-system
+
+# generate native image
+dotnettool --ibc-dir $IBCDATA_DIR --ni-system
+
+# remove ibc data files
+if [ -d $IBCDATA_DIR ]
+then
+ rm -rf $IBCDATA_DIR
+fi