<p>I'm toying with my first remoting project and I need to create a RemotableType DLL. I know I can compile it by hand with csc, but I wonder if there are some facilities in place on Visual Studio to handle the Remoting case, or, more specificly, to tell it that a specific file should be compiled as a .dll without having to add another project to a solution exclusively to compile a class or two into DLLs. </p>

<p>NOTE: I know I should toy with my first WCF project, but this has to run on 2.0.</p>

[{'answer_id': 78324, 'author': 'Adam Wright', 'author_id': 1200, 'author_profile': 'https://Stackoverflow.com/users/1200', 'pm_score': 5, 'selected': True, 'text': '<p>Note the caveat in the manual at <a href="http://uk.php.net/error_reporting" rel="noreferrer">http://uk.php.net/error_reporting</a>:</p>\n\n<blockquote>\n  <blockquote>\n    <p>Most of E_STRICT errors are evaluated at the compile time thus such errors are not reported in the file where error_reporting is enhanced to include E_STRICT errors (and vice versa).</p>\n  </blockquote>\n</blockquote>\n\n<p>If your underlying system is configured to report E_STRICT errors, these may be output before your code is even considered. Don\'t forget, error_reporting/ini_set are runtime evaluations, and anything performed in a "before-run" phase will not see their effects.</p>\n\n<hr>\n\n<p>Based on your comment that your error is...</p>\n\n<blockquote>\n  <p>Parse error: syntax error, unexpected T_VARIABLE, expecting \',\' or \';\' in /usr/home/REDACTED/public_html/dev.php on line 11</p>\n</blockquote>\n\n<p>Then the same general concept applies. Your code is never run, as it is syntactically invalid (you forgot a \';\'). Therefore, your change of error reporting is never encountered.</p>\n\n<p>Fixing this requires a change of the system level error reporting. For example, on Apache you may be able to place...</p>\n\n<p>php_value error_reporting 0</p>\n\n<p>in a .htaccess file to suppress them all, but this is system configuration dependent.</p>\n\n<p>Pragmatically, don\'t write files with syntax errors :)</p>\n'}, {'answer_id': 78370, 'author': 'Vinko Vrsalovic', 'author_id': 5190, 'author_profile': 'https://Stackoverflow.com/users/5190', 'pm_score': 0, 'selected': False, 'text': '<p>Use <em>log_errors</em> for them to be logged instead of displayed.</p>\n'}, {'answer_id': 92354, 'author': 'Willem', 'author_id': 15447, 'author_profile': 'https://Stackoverflow.com/users/15447', 'pm_score': 2, 'selected': False, 'text': '<p>To prevent errors from displaying you can</p>\n\n<ul>\n<li>Write in a .htaccess: <em>php_flag display_errors 0</em></li>\n<li>Split your code in separate modules where the\nmain (parent) PHP file only sets the\nerror_logging and then include() the\nother files.</li>\n</ul>\n'}, {'answer_id': 97149, 'author': 'troelskn', 'author_id': 18180, 'author_profile': 'https://Stackoverflow.com/users/18180', 'pm_score': 0, 'selected': False, 'text': '<p>If the setting is specified in Apache using <em>php_admin_value</em>, it can\'t be changed in .htaccess or at runtime.</p>\n\n<p>See: <em><a href="http://docs.php.net/configuration.changes" rel="nofollow noreferrer">How to change configuration settings</a></em></p>\n'}, {'answer_id': 4579143, 'author': 'khalid', 'author_id': 560416, 'author_profile': 'https://Stackoverflow.com/users/560416', 'pm_score': 1, 'selected': False, 'text': '<p>Use <a href="http://php.net/manual/en/function.phpinfo.php" rel="nofollow noreferrer">phpinfo</a> to find the loaded php.ini and edit it to hide errors. It overrides what you put in your script.</p>\n'}, {'answer_id': 17019832, 'author': 'komodosp', 'author_id': 1495940, 'author_profile': 'https://Stackoverflow.com/users/1495940', 'pm_score': 1, 'selected': False, 'text': '<p>Is <code>set_error_handler()</code> used anywhere in your script? This overrides <code>error_reporting(0)</code>.</p>\n'}, {'answer_id': 34137690, 'author': 'ob-ivan', 'author_id': 2184166, 'author_profile': 'https://Stackoverflow.com/users/2184166', 'pm_score': 0, 'selected': False, 'text': "<blockquote>\n  <p>Pragmatically, don't write files with syntax errors :)</p>\n</blockquote>\n\n<p>To ensure there's no syntax errors in your file, run the following:</p>\n\n<pre><code>php -l YOUR_FILE_HERE.php\n</code></pre>\n\n<p>This will output something like this:</p>\n\n<pre><code>PHP Parse error:  syntax error, unexpected '}' in Connection.class.php on line 31\n</code></pre>\n"}, {'answer_id': 47844586, 'author': 'dheerendra', 'author_id': 7879171, 'author_profile': 'https://Stackoverflow.com/users/7879171', 'pm_score': 0, 'selected': False, 'text': "<p>Just add the below code in your <strong>index.php</strong> file:</p>\n\n<pre><code>ini_set('display_errors', False);\n</code></pre>\n"}]
['https://Stackoverflow.com/questions/78303', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5190/']