make reference assemblies local, detect portable profiles