Changing location of csproj files

Posts   
 
    
knez
User
Posts: 37
Joined: 01-Nov-2004
# Posted on: 29-Nov-2004 10:31:22   

Hi!

Here's the problem I have: My company's policy is to place project files (.csproj) in the same folder as source files. I customized template so it places project file in the right folder, but it looks for source files in the sub-folder, not in the same folder where it is.

                <task name="VisualStudio.NetProjectFileCreator" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.ProjectFileCreator">
                    <parameter name="destinationFolder" value="DatabaseGeneric\"/>
                    <parameter name="binRootFolder" value="DatabaseGeneric\" />
                    <parameter name="alterWhenExistent" value="true"/>
                    <parameter name="filenameFormat" value="DBGeneric.[extension]proj"/>
                    <parameter name="templateID2002" value="SD_VsNet2002AdapterTemplate"/>
                    <parameter name="templateID2003" value="SD_VsNet2003AdapterTemplate"/>
                    <parameter name="alwaysTarget" value="2003"/>
                    <parameter name="clearFileCacheAfterwards" value="true"/>
                    <parameter name="useRootNameSpaceForProjectName" value="true"/>
                </task> 

In template for project file I included files like they were included before.

         <Files>
            <Include>
<[FileIncludes]>
            </Include>
        </Files>

How can I change the path in project file?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 29-Nov-2004 11:24:06   

It's an issue with the ProjectFileCreator. It doesn't take into account the destinationFolder's value. It should remove that value from the filename of the generated files. I'll look into a solution with that task performer.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 29-Nov-2004 12:04:54   

I've fixed it in the task performer. It will be uploaded later today.

Frans Bouma | Lead developer LLBLGen Pro
knez
User
Posts: 37
Joined: 01-Nov-2004
# Posted on: 29-Nov-2004 12:38:57   

I've fixed it in the task performer. It will be uploaded later today.

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 29-Nov-2004 18:25:34   

The task performer is now available as a hotfix in the Taskperformers section in the customer area.

Frans Bouma | Lead developer LLBLGen Pro