SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Copying files (not adding to the project) in project templates...

Last post 01-10-2007 10:06 AM by BernhardSpuida. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-09-2007 3:01 PM

    Copying files (not adding to the project) in project templates...

    I have a project template where some references are defined. How to make the referenced files are being copied to the Lib folder in my newly created solution while the sources are somwhere with the template being put together?

     My references are as follows:

        <Project language="C#">
            <ProjectItems>

                ...
                <Reference Include=".\Lib\Spring.Core.dll" />
                <Reference Include=".\Lib\Spring.Aop.dll" />
                <Reference Include=".\Lib\Spring.Web.dll" />
                <Reference Include=".\Lib\Spring.Data.dll" />
                <Reference Include=".\Lib\Spring.Data.NHibernate12.dll" />
                <Reference Include=".\Lib\Spring.Data.FirebirdProvider.dll" />
                <Reference Include=".\Lib\Spring.antlr.runtime.dll" />
                <Reference Include=".\Lib\Common.Logging.dll" />
                <Reference Include=".\Lib\Common.Logging.Log4Net129.dll" />
                <Reference Include=".\Lib\Castle.DynamicProxy.dll" />
                <Reference Include=".\Lib\Iesi.Collections.dll" />
                <Reference Include=".\Lib\log4net.dll" />
                <Reference Include=".\Lib\NHibernate.dll" />
            </ProjectItems>

    I've been trying to put file elements but they are being added to the project which I don't want to be done. 

    Or perhaps there is any better way? 

    Roland
  • 01-09-2007 9:42 PM In reply to

    Re: Copying files (not adding to the project) in project templates...

    Looking at SharpDevelop's code I don't think this is currently supported. We'd need some way to indicate that the file should be copied but not included in the project itself. Maybe an ExcludeFromProject or IncludeInProject attribute on the File element in a template?
  • 01-10-2007 8:32 AM In reply to

    Re: Copying files (not adding to the project) in project templates...

    I can provide the changes but the question is whether I will be able to commit it somehow... I can provide the code files in a while or some diffs in the evening (currently I will not be able to produce diffs).

    Looking at the code I am wonderring why all these templates are not being deserialized (and also validated against the schema). The data model could be split from reading (and maybe also writting) operations. This would lelad to potential possibility of different file formats (also other effects could be easy to achieve - i. e. different strategies of items treatment) like XML, text files, web resources, or even any database... But this is only my consideration, of course.
     

    Roland
  • 01-10-2007 10:06 AM In reply to

    Re: Copying files (not adding to the project) in project templates...

    Please read this wiki page for instructions on contributing code to #develop. Preferably, you should not submit your work as diffs.

     
     

Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.