Click here to Skip to main content
16,015,077 members
Home / Discussions / C#
   

C#

 
QuestionHow to arrange print? Pin
D i x y3-Mar-08 17:11
D i x y3-Mar-08 17:11 
AnswerRe: How to arrange print? Pin
Christian Graus3-Mar-08 17:21
protectorChristian Graus3-Mar-08 17:21 
AnswerRe: How to arrange print? Pin
yogesh_kumar_agarwal3-Mar-08 17:22
yogesh_kumar_agarwal3-Mar-08 17:22 
Generalneed help with c# textbox Pin
VyTrx3-Mar-08 16:46
VyTrx3-Mar-08 16:46 
GeneralRe: need help with c# textbox Pin
yogesh_kumar_agarwal3-Mar-08 17:04
yogesh_kumar_agarwal3-Mar-08 17:04 
GeneralRe: need help with c# textbox Pin
VyTrx3-Mar-08 17:23
VyTrx3-Mar-08 17:23 
GeneralRe: need help with c# textbox Pin
Ennis Ray Lynch, Jr.3-Mar-08 17:23
Ennis Ray Lynch, Jr.3-Mar-08 17:23 
GeneralSpecifying the .NET version for dynamic code generation Pin
Ravi Bhavnani3-Mar-08 13:27
professionalRavi Bhavnani3-Mar-08 13:27 
I have a .NET 3.5 app (built using VS2008 RTM, no CTPs installed) that uses CSharpCodeProvider to compile some generated code that requires .NET 3.5. When I set the compiler's .NET version to 3.5 (per the MSDN example), I get a "csc.exe not found" exception thrown when I try to compile. Here's what I'm doing:

// Set up compiler parameters
CompilerParameters cp = new CompilerParameters();
cp.xxx = xxx;

// Specify .NET version
Dictionary<string,string> providerOptions = new Dictionary<string,string>();
providerOptions.Add ("CompilerVersion", "3.5");
CSharpCodeProvider codeProvider = new CSharpCodeProvider (providerOptions);

// Do the compile
string sourceCode = "...";
CompilerResults cr = codeProvider.CompileAssemblyFromSource (cp, sourceCode);
If I use CSharpCodeProvider's default constructor, the code compiles if it's .NET 2.0 compliant, but (expectedly) generates an "unknown reference" error if I try to reference a .NET 3.5 stock assembly.

A nudge in the right direction would be appreciated.

Thanks!

/ravi

My new year resolution: 2048 x 1536
Home | Music | Articles | Freeware
ravib(at)ravib(dot)com

Generalnews display in desktop application through rss feeds Pin
rao raja3-Mar-08 11:22
rao raja3-Mar-08 11:22 
GeneralRe: news display in desktop application through rss feeds Pin
Ravi Bhavnani3-Mar-08 13:29
professionalRavi Bhavnani3-Mar-08 13:29 
GeneralRe: news display in desktop application through rss feeds Pin
Ennis Ray Lynch, Jr.3-Mar-08 15:35
Ennis Ray Lynch, Jr.3-Mar-08 15:35 
GeneralRe: news display in desktop application through rss feeds Pin
Ravi Bhavnani4-Mar-08 2:37
professionalRavi Bhavnani4-Mar-08 2:37 
GeneralRe: news display in desktop application through rss feeds Pin
rao raja3-Mar-08 23:56
rao raja3-Mar-08 23:56 
GeneralDrawing grid... problem with scrolling. Pin
omnimny3-Mar-08 10:55
omnimny3-Mar-08 10:55 
GeneralRe: Drawing grid... problem with scrolling. Pin
Christian Graus3-Mar-08 15:31
protectorChristian Graus3-Mar-08 15:31 
GeneralRe: Drawing grid... problem with scrolling. Pin
omnimny3-Mar-08 19:55
omnimny3-Mar-08 19:55 
QuestionSpecifiy Crystal Report database dynamically at runtime Pin
jharker19873-Mar-08 10:12
jharker19873-Mar-08 10:12 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
Ennis Ray Lynch, Jr.3-Mar-08 11:00
Ennis Ray Lynch, Jr.3-Mar-08 11:00 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
jharker19873-Mar-08 11:05
jharker19873-Mar-08 11:05 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
Ennis Ray Lynch, Jr.3-Mar-08 11:10
Ennis Ray Lynch, Jr.3-Mar-08 11:10 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
jharker19873-Mar-08 13:18
jharker19873-Mar-08 13:18 
GeneralRe: Specifiy Crystal Report database dynamically at runtime Pin
Ennis Ray Lynch, Jr.3-Mar-08 15:32
Ennis Ray Lynch, Jr.3-Mar-08 15:32 
GeneralReference a config file in another project, same solution. Pin
DeepToot3-Mar-08 8:51
DeepToot3-Mar-08 8:51 
GeneralI need help with C# Pin
Alex5013-Mar-08 8:43
Alex5013-Mar-08 8:43 
GeneralRe: I need help with C# Pin
Lord Kixdemp3-Mar-08 8:47
Lord Kixdemp3-Mar-08 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.