Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Structure of ASP projects

In Visual Studio you can build and publish a web application using right click in a ASP.NET project -> Publish

A simple Web Application in ASP .NET will generate:

/

*.aspx

ASP pages

/

Web.config

 

/bin/

artifact.dll

project assembly

/bin/

artifact.pbd

program debug database

/bin/

*.dll

assemblies required

This can be deployed to IIS

The normal compilation using the dotnet compiler plugin seems to already generate proper dlls.

Implementation NMAVEN-200

Create a dotnet:asp (for 0.16+) / aspnet (for 0.14) type that generates the dll in target/artifactId/bin and copies all aspx files to target/artifactId

Zip that folder and install it in the repo, in the future create a msi package

Code Block
xml
xml
<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
  <id>dist</id>
  <formats>
    <format>zip</format>
  </formats>
  <fileSets>
    <fileSet>
      <directory>${basedir}/target</directory>
      <outputDirectory>/bin</outputDirectory>
      <includes>
        <include>**/*.dll</include>
      </includes>
    </fileSet>
    <fileSet>
      <directory>${basedir}</directory>
      <outputDirectory>/</outputDirectory>
      <includes>
        <include>web.config</include>
        <include>**/*.aspx</include>
      </includes>
    </fileSet>
  </fileSets>
</assembly>

Precompilation of ASP pages

The SDK provides a ASP .NET precompiler aspnet_compiler that can be used to check for errors in the ASP pages 2

Implementation NMAVEN-199

Create an aspx-compiler-mojo for aspnet_compiler executable, and run

Code Block
aspnet_compiler.exe -v /artifactId -p artifactId\ -u -f  target\artifactId

Visual Studio Addin

The Addin needs to recognize Web and Webservices projects in project import

Implementation NMAVEN-201

Recognize Web and Webservices projects by checking the packaging

Issues

JIRA Issues
anonymoustrue
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-rss/temp/SearchRequest.xml?&pid=11482&component=13465&sorter/field=priority&sorter/order=DESC&tempMax=1000

References

  1. Using IIS with Microsoft Visual Studio 2005 and the New Web Project System
  2. Precompilation In ASP.NET 2.0