Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Rules File

C# Rules File

Scheduled Pinned Locked Moved C#
csharpc++visual-studioquestion
13 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ant damage
    wrote on last edited by
    #1

    Can somebody give me the C# Compiler rules file? I'm using Visual C++ 2008 Express Edition, and I have the C# Compiler v3.5 for .NET 3.5. I want to be able to compile C# source files in my IDE. Replies and Questions are welcome

    H L L B A 5 Replies Last reply
    0
    • A ant damage

      Can somebody give me the C# Compiler rules file? I'm using Visual C++ 2008 Express Edition, and I have the C# Compiler v3.5 for .NET 3.5. I want to be able to compile C# source files in my IDE. Replies and Questions are welcome

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      AFAIK M$ deliberately 'cripple' the express editions to prevent you from doing this. Some one might know different, but I think that is correct. You could always download Visual C# Express, compile your code to a Library with it and add a reference to your C++ solution. At a pinch, you could compile it from the command line using csc.exe (the C# compiler, a quick google will give you the appropriate parameters).

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • A ant damage

        Can somebody give me the C# Compiler rules file? I'm using Visual C++ 2008 Express Edition, and I have the C# Compiler v3.5 for .NET 3.5. I want to be able to compile C# source files in my IDE. Replies and Questions are welcome

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Not sure I understand what you want. the C# compiler is part of .NET, not Visual Studio. it could be found as C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe (the exact path depends on your .NET version). and the csc help appears when giving "csc /?" at the "DOS prompt" :)

        Luc Pattyn

        :badger: :jig: :badger:

        Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

        :jig: :badger: :jig:

        A 1 Reply Last reply
        0
        • A ant damage

          Can somebody give me the C# Compiler rules file? I'm using Visual C++ 2008 Express Edition, and I have the C# Compiler v3.5 for .NET 3.5. I want to be able to compile C# source files in my IDE. Replies and Questions are welcome

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Hmm... how about downloading Visual C# Express Edition ? You can install both C# and C++ Express Edition.

          1 Reply Last reply
          0
          • L Luc Pattyn

            Not sure I understand what you want. the C# compiler is part of .NET, not Visual Studio. it could be found as C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe (the exact path depends on your .NET version). and the csc help appears when giving "csc /?" at the "DOS prompt" :)

            Luc Pattyn

            :badger: :jig: :badger:

            Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

            :jig: :badger: :jig:

            A Offline
            A Offline
            ant damage
            wrote on last edited by
            #5

            I know that! I copied the C# Compiler to the bin folder at Visual C++ root. What I'm talking about is about a file of extension ".rules" that contains the rules for compiling the sources files like the rules file for compiling ".asm" files

            L 1 Reply Last reply
            0
            • A ant damage

              I know that! I copied the C# Compiler to the bin folder at Visual C++ root. What I'm talking about is about a file of extension ".rules" that contains the rules for compiling the sources files like the rules file for compiling ".asm" files

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              I don't have a rules file on my disk, and yet I compile C# code every day. And I wouldn't know what would be "rules" for a compiler. Also I don't see "rules" mentioned anywhere in the CSC help. Can you give some examples? :)

              Luc Pattyn

              :badger: :jig: :badger:

              Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

              :jig: :badger: :jig:

              A 1 Reply Last reply
              0
              • L Luc Pattyn

                I don't have a rules file on my disk, and yet I compile C# code every day. And I wouldn't know what would be "rules" for a compiler. Also I don't see "rules" mentioned anywhere in the CSC help. Can you give some examples? :)

                Luc Pattyn

                :badger: :jig: :badger:

                Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

                :jig: :badger: :jig:

                A Offline
                A Offline
                ant damage
                wrote on last edited by
                #7

                for example the Visual C++ has a file which contains the command line parameters for the Microsoft Macro Assembler. see the link below for a full description of rule files: http://msdn.microsoft.com/en-us/library/xfsbz6cw(VS.100).aspx[^]

                L 1 Reply Last reply
                0
                • A ant damage

                  for example the Visual C++ has a file which contains the command line parameters for the Microsoft Macro Assembler. see the link below for a full description of rule files: http://msdn.microsoft.com/en-us/library/xfsbz6cw(VS.100).aspx[^]

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  OK, that is new to me. I created my own IDE for C and C#, for C# it calls csc.exe directly, and for C it uses third-party compilers, not MS ones. That's how I never encountered rules. Looking here[^] I see rules stuff in the Visual Studio C++ branch, not in the C# branch. And I don't see much use for such rules thing in a C# environment, where code is always managed code and gets translated into IL instructions, without calling on other tools. :)

                  Luc Pattyn

                  :badger: :jig: :badger:

                  Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

                  :jig: :badger: :jig:

                  A 2 Replies Last reply
                  0
                  • L Luc Pattyn

                    OK, that is new to me. I created my own IDE for C and C#, for C# it calls csc.exe directly, and for C it uses third-party compilers, not MS ones. That's how I never encountered rules. Looking here[^] I see rules stuff in the Visual Studio C++ branch, not in the C# branch. And I don't see much use for such rules thing in a C# environment, where code is always managed code and gets translated into IL instructions, without calling on other tools. :)

                    Luc Pattyn

                    :badger: :jig: :badger:

                    Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

                    :jig: :badger: :jig:

                    A Offline
                    A Offline
                    ant damage
                    wrote on last edited by
                    #9

                    I think it's better to do a custom build step to all C# source files

                    1 Reply Last reply
                    0
                    • L Luc Pattyn

                      OK, that is new to me. I created my own IDE for C and C#, for C# it calls csc.exe directly, and for C it uses third-party compilers, not MS ones. That's how I never encountered rules. Looking here[^] I see rules stuff in the Visual Studio C++ branch, not in the C# branch. And I don't see much use for such rules thing in a C# environment, where code is always managed code and gets translated into IL instructions, without calling on other tools. :)

                      Luc Pattyn

                      :badger: :jig: :badger:

                      Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

                      :jig: :badger: :jig:

                      A Offline
                      A Offline
                      ant damage
                      wrote on last edited by
                      #10

                      I have no more problems. I've just downloaded a C# Editor similar to Visual C#, with form editor too, since the Visual C# is installed throw the internet instead of being installed from the full package. I've downloaded it here[^]

                      1 Reply Last reply
                      0
                      • A ant damage

                        Can somebody give me the C# Compiler rules file? I'm using Visual C++ 2008 Express Edition, and I have the C# Compiler v3.5 for .NET 3.5. I want to be able to compile C# source files in my IDE. Replies and Questions are welcome

                        B Offline
                        B Offline
                        benjymous
                        wrote on last edited by
                        #11

                        That should be included with Visual C# 2008 Express - install that, and find the files you want. I presume you want to hack it so that you can use C++ and C# projects together in a single solution, rather than having to have the two IDEs open separately?

                        Help me! I'm turning into a grapefruit! Buzzwords!

                        A 1 Reply Last reply
                        0
                        • B benjymous

                          That should be included with Visual C# 2008 Express - install that, and find the files you want. I presume you want to hack it so that you can use C++ and C# projects together in a single solution, rather than having to have the two IDEs open separately?

                          Help me! I'm turning into a grapefruit! Buzzwords!

                          A Offline
                          A Offline
                          ant damage
                          wrote on last edited by
                          #12

                          I'm fine for now. I've just downloaded a nice substitute of Visual C# - SharpDevelop, and I can use it to make Visual C# projects and solutions

                          1 Reply Last reply
                          0
                          • A ant damage

                            Can somebody give me the C# Compiler rules file? I'm using Visual C++ 2008 Express Edition, and I have the C# Compiler v3.5 for .NET 3.5. I want to be able to compile C# source files in my IDE. Replies and Questions are welcome

                            A Offline
                            A Offline
                            ant damage
                            wrote on last edited by
                            #13

                            I don't need anymore the C# Rules File because I have now the Visual C# 2008 Express Edition. Thanks for your help.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups