Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Structure #82

Open
Binto86 opened this issue Aug 17, 2022 · 1 comment
Open

Project Structure #82

Binto86 opened this issue Aug 17, 2022 · 1 comment
Labels
Language idea One single idea which may be a start of a design document

Comments

@Binto86
Copy link
Contributor

Binto86 commented Aug 17, 2022

This issue should lay out how Fresh projects will be structured.
This issue is related to module system issue (#58)

Application Entry Point

For projects that compile to .exe, the entry point of the aplication would be in file called main.fr, which will be in the same folder as project file and this file will contain main method, which would be the entry point.

Module Root Folder

The location of module root folder will be specified in project file, by defalut it would be the same folder as project file.

Bin and Obj folder

Bin and Obj folder will be under output folder, which will be under the folder containig the project file.

@LPeter1997 LPeter1997 added the Language idea One single idea which may be a start of a design document label Aug 17, 2022
@jl0pd
Copy link

jl0pd commented Aug 18, 2022

Bin and Obj folder will be under output folder, which will be under the folder containig the project file.

By default all dotnet projects have output stored in bin/obj near project file. If someone wants to change this behavior, it can be configured inside project file. It's quite common to have Directory.Build.props in root of solution with something like

  <PropertyGroup>
    <BaseOutputPath>$(MSBuildThisFileDirectory)artifacts/bin/$(MSBuildProjectName)</BaseOutputPath>
    <BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)artifacts/obj/$(MSBuildProjectName)</BaseIntermediateOutputPath>
  </PropertyGroup>

I don't think this behavior should be overridden by language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language idea One single idea which may be a start of a design document
Projects
None yet
Development

No branches or pull requests

3 participants