When targeting the portable version, don't generate the get sample metho...

...ds if a file is used, as it won't work at runtime (closes #407) + check if the designtime and runtime assembly versions match