Skip to content

Commit

Permalink
adding first file..
Browse files Browse the repository at this point in the history
  • Loading branch information
matzew committed Jul 2, 2011
1 parent e0bed7c commit 85068ff
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("Sample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Sample")]
[assembly: AssemblyCopyright("Copyright 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// This is not work... Hrm......
[assembly: InternalsVisibleTo("Sample")]

[assembly: AssemblyVersion("2.2.8.0")]
[assembly: AssemblyFileVersion("2.2.8.0")]
[assembly: AssemblyInformationalVersion("2.2.8.0")]
118 changes: 118 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.wessendorf.dotnet</groupId>
<artifactId>npanday.demo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>dotnet-library</packaging>
<dependencies>
<dependency>
<groupId>NUnit</groupId>
<artifactId>NUnit.Framework</artifactId>
<version>2.2.8.0</version>
<type>library</type>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/csharp</sourceDirectory>
<testSourceDirectory>src/test/csharp</testSourceDirectory>
<plugins>

<!-- assembly for an easy source distribution -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>src</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-compile-plugin</artifactId>
<version>1.4.0-incubating</version>
<extensions>true</extensions>
<configuration>
<define>DOTNET</define>
</configuration>
<executions>
<execution>
<id>compile-debug</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>target/debug</outputDirectory>
<define>TRACE;DOTNET;DEBUG</define>
<frameworkVersion>3.5</frameworkVersion>
<isDebug>true</isDebug>
<optimize>false</optimize>
</configuration>
</execution>
</executions>
</plugin>

<!-- npanday does not automatically attach comments
a project artifact -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<!-- TODO: use single artifact; {...}-xmldocs -->
<artifact>
<file>target/comments.xml</file>
<type>dotnet-vsdocs</type>
<classifier>release</classifier>
</artifact>
<artifact>
<file>target/comments.xml</file>
<type>dotnet-vsdocs</type>
<classifier>debug</classifier>
</artifact>
<!-- TODO: eliminate need for (default) release classifier -->
<artifact>
<file>target/${project.artifactId}.dll</file>
<type>dotnet-library</type>
<classifier>release</classifier>
</artifact>
<artifact>
<file>target/debug/${project.artifactId}.dll</file>
<type>dotnet-library</type>
<classifier>debug</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
29 changes: 29 additions & 0 deletions src/main/csharp/Sample/MyApp.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
using System;
using System.IO;

namespace Sample
{
class MyApp
{
MyApp()
{
Console.WriteLine("Hello");
}
}
}
39 changes: 39 additions & 0 deletions src/test/csharp/Sample/MyAppTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
using System;
using NUnit.Framework;

namespace Sample
{

[TestFixture]
public class MyAppTest
{

[SetUp]
protected void SetUp()
{
}

[Test]
public void TestSample()
{
MyApp ma = new MyApp();
}
}
}

0 comments on commit 85068ff

Please sign in to comment.