Re: changing programming environment in VS2008
- From: "Niran" <public.niran@xxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Tue, 26 Aug 2008 09:58:08 +0530
I think there is a typo error in the assemblyInfo.cs
"new line in constant" error means your not closing the quotation on the same
line as where it was opened.
"Unrecognized escape sequence"
Remember "\" is an escape character in c#, so if you want to include the "\"
character in a string, escape it with another "\". For example:
"c:\\nirandas\\file.txt"
or
@"c:\nirandas\file.txt"
Check the assemblyInfo.cs or just copy paste it here.
HTH
Nirandas
Website: http://www.nirandas.com
----- Original Message -----
From: jaffar@xxxxxxxxxxxxx
To: programmingblind@xxxxxxxxxxxxx
Sent: Tuesday, August 26, 2008 8:54 AM
Subject: Re: changing programming environment in VS2008
Hi. Here is the complete error list. I cannot understand it as my code is
definetely correct. Cheers!
Code below
Error 1 Newline in constant K:\Documents and Settings\Jaffar\My
Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
11 28 ConsoleApplication1
Error 2 Unrecognized escape sequence K:\Documents and Settings\Jaffar\My
Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
13 46 ConsoleApplication1
Error 3 Syntax error, ']' expected K:\Documents and Settings\Jaffar\My
Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
12 10 ConsoleApplication1
Error 4 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
13 2 ConsoleApplication1
Error 5 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
14 2 ConsoleApplication1
Error 6 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
15 2 ConsoleApplication1
Error 7 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
20 2 ConsoleApplication1
Error 8 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
23 2 ConsoleApplication1
Error 9 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
35 2 ConsoleApplication1
Error 10 Assembly and module attributes must precede all other elements
defined in a file except using clauses and extern alias declarations
K:\Documents and Settings\Jaffar\My Documents\Visual Studio
2008\BegVCSharp\Chapter02\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs
36 2 ConsoleApplication1
----- Original Message -----
From: Niran
To: programmingblind@xxxxxxxxxxxxx
Sent: Tuesday, August 26, 2008 12:53 AM
Subject: Re: changing programming environment in VS2008
To change the dev environment settings, go to
tools>import and export settings
Regarding the test code, what is the exact error you are getting?
Web Developer
http://www.nirandas.com
----- Original Message -----
From: jaffar@xxxxxxxxxxxxx
To: programmingblind@xxxxxxxxxxxxx
Sent: Monday, August 25, 2008 9:54 PM
Subject: changing programming environment in VS2008
Hi All. How do I change my developer settings from one language to
another in visual studio 2008? I want to change my default programming
environment from say, visual c++ to cSharp. I am also finding it a problem to
build and run a very simple test cSharp code. I am sure my code is entirely
right, but the error seems to be from within the assembly.cs file. If anyone
can spot an error in this 4 line test code, I'd like to know
I have left out part of the generated code from the ide.
{
// Output test text to the screen
Console.WriteLine("This is a test!");
Console.ReadKey();
}
As far as i can see, the test code i have written should work just fine.
O, I'm running Vs2008 on WinXp Pro on the .net3.5 platform. Cheers!
__________ Information from ESET Smart Security, version of virus signature
database 3385 (20080825) __________
The message was checked by ESET Smart Security.
http://www.eset.com
- Follow-Ups:
- Re: changing programming environment in VS2008
- From: jaffar
- References:
- changing programming environment in VS2008
- From: jaffar
- Re: changing programming environment in VS2008
- From: Niran
- Re: changing programming environment in VS2008
- From: jaffar
Other related posts:
- » changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- » Re: changing programming environment in VS2008
- Re: changing programming environment in VS2008
- From: jaffar
- changing programming environment in VS2008
- From: jaffar
- Re: changing programming environment in VS2008
- From: Niran
- Re: changing programming environment in VS2008
- From: jaffar