Skip to content

Conversation

savil
Copy link
Collaborator

@savil savil commented Sep 16, 2022

Summary

  • rename csharp package to dotnet
  • Add support for .fsproj extension to enable support for F# language.

How was it tested?

Added a testdata case for fsharp-hello-world that does version checking....

Copy link
Collaborator Author

savil commented Sep 16, 2022

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil force-pushed the savil/fsharp-planner branch 2 times, most recently from f8d35e5 to 3de30ee Compare September 16, 2022 18:13
cuecfg/cuecfg.go Outdated
@@ -52,7 +52,7 @@ func Unmarshal(data []byte, extension string, valuePtr any) error {
return errors.WithStack(err)
}
return nil
case ".xml", ".csproj":
case ".xml", ".csproj", ".fsproj":
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love needing to hard code .csproj and .fsproj in this package. It is needed because the cuecfg.ParseFiles function derives the extension from the filename, and so there is no means of indicating what extension to use.

An alternative idea is to introduce cuecfg.ParseFilesForExtension(filepath string, ext string) and I can call it as cuecfg.ParseFiles(projectPath, ".xml")

@savil savil force-pushed the savil/fsharp-planner branch from 3de30ee to fd59c61 Compare September 16, 2022 18:24
@savil savil marked this pull request as ready for review September 16, 2022 18:25
Copy link
Collaborator

@LucilleH LucilleH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Base automatically changed from savil/csharp-build to main September 16, 2022 21:08
- rename csharp package to dotnet
- Add support for `.fsproj` extension to enable support for F# language.
@savil savil force-pushed the savil/fsharp-planner branch from fd59c61 to cbfbe49 Compare September 16, 2022 21:15
@savil savil merged commit 185162b into main Sep 16, 2022
@savil savil deleted the savil/fsharp-planner branch September 16, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants