Ticket #332 (assigned enhancement)
Ref and Lib paths need some platform pattern for 32 vs 64 bit Frameworks
Reported by: | hopscc | Owned by: | Chuck |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.4 |
Keywords: | refpath, libpath | Cc: |
Description
On Windows/ .Net
Ref and Lib paths are currently static and evaluated as in in cobra.
That means the platform bit-width is wired to the ref/lib entry.
Use on a different bit-width platform will fail with unfound path/files
These need some way of specifying the 'framework place' independent of whether platform is a 32 or 64 bit platform.
e.g paths:
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\...'
vs
'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\...'
(at min some expansion pattern for 'Framework' vs 'Framework64').
Env var expansion is one possibility but then requires something else to set env var ( for platform type/bit width windows does not seem to do).
.Net platform knows bit-width ( Environment.Is64BitProcess) so suggest some pattern that cobra compiler expands in ref and lib Paths
e.g. '{Platform_Framework}'
above two become
'{Platform_Framework}\...'
(cf %APP_DATA% )