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

Execuable path for Windows 7 SDK is not auto-detected when npanday-settings.xml is generated, resgen.exe not found

    XMLWordPrintableJSON

Details

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

    Description

      The executable paths in npanday-settings.xml make it unnecessary to manually modify the command shell path for executables such as mcs.exe, xsd.exe, etc.

      However, resgen.exe is also needed during the NPanday project lifecycle, but is distributed with Windows SDK rather than .Net SDK. To address this, the executable path can be updated for each vendor entry to include a reference to the Window SDK location such that resgen.exe can be found via executablePath at runtime.

      When npanday-settings.xml is generated, these executablePath entries are not present, causing issues when resgen.exe cannot be located, while all the other executables can be located successfully.

      See below for an example:

      <?xml version="1.0" encoding="utf-8"?>
      <npandaySettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <operatingSystem>Microsoft Windows NT 6.1.7600.0</operatingSystem>
        <defaultSetup>
          <vendorName>MICROSOFT</vendorName>
          <vendorVersion>2.0.50727</vendorVersion>
          <frameworkVersion>2.0.50727</frameworkVersion>
        </defaultSetup>
        <vendors>
          <vendor>
            <vendorName>MICROSOFT</vendorName>
            <vendorVersion>2.0.50727</vendorVersion>
            <frameworks>
              <framework>
                <frameworkVersion>2.0.50727</frameworkVersion>
                <installRoot>C:\Windows\Microsoft.NET\Framework64\v2.0.50727</installRoot>
                <executablePaths>
                  <executablePath>C:\Program Files\\Microsoft SDKs\Windows\v6.0A\bin</executablePath>
                </executablePaths>
              </framework>
            </frameworks>
          </vendor>
      ...
        </vendors>
      </npandaySettings>
      

      Attachments

        1. NPANDAY-412.patch
          2 kB
          Lars Corneliussen
        2. NPANDAY-412a.patch
          2 kB
          John Robert Fallows

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: