Created
November 4, 2016 08:28
-
-
Save Pauan/47f833e9b233e36c73f5b95dc2363769 to your computer and use it in GitHub Desktop.
F# does not execute do statements in Foo.fs
This file contains 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
module Bar | |
open Foo | |
do | |
System.Console.WriteLine(foo) | |
System.Console.WriteLine("Bar") |
This file contains 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
{ | |
"sourceMaps": true, | |
"projFile": "./Main.fsproj", | |
"rollup": { | |
"dest": "./dist/Main.js", | |
"format": "umd" | |
} | |
} |
This file contains 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
module Foo | |
let foo = "Test!" | |
do | |
System.Console.WriteLine("Foo") |
This file contains 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
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<ProjectGuid>{4057826A-1B4A-4553-832E-9570A3394346}</ProjectGuid> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Foo.fs" /> | |
<Compile Include="Bar.fs" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<SchemaVersion>2.0</SchemaVersion> | |
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion> | |
<DebugSymbols>false</DebugSymbols> | |
<DebugType>None</DebugType> | |
<Optimize>false</Optimize> | |
<Tailcalls>false</Tailcalls> | |
<WarningLevel>3</WarningLevel> | |
</PropertyGroup> | |
<ItemGroup> | |
<Reference Include="mscorlib" /> | |
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
<Private>True</Private> | |
</Reference> | |
<Reference Include="System" /> | |
<Reference Include="System.Core" /> | |
<Reference Include="System.Numerics" /> | |
</ItemGroup> | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
<Choose> | |
<When Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets')"> | |
<PropertyGroup> | |
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets</FSharpTargetsPath> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<PropertyGroup Condition="Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\4.0\Framework\v4.0\Microsoft.FSharp.Targets')"> | |
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\4.0\Framework\v4.0\Microsoft.FSharp.Targets</FSharpTargetsPath> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> | |
<Import Project="$(FSharpTargetsPath)" Condition="Exists('$(FSharpTargetsPath)')" /> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment