Uploaded image for project: 'NPanday'
  1. NPanday
  2. NPANDAY-401

Mono compiler does not support explicit frameworkVersion 3.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-incubating
    • 1.4-incubating
    • Maven Plugins
    • None

    Description

      In 1.3.1-incubating SNAPSHOT on trunk, the logic to locate executables based on frameworkVersion is more strict, and more correct.

      As a result, with a default frameworkVersion of 2.0.50707 in C:\Users\<username\.m2\npanday-settings.xml, any project with code requiring the .Net 3.5 compiler now fails to compile because the 2.0 csc.exe is correctly selected, even though the 3.5 csc.exe may be first on the PATH.

      Therefore, the frameworkVersion configuration is now required to be specified on the compile plugin, with the value 3.5 in this example. This allows the code to compile correctly as desired on .Net.

      On Mono, an explicit frameworkVersion of 3.5 fails to match any compiler entry in compiler-plugins.xml. Specifying the additional frameworkVersions for the MONO-CS-2 compiler would allow the Mono compiler to be selected and compile the code correctly.

      Without this fix, the build fails on Mono with an unsupported platform error.

      Attachments

        1. mono-compiler-frameworks.diff
          0.7 kB
          John Robert Fallows

        Activity

          People

            lcorneliussen Lars Corneliussen
            jfallows John Robert Fallows
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: