Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-incubating
    • Fix Version/s: 1.4-incubating
    • Component/s: None
    • Labels:
      None

      Description

      Import and compile successfully a VS 2010 WPF project.

        Issue Links

          Activity

          Hide
          Adelita L. Padilla added a comment -

          r1022057 - added checking on importing projects (VS2010) on a 64-bit machine (correct the path of <includeSources> )

          Show
          Adelita L. Padilla added a comment - r1022057 - added checking on importing projects (VS2010) on a 64-bit machine (correct the path of <includeSources> )
          Hide
          Adelita L. Padilla added a comment -

          Hi All,

          With the latest revision for branch for VS2010 support, I added the following code -> http://pastie.org/1223137

          I am still not able to build successfully a simple wpf project. I got this error:

          [DEBUG] commands: [/out:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\WpfApplication1.exe, /target:winexe, /reference:C:\Windows\assembly\GAC_64\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll, /reference:C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.0__31bf3856ad364e35\PresentationFramework.dll, /reference:C:\Windows\assembly\GAC_MSIL\WindowsBase\3.0.0.0__31bf3856ad364e35\WindowsBase.dll, /resource:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\assembly-resources\resource\WpfApplication1.Properties.Resources.resources, /nologo, /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll, /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Data.Entity.Build.Tasks.dll, /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.VisualC.STLCLR.dll, /warnaserror-, /doc:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\comments.xml, /recurse:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\*.cs]
          c:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\App.g.cs(31,22): error CS0234: The type or namespace name 'Shell' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
          c:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\MainWindow.g.cs(31,22): error CS0234: The type or namespace name 'Shell' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
          [DEBUG] NPANDAY-040-000: Executed command: Commandline = CMD.EXE /X /C csc @"C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\responcefile.rsp", Result = 1
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] NPANDAY-900-006: Unable to Compile: Language = C_SHARP, Vendor = null, ArtifactType = winexe, Source Directory = C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1

          Embedded error: NPANDAY-040-001: Could not execute: Command = CMD.EXE /X /C csc @"C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\responcefile.rsp", Result = 1
          [INFO] ------------------------------------------------------------------------

          Removing 'Using System.Windows.Shell' both in App.g.cs and MainWindow.g.cs would give a successfully compilation of the project when doing 'mvn install'

          Anyone have any idea on what I might have been missing?

          Thanks!

          Show
          Adelita L. Padilla added a comment - Hi All, With the latest revision for branch for VS2010 support, I added the following code -> http://pastie.org/1223137 I am still not able to build successfully a simple wpf project. I got this error: [DEBUG] commands: [/out:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\WpfApplication1.exe, /target:winexe, /reference:C:\Windows\assembly\GAC_64\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll, /reference:C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.0__31bf3856ad364e35\PresentationFramework.dll, /reference:C:\Windows\assembly\GAC_MSIL\WindowsBase\3.0.0.0__31bf3856ad364e35\WindowsBase.dll, /resource:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\assembly-resources\resource\WpfApplication1.Properties.Resources.resources, /nologo, /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll, /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Data.Entity.Build.Tasks.dll, /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.VisualC.STLCLR.dll, /warnaserror-, /doc:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\comments.xml, /recurse:C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\*.cs] c:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\App.g.cs(31,22): error CS0234: The type or namespace name 'Shell' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) c:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\MainWindow.g.cs(31,22): error CS0234: The type or namespace name 'Shell' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) [DEBUG] NPANDAY-040 -000: Executed command: Commandline = CMD.EXE /X /C csc @"C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\responcefile.rsp", Result = 1 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] NPANDAY-900-006: Unable to Compile: Language = C_SHARP, Vendor = null, ArtifactType = winexe, Source Directory = C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1 Embedded error: NPANDAY-040 -001: Could not execute: Command = CMD.EXE /X /C csc @"C:\Users\apadilla\Documents\Visual Studio 2010\Projects\WpfApplication1\WpfApplication1\target\1562222\responcefile.rsp", Result = 1 [INFO] ------------------------------------------------------------------------ Removing 'Using System.Windows.Shell' both in App.g.cs and MainWindow.g.cs would give a successfully compilation of the project when doing 'mvn install' Anyone have any idea on what I might have been missing? Thanks!
          Hide
          Artem Fedorenko added a comment - - edited

          Hi,

          I also had the same problem with WPF projects on .NET 4.0. The "root" is that NPanday tries to use some dlls (PresentationFramework.dll, WindowsBase.dll and PresentationCore.dll) from the GAC of 3.0. Actually you can this from your log: "reference:C:\Windows\assembly\GAC_64\PresentationCore\3.0.0.0_31bf3856ad364e35\PresentationCore.dll, /reference:C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.031bf3856ad364e35\PresentationFramework.dll, /reference:C:\Windows\assembly\GAC_MSIL\WindowsBase\3.0.0.0_31bf3856ad364e35\WindowsBase.dll" Apparently System.Windows.Shell is a new namespace introduced in .NET 4.0, so compiler does not find them from referenced dlls in GAC for 3.0

          It took me some time to fix this issue - I uploaded the patch to NPANDAY-288 (as attachement) with related comment on 12/Oct/10. It fixes some other issues also but it works. Would be great if can integrate it to the branch.

          Regards

          Show
          Artem Fedorenko added a comment - - edited Hi, I also had the same problem with WPF projects on .NET 4.0. The "root" is that NPanday tries to use some dlls (PresentationFramework.dll, WindowsBase.dll and PresentationCore.dll) from the GAC of 3.0. Actually you can this from your log: "reference:C:\Windows\assembly\GAC_64\PresentationCore\3.0.0.0_ 31bf3856ad364e35\PresentationCore.dll, /reference:C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.0 31bf3856ad364e35\PresentationFramework.dll, /reference:C:\Windows\assembly\GAC_MSIL\WindowsBase\3.0.0.0 _31bf3856ad364e35\WindowsBase.dll" Apparently System.Windows.Shell is a new namespace introduced in .NET 4.0, so compiler does not find them from referenced dlls in GAC for 3.0 It took me some time to fix this issue - I uploaded the patch to NPANDAY-288 (as attachement) with related comment on 12/Oct/10. It fixes some other issues also but it works. Would be great if can integrate it to the branch. Regards
          Hide
          Adelita L. Padilla added a comment - - edited

          Hi Artem!

          Thanks for you patch.

          I've applied it in branch and it works fine. I am now able to build successfully a WPF project.

          I also added the ff paths in my Path Env Var:

          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;

          Show
          Adelita L. Padilla added a comment - - edited Hi Artem! Thanks for you patch. I've applied it in branch and it works fine. I am now able to build successfully a WPF project. I also added the ff paths in my Path Env Var: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;
          Hide
          Adelita L. Padilla added a comment -

          merged in trunk r1023237

          Show
          Adelita L. Padilla added a comment - merged in trunk r1023237
          Hide
          Artem Fedorenko added a comment -

          >> also added the ff paths in my Path Env Var:
          >>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;

          Right, I forgot to mention it.. It is necessary in order to use gacutil and compiler tools for .NET 4.0.
          Thanks a lot!

          Show
          Artem Fedorenko added a comment - >> also added the ff paths in my Path Env Var: >>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319; Right, I forgot to mention it.. It is necessary in order to use gacutil and compiler tools for .NET 4.0. Thanks a lot!

            People

            • Assignee:
              Unassigned
              Reporter:
              Adelita L. Padilla
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development