You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Joe Ocaba (JIRA)" <ji...@apache.org> on 2011/06/01 02:45:47 UTC

[jira] [Resolved] (NPANDAY-438) NPanday.Plugin.Msbuild.JavaBinding plugin does not support framework version 2.0

     [ https://issues.apache.org/jira/browse/NPANDAY-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Ocaba resolved NPANDAY-438.
-------------------------------

    Resolution: Not A Problem

We cannot build this project with the given <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> It would fail because it is a given that the project will only be built with 4.0 msbuild.

> NPanday.Plugin.Msbuild.JavaBinding plugin does not support framework version 2.0
> --------------------------------------------------------------------------------
>
>                 Key: NPANDAY-438
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-438
>             Project: NPanday
>          Issue Type: Bug
>    Affects Versions: 1.4-incubating
>            Reporter: Adelita L. Padilla
>            Priority: Minor
>             Fix For: 1.4.1-incubating
>
>
> Steps to reproduce:
> 1) Create a VS 2010 web application project with a 2.0 .Net Framework
> 2) Add a resource file to the project
> 3) Generate POM files
> 4) Build project
> Actual Behavior:
> Unable to build project successfully:
> {noformat}
> Microsoft (R) Build Engine Version 2.0.50727.4927
> [Microsoft .NET Framework, Version 2.0.50727.4959]
> Copyright (C) Microsoft Corporation 2005. All rights reserved.
> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(412,3): error MSB4067: The element <ItemDefinitionGroup> beneath element <Project> is unrecognized.
> Exception occcurred: System.Exception: MSBuild exited with code: 1
>    at NPanday.Plugin.Msbuild.MsbuildMojo.Execute()
>    at NPanday.Plugin.AbstractMojo.Execute()
>    at NPanday.Plugin.Loader.PluginLoader.Main(String[] args)
> NPanday: End Process = 5/31/2011 6:26:00 PM; exit code = 1
> {noformat}
> \\
> To be able to have a successful build I manually added this in Environment Variables:
> {noformat}
>    Variable name: MSBuildExtensionsPath32
>    Variable value: C:\Program Files (x86)\MSBuild\
> {noformat}
> Then add:
> {noformat}   
> %MSBuildExtensionsPath32%
> {noformat}
> to variable name 'PATH'.
> Then I manually revised the .csproj with the ff:
> {noformat}
>   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
> {noformat}
> to
> {noformat}
>   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
> {noformat}

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