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 "John R. Fallows (JIRA)" <ji...@apache.org> on 2011/07/02 02:13:28 UTC

[jira] [Commented] (NPANDAY-450) Support Portable Class Libraries

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

John R. Fallows commented on NPANDAY-450:
-----------------------------------------

The attached patch adds support for PCL, including the generation of metadata that indicates the target framework attribute, equivalent to that automatically generated by Visual Studio.

using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETPortable,Version=v4.0,Profile=Profile2", FrameworkDisplayName = "Portable Library")]

The value of the new generate-assembly-info "targetFramework" plugin parameter is used to specify the runtime versioning target framework attribute above.

For example:

    <plugin>
        <groupId>org.apache.npanday.plugins</groupId>
        <artifactId>maven-compile-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
            <profile>PORTABLE</profile>
            <frameworkVersion>v4.0</frameworkVersion>
            <targetFramework>.NETPortable,Version=v4.0,Profile=Profile2</targetFramework>
        </configuration>
    </plugin>

It would be useful to get feedback on the above plugin parameter naming.


> Support Portable Class Libraries
> --------------------------------
>
>                 Key: NPANDAY-450
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-450
>             Project: NPanday
>          Issue Type: New Feature
>          Components: Maven Plugins
>    Affects Versions: 1.4-incubating
>         Environment: > 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
>         Attachments: NPANDAY-450.diff
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Microsoft .Net Portable Class Libraries (PCL) allow developers to code against a reduced set of .Net APIs and create a portable library that can be reused at runtime by both .Net 4 and Silverlight 4 applications, without needing to recompile the source code.

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