Browse Source

Added library to solution.

Added reference to the console project also.
master
Craig Oates 6 years ago
parent
commit
e4c007ad6a
  1. 41
      BFLib/AssemblyInfo.fs
  2. 80
      BFLib/BFLib.fsproj
  3. 4
      BFLib/Library1.fs
  4. 8
      BFLib/Script.fsx
  5. 4
      BFLib/packages.config
  6. 6
      BrittleFish.sln
  7. 7
      BrittleFish/BrittleFish.fsproj

41
BFLib/AssemblyInfo.fs

@ -0,0 +1,41 @@
namespace BFLib.AssemblyInfo
open System.Reflection
open System.Runtime.CompilerServices
open System.Runtime.InteropServices
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[<assembly: AssemblyTitle("BFLib")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>]
[<assembly: AssemblyProduct("BFLib")>]
[<assembly: AssemblyCopyright("Copyright © 2018")>]
[<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[<assembly: ComVisible(false)>]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[<assembly: Guid("4f3c02d5-e76c-4389-8779-02d06ee6af92")>]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [<assembly: AssemblyVersion("1.0.*")>]
[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]
do
()

80
BFLib/BFLib.fsproj

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>4f3c02d5-e76c-4389-8779-02d06ee6af92</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>BFLib</RootNamespace>
<AssemblyName>BFLib</AssemblyName>
<UseStandardResourceNames>true</UseStandardResourceNames>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.3.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>BFLib</Name>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<Tailcalls>false</Tailcalls>
<OutputPath>bin\$(Configuration)\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<DocumentationFile>bin\$(Configuration)\$(AssemblyName).XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<Tailcalls>true</Tailcalls>
<OutputPath>bin\$(Configuration)\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<WarningLevel>3</WarningLevel>
<DocumentationFile>bin\$(Configuration)\$(AssemblyName).XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
</PropertyGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '11.0'">
<PropertyGroup Condition=" '$(FSharpTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets') ">
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets</FSharpTargetsPath>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup Condition=" '$(FSharpTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets') ">
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets</FSharpTargetsPath>
</PropertyGroup>
</Otherwise>
</Choose>
<Import Project="$(FSharpTargetsPath)" />
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="Library1.fs" />
<None Include="Script.fsx" />
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core">
<Name>FSharp.Core</Name>
<AssemblyName>FSharp.Core.dll</AssemblyName>
<HintPath>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\$(TargetFSharpCoreVersion)\FSharp.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
<Reference Include="System.ValueTuple">
<Private>True</Private>
</Reference>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

4
BFLib/Library1.fs

@ -0,0 +1,4 @@
namespace BFLib
type Class1() =
member this.X = "F#"

8
BFLib/Script.fsx

@ -0,0 +1,8 @@
// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.
#load "Library1.fs"
open BFLib
// Define your library scripting code here

4
BFLib/packages.config

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="System.ValueTuple" version="4.4.0" targetFramework="net471" />
</packages>

6
BrittleFish.sln

@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.27703.2018
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "BrittleFish", "BrittleFish\BrittleFish.fsproj", "{9D146C28-DEDE-4C70-BDC9-44B68925CA07}" Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "BrittleFish", "BrittleFish\BrittleFish.fsproj", "{9D146C28-DEDE-4C70-BDC9-44B68925CA07}"
EndProject EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "BFLib", "BFLib\BFLib.fsproj", "{4F3C02D5-E76C-4389-8779-02D06EE6AF92}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -15,6 +17,10 @@ Global
{9D146C28-DEDE-4C70-BDC9-44B68925CA07}.Debug|Any CPU.Build.0 = Debug|Any CPU {9D146C28-DEDE-4C70-BDC9-44B68925CA07}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D146C28-DEDE-4C70-BDC9-44B68925CA07}.Release|Any CPU.ActiveCfg = Release|Any CPU {9D146C28-DEDE-4C70-BDC9-44B68925CA07}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9D146C28-DEDE-4C70-BDC9-44B68925CA07}.Release|Any CPU.Build.0 = Release|Any CPU {9D146C28-DEDE-4C70-BDC9-44B68925CA07}.Release|Any CPU.Build.0 = Release|Any CPU
{4F3C02D5-E76C-4389-8779-02D06EE6AF92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F3C02D5-E76C-4389-8779-02D06EE6AF92}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F3C02D5-E76C-4389-8779-02D06EE6AF92}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F3C02D5-E76C-4389-8779-02D06EE6AF92}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

7
BrittleFish/BrittleFish.fsproj

@ -78,6 +78,13 @@
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BFLib\BFLib.fsproj">
<Name>BFLib</Name>
<Project>{4f3c02d5-e76c-4389-8779-02d06ee6af92}</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">

Loading…
Cancel
Save