Hi, Please find attached the pom file which i have slightly edited to hide SVN repository details. The referenced dotnet-parent pom defines location of our distribution repositories and also sets the versions of most of the NPanday plugins so I do not have to do that in every projects pom file.
Updating the entries that appear in .csproj appears to make no difference in visual studio. The only way is to change the resource.resx file to look up a directory which still does not resolve the issue as then NPanday will not compile the project! So NPanday and Visual Studio are not compiling resources in the same way. As below: Visual Studio Resources path: trunk\resources\resources.resx Base path used: trunk\resources\ NPanday Resources path: trunk\resources\resources.resx Base path used: trunk\ Is there something I can put in my pom file to correct this? For reference I am using NPanday 1.2.1. Thanks, Jamie -----Original Message----- From: Josimpson Ocaba [mailto:[email protected]] Sent: 08 April 2011 23:48 To: [email protected] Cc: Jamie Kemp Subject: Re: Resource file issues Hi Jamie, can you send as a copy of your pom.xml file? Also after moving the *.ico file upto the trunk did you also change the hintPath in the visual studio project file? This maybe the reason why it is failing for VS. Hope this helps. Cheers, Joe
<?xml version="1.0" encoding="utf-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0"> <parent> <artifactId>dotnet-parent</artifactId> <groupId>com.int-link.dotnet</groupId> <version>1</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.int-link.dotnet</groupId> <artifactId>ISS.BES.Dashboard.Controls.DrillDownHub</artifactId> <packaging>library</packaging> <name>com.int-link.dotnet : ISS.BES.Dashboard.Controls.DrillDownHub</name> <version>1.0.0-SNAPSHOT</version> <scm> <connection>xxx</connection> <developerConnection>xxx</developerConnection> <url>xxx</url> </scm> <build> <sourceDirectory>./</sourceDirectory> <resources> <resource> <directory>resources</directory> </resource> </resources> <plugins> <plugin> <groupId>npanday.plugin</groupId> <artifactId>maven-compile-plugin</artifactId> <extensions>true</extensions> <configuration> <includeSources> <includeSource>ISS.BES.Dashboard.Controls.DrillDownHub.cs</includeSource> <includeSource>Properties\AssemblyInfo.cs</includeSource> <includeSource>resources\resource.Designer.cs</includeSource> </includeSources> </configuration> </plugin> <plugin> <groupId>npanday.plugin</groupId> <artifactId>maven-resgen-plugin</artifactId> <configuration> <embeddedResources> <embeddedResource> <sourceFile>ISS.BES.Dashboard.Controls.DrillDownHub.resx</sourceFile> <name>ISS.BES.Dashboard.Controls.ISS.BES.Dashboard.Controls.DrillDownHub</name> </embeddedResource> <embeddedResource> <sourceFile>resources\resource.resx</sourceFile> <name>ISS.BES.Dashboard.Controls.resources.resource</name> </embeddedResource> </embeddedResources> </configuration> </plugin> </plugins> </build> </project>
