Jump to content

Custom library path


Recommended Posts

  • 11 months later...

Is it possible to add files from a different location?

 

i.e., in delphi in dpr we do things  like

 

uses

frontend in 'c:\myfiles\frontend.pas'

 

is there similar in SMS.

 

Alternatively can we add custom library paths?

 

---

 

If we were to have a team of people coding using a set of common units how could this be achieved using SMS?

 

Seems at the moment each coder would have to have a copy of the custom files in the library folder, is that correct?

Link to post
Share on other sites

...in the current project folder, create a folder named "resources", then move some files into this DIR. f.i let's move Smart.Core.pas to resources\Smart.Core.pas

 

C:\myprojects
├ YOURPROJECT.sproj
├───resources
│   
└───www
    ├───res
    └───lib
    └───css

 

a hackish solution I think will work for you, just edit your project  YOURPROJECT.sproj with an external text editor, ensure SmartMS.exe is not running. You have to edit manually the path in the FILE section.

      <File type="unit">
        <Name>Smart.Core</Name>
        <Created>2016-12-14T13:32:16.015Z</Created>
        <Modified>2016-12-15T02:11:10.125</Modified>
        <Filename>resources\Smart.Core.pas</Filename>
      </File>

Just restart SmartMS now.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...