[ 
https://issues.apache.org/jira/browse/NPANDAY-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022042#comment-13022042
 ] 

Lars Corneliussen commented on NPANDAY-412:
-------------------------------------------

On my machine this specific portion looks like this:

{code}
    <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>
          <sdkInstallRoot>C:\Program Files\Microsoft.NET\SDK\v2.0 
64bit\</sdkInstallRoot>
          <executablePaths>
            <executablePath>C:\Program Files\Microsoft.NET\SDK\v2.0 
64bit\bin</executablePath>
          </executablePaths>
        </framework>
      </frameworks>
    </vendor>
{code}

But how is that related to Windows 7 SDK? Windows 7 SDK only installs .NET SDK 
3.5 + 4.0 (in my case 7.0a)

{code}
    <vendor>
      <vendorName>MICROSOFT</vendorName>
      <vendorVersion>3.5</vendorVersion>
      <frameworks>
        <framework>
          <frameworkVersion>3.5</frameworkVersion>
          <installRoot>C:\Windows\Microsoft.NET\Framework64\v3.5</installRoot>
          <sdkInstallRoot>C:\Program Files (x86)\Microsoft 
SDKs\Windows\v7.0A\Bin\</sdkInstallRoot>
        </framework>
      </frameworks>
    </vendor>
    <vendor>
      <vendorName>MICROSOFT</vendorName>
      <vendorVersion>4.0</vendorVersion>
      <frameworks>
        <framework>
          <frameworkVersion>4.0</frameworkVersion>
          
<installRoot>C:\Windows\Microsoft.NET\Framework64\v4.0.30319</installRoot>
          <sdkInstallRoot>C:\Program Files (x86)\Microsoft 
SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\</sdkInstallRoot>
        </framework>
      </frameworks>
    </vendor>
{code}

These are the paths we look up for .NET 2.0 in the registry. Can you check out 
where your key is located in the registry?

{code:title=DotnetSdkLocator.cs}
SOFTWARE\Microsoft\.NETFramework\sdkInstallRootv2.0
SOFTWARE\Microsoft\SDKs\.NETFramework\v2.0\InstallationFolder")
{code}

Codefile: 
https://svn.apache.org/repos/asf/incubator/npanday/trunk/plugins/netplugins/NPanday.Plugin.Settings/src/main/csharp/NPanday/Plugin/Settings/DotnetSdkLocator.cs

> Execuable path for Windows 7 SDK is not auto-detected when 
> npanday-settings.xml is generated, resgen.exe not found
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-412
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-412
>             Project: NPanday
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: 1.3.1-incubating
>         Environment: C:\Users\jfallows>mvn -v
> Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
> Java version: 1.6.0_24
> Java home: C:\Progra~1\Java\jdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: John R. Fallows
>
> 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:
> {code}
> <?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>
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to