Rename SimpleProgram.fs to SimpleProgramFSharp.fs
- Avoid collision with SimpleProgram.fs binary output
This commit is contained in:
@@ -16,8 +16,8 @@ open System
|
||||
open Google.OrTools.FSharp
|
||||
open Google.OrTools.LinearSolver
|
||||
|
||||
let SimpleProgram =
|
||||
let svr = Solver.CreateSolver("SimpleProgram", LinearProgramming.GLOP.ToString())
|
||||
let SimpleProgramFSharp =
|
||||
let svr = Solver.CreateSolver("SimpleProgramFSharp", LinearProgramming.GLOP.ToString())
|
||||
|
||||
// Create the variable x and y.
|
||||
let x = svr.MakeNumVar(0.0, 1.0, "x")
|
||||
@@ -35,6 +35,6 @@ let SimpleProgram =
|
||||
|
||||
[<EntryPoint>]
|
||||
let main =
|
||||
SimpleProgram
|
||||
SimpleProgramFSharp
|
||||
exit 0
|
||||
// [END program]
|
||||
@@ -13,7 +13,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="SimpleProgram.fs" />
|
||||
<Compile Include="SimpleProgramFSharp.fs" />
|
||||
<PackageReference Include="Google.OrTools.FSharp" Version="6.9.*" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -476,7 +476,7 @@ test_dotnet_tests: \
|
||||
.PHONY: check_dotnet_examples # Build and Run few C++ Examples (located in examples/cpp)
|
||||
check_dotnet_examples: \
|
||||
rdotnet_SimpleProgram.cs \
|
||||
rdotnet_SimpleProgram.fs
|
||||
rdotnet_SimpleProgramFSharp.fs
|
||||
|
||||
.PHONY: test_dotnet_examples # Build and Run all .Net Examples (located in examples/dotnet)
|
||||
test_dotnet_examples: \
|
||||
|
||||
Reference in New Issue
Block a user