Last post Feb 16, 2012 08:42 AM by shree_ars
Feb 15, 2012 09:53 AM|shree_ars|LINK
I need to know in which language the .net project is created.
Is this details available any where in assemblyinfo.
How to find the language of the project.
Feb 15, 2012 10:01 AM|venkatmca008|LINK
hi Please refer this...
Feb 15, 2012 10:04 AM|dinesh kumar nayak|LINK
Are you talking about the .net famework or any project that you have created.
If you are asking about .net framework then the CLR is in c and c++ and most of the libraries are in c#.
Feb 15, 2012 10:29 AM|shree_ars|LINK
Yes. in .Net framework.. how we can identify the project language.
Feb 15, 2012 12:02 PM|aspnet2sams|LINK
If followed your post correctly, check the file extensions in project folder for .vb for Visual Basic language and .cs for CSharp.
hope it helps you.
Feb 16, 2012 03:52 AM|shree_ars|LINK
which file that i need to check....
If ur project is WPF then how could u decide the project language, bex its extension is .XAML right...?
Feb 16, 2012 04:00 AM|aspnet2sams|LINK
deciding upon project language is when you choose the project template in opening the file. correct me if wrong.
When the new Item dialog box opens, Left pane are separated by language type. for example, VB or C#.
hope it helps you.
Feb 16, 2012 04:05 AM|shree_ars|LINK
Dude.. thats ok.
But my question is without visual studio IDE, is it possible to find the language of the project which its use.
Its that language value available in any of the XML or assembly file .
Do u got it.. i am refering to the project folder in windows explorer...just forget about VS IDE.
Feb 16, 2012 04:17 AM|aspnet2sams|LINK
okay, In windows explorer the Icon specifies the type of language. I mean Icon is embossed with VB or C#. I have check in all the view types.
Thumbnails, Tiles, Icons, list and details.
verify and let us know.
Feb 16, 2012 04:20 AM|shree_ars|LINK
Ya..Its too one of the way.
But i am need to find that through my code.. SO if its stored in any of the config file then its gud to pick it...
any thing like that...
Feb 16, 2012 04:42 AM|aspnet2sams|LINK
You can dedicate a app setting in web.config file and read from the file. you are only concerned about programming point of view right? so, your awareness of language could create a string and read the string...something like:
if(lang == WebConfigurationManager["projlang"])
check the syntax in post before you code.
Looking from the programmer's point of view, I assume it's possible to do like stated.
Experts, please advice.
Feb 16, 2012 08:25 AM|kirupa.v|LINK
Feb 16, 2012 08:42 AM|shree_ars|LINK
I tried all your links...
As per the windows applications we can find out the project language from below tag, which is get configured in project file(.csproj or .vbproj)
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
But now how to find the same for website project... any idea...frds