मैंने एक साधारण एफ # स्क्रिप्ट चलाने के लिए विजुअल स्टूडियो कोड का उपयोग करने का प्रयास किया है।एफ # परियोजनाओं/स्क्रिप्ट के रन/डीबग के लिए विजुअल स्टूडियो कोड कैसे सेटअप करें?
मैं आज के रूप में सभी हाल के संस्करण डाउनलोड करता हूं। मैं http://ionide.io/ पर सभी प्लगइन्स इंस्टॉल करता हूं। अच्छे एनिमेटेड gifs के बावजूद जो यह दिखाता है कि यह काम करता है, मैं यह देखने में असमर्थ हूं कि कोड के निर्माण को कैसे काम करना है।
मैं एक .ionide फ़ाइल बनाने:
[Fake]
linuxPrefix = "mono"
command = "build.cmd"
build = "build.fsx"
लेकिन फिर भी, कैसे नकली स्थापित करें? तो, मैं इसे xamarin से करता हूं और इसे इंस्टॉल करता हूं। ठीक है, तो अब मैं build.fsx मिलती है:
#r "packages/FAKE.4.12.0/tools/FakeLib.dll" // include Fake lib
RestorePackages()
// Properties
let buildDir = "./build/"
let testDir = "./test/"
let deployDir = "./deploy/"
// version info
let version = "0.2" // or retrieve from CI server
// Targets
Target "Clean" (fun _ ->
CleanDirs [buildDir; testDir; deployDir]
)
Target "fakeBuild" (fun _ ->
!! "./*.fsproj"
|> MSBuildRelease buildDir "Build"
|> Log "AppBuild-Output: "
)
Target "Default" (fun _ ->
trace "Hello World from FAKE"
)
// Dependencies
"Clean"
==> "fakeBuild"
==> "Default"
// start build
RunTargetOrDefault "Default"
नकली चलाएँ: आदेश निर्माण और मिलती है:
No handler found for the command: 'fake.fakeBuild'. Ensure there is an activation event defined, if you are an extension.
और अब खो दिया हो।