F# File-Based Application (FBA) 예제 추가#1
Open
sigmadream wants to merge 3 commits intodotnetdev-kr:mainfrom
Open
F# File-Based Application (FBA) 예제 추가#1sigmadream wants to merge 3 commits intodotnetdev-kr:mainfrom
sigmadream wants to merge 3 commits intodotnetdev-kr:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.NET FBA(File-Based Application) 저장소에 F#(.fsx) 스크립트 예제를 추가합니다. 기존 C# FBA 예제와 동일한 흐름을 F#으로 구현하여,
dotnet fsi로 실행 가능한 단일 파일 예제를 제공합니다..fsx파일만으로 예제를 실행할 수 있도록 함fsharp인자로 F# worker/minapi를 선택 실행할 수 있도록 통합주요 변경사항
01-shell-standard.fsx신규 추가#!/usr/bin/env -S dotnet fsi) 적용__SOURCE_FILE__,__SOURCE_DIRECTORY__출력02-random-webapi.fsx신규 추가03-apphost.cs수정args에"fsharp"포함 시AddExecutable("dotnet", ".", "fsi", "파일명")으로 F# 스크립트 실행하도록 분기 추가03-minapi.fsx신규 추가ConnectionStrings__cache활용03-minapi.cs예제와 대응03-worker.fsx신규 추가Message,LastUpdated키 갱신03-worker.cs와 기능 동일04-avalonia.fsx신규 추가04-avalonia.cs와 동일 구조README.md수정.gitignore수정.fake추가중점 사항
#!/usr/bin/env -S dotnet fsishebang으로 실행 가능 (chmod +x후./01-shell-standard.fsx등).FrameworkReference를 쓰기 어려우므로, C# Minimal API 대신 Suave 사용 (02, 03-minapi).AddExecutable("dotnet", ".", "fsi", "03-worker.fsx")형태로 F# 스크립트를 실행.실행
아쉬운점
추가