-
Notifications
You must be signed in to change notification settings - Fork 26
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
Generate props file with referenced fs files #34
Comments
That looks like a doable improvement. Preferably via an option I am not sure how the |
The file extension can be any. Content matters. <ItemGroup>
<Compile Include="Types.fs" />
<Compile Include="Query1.fs" />
<Compile Include="Query2.fs" />
...
<Compile Include="QueryN.fs" />
<Compile Include="Client.fs" />
</ItemGroup> That is all. The main point is to include files in the right order and do not do that manually. |
Just a piece of |
I want to realize this opportunity. How to name the key that will switch generation between fsproj and props? |
I would like to use StringBuffer
Can I add it to the project? |
I would like to generate fsproj using XDocument, XElement. Can I rewrite the generation on them? |
Hi @anthony-mi maybe I didn't understand the issue correctly, does this replace the fsproj entirely? if so, what about the external dependencies that the project uses in the generated GraphQL client, specifically |
That would be a nice improvement to the current API (which uses strings) to build the project file but that is a separate issue |
It depends on your intent. If you want to go away from |
But if you wan to keep the ability to have full project, then we need to introduce a switch |
What is your opinion? |
There is already a switch called |
They can be added to props also |
But it is better to add them manually |
To the project file |
But |
So it is not just the files <ItemGroup>
<Compile Include="Types.fs" />
<Compile Include="Query1.fs" />
<Compile Include="Query2.fs" />
...
<Compile Include="QueryN.fs" />
<Compile Include="Client.fs" />
</ItemGroup> but also with package references added <ItemGroup>
<Compile Include="Types.fs" />
<Compile Include="Query1.fs" />
<Compile Include="Query2.fs" />
...
<Compile Include="QueryN.fs" />
<Compile Include="Client.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="FSharp.Core" Version="4.7.2" />
<PackageReference Include="Fable.Remoting.Json" Version="2.14.0" />
</ItemGroup> is that correct? |
Yes, we can do that. But I think that these 2 dependencies any developer can add himself into his project as well as |
I would rather have snowflaqe decide which dependencies are used because they are tied to the code generation. If a I fix something in the serializer and update snowflaqe to a new version, they would get the new version with the proper dependency versions etc. |
That's fine, developer can override it in consuming project any way |
Do you approve |
|
Added option |
It would be nice to have a props file generated. This will allow scenario:
client.fsproj:
<Import Project="output/generated.props" />
/output
<generated F# files>
<project name>.props
The text was updated successfully, but these errors were encountered: