473,323 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

How to configure CSharpCodeProvider that can be used Linq- improve language?

How to configure CSharpCodeProvider that can be used Linq- improve language?

http://www.alvas.net - Audio tools for C# and VB.Net developers

Nov 23 '07 #1
2 2143
On Nov 23, 7:58 am, "Alexander Vasilevsky" <al...@alvas.netwrote:
How to configure CSharpCodeProvider that can be used Linq- improve language?
If you mean "how do you make CSharpCodeProvider cope with C# 3" then
it's something like this:

CSharpCodeProvider csc = new CSharpCodeProvider
(new Dictionary<string, string>() { { "CompilerVersion",
"v3.5" } });

(I don't have my working code to hand, but it's certainly *something*
like that, setting the CompilerVersion to "v3.5".)

Jon
Nov 23 '07 #2
Yes. Thank You!

http://www.alvas.net - Audio tools for C# and VB.Net developers
"Jon Skeet [C# MVP]" <sk***@pobox.com???????/???????? ? ????????
?????????:
news:62**********************************@g30g2000 hsb.googlegroups.com...
On Nov 23, 7:58 am, "Alexander Vasilevsky" <al...@alvas.netwrote:
>How to configure CSharpCodeProvider that can be used Linq- improve
language?

If you mean "how do you make CSharpCodeProvider cope with C# 3" then
it's something like this:

CSharpCodeProvider csc = new CSharpCodeProvider
(new Dictionary<string, string>() { { "CompilerVersion",
"v3.5" } });

(I don't have my working code to hand, but it's certainly *something*
like that, setting the CompilerVersion to "v3.5".)

Jon

Nov 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sherif ElMetainy | last post by:
Hello I am making an application that generates source code. I am facing some problems. 1- How can I generate code that uses the c# 'params' keyword to specify multiple arguments? I tried 2...
0
by: Nathan Baulch | last post by:
Is there any way to instruct the IGenerator returned from CSharpCodeProvider.CreateGenerator() to generate members in same order that I add them to CodeTypeDeclaration.Members? I am using...
4
by: Jon Rista | last post by:
I have a project where I need to create a windows .exe by compiling code and linking in some resources. This program thats being generated is somewhat unconventional, and I'll explain how. I'm...
11
by: Jan | last post by:
I'm using the CSharpCodeProvider to buils some assemblies @ runtime which are never saved as files (cp.GenerateInMemory = true;). The generated assemblies are hierachically dependent on each other...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
6
by: Mr Flibble | last post by:
Hi all, I've decided to use log4net for my logging/tracing. In the example on the site it shows using main() to setup the root logger and then using the LogManager within your classes to...
0
by: Nik Loutchanski | last post by:
Hi, I'm using dynamic code generation in an ASP.NET 2.0 web service to create proxy classes for other web services with the intention to cache the dynamically compiled proxy types (methodInfo...
7
by: Bilz | last post by:
I am planning to use the CSharpCodeProvider to generate some compiled functions in my app. In my current implementation, All of these functions are generated in one swipe... thus they all invoke...
0
by: =?Utf-8?B?SHlwZXJjb2Rlcg==?= | last post by:
I'm encountering some strange behavior after deploying a ASP.net 3.5 website to production, i'm unable to reproduce these in my dev environment. This error seems to occur very randomly but it's...
2
by: Andy B | last post by:
How would you find out if a linq table has 0 rows in it? I have this code: NewsContext.V_News() '*** linq table to be tested for 0 rows Any ideas?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.