Microsoft KB Archive/309545

= BUG: You Cannot Use Smcil.exe to Compile Managed Code as Expected =

Article ID: 309545

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft .NET Framework Software Development Kit 1.0 Service Pack 2
 * Microsoft .NET Framework Software Development Kit 1.0 Service Pack 2
 * Microsoft .NET Framework Class Libraries 1.0
 * Microsoft .NET Framework Class Libraries 1.1

-



This article was previously published under Q309545



SYMPTOMS
The documentation for the Simple Managed Compiler (SMC) sample, located in the following directory

\Microsoft.NET\FrameworkSDK\Tool Developers Guide\Samples\StartSamples.htm

states that you can self-compile the SMC compiler into a managed compiler (Smcil.exe). Although the compilation succeeds, you cannot use the generated compiler, Smcil.exe, to compile managed code. For example, if you attempt to self-compile Smcil.exe to Smcil2.exe, the operation does not succeed.



RESOLUTION
The primary aim of the SMC sample is to demonstrate how to implement a compiler that targets the .NET Framework -- and the sample fulfills that aim. The workaround for the self-compile issue described in the &quot;Symptoms&quot; section of this article is left as an exercise for the reader of this sample (using the resources provided in the SDK).



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: kbNDPbeta2 kbreadme

Keywords: kbbug kbreadme KB309545

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.