you can use the following command
This works with visual studio command prompt
aspnet_compiler -p "source path" -v \ "destination path "
You can give your application path as source path and the destination folder path where the compiled version of the application to be moved as destination path.
Then you can use the destination folder and place it whereever you need it and map the folder in the virtual directory.