Commit b419f598 authored by Sean's avatar Sean 🎨
Browse files

Add full prebuild script

parent 3940bc9b
echo "Ahoy!"
# Run a restore to be sure we have all the dlls on the system.
dotnet restore web > /dev/null
# Find nuget's global directory
nugetRootPath=$(dotnet nuget locals global-packages -l | cut -d' ' -f4)
# array of ${nameOfDep}|${pathToDllFolder}
mkdir -p lib
for i in "${packagesAndPaths[@]}"
# all these vars split out for clarity
name=$(echo "$i" | cut -d'|' -f1)
path=$(echo "$i" | cut -d'|' -f2)
pathFromNugetRoot="$(echo "$name" | awk '{print tolower($0)}')/$path"
cp "$fullPath" "./lib/$nugetDll"
echo " > Copied $nugetDll into lib for type provider."
......@@ -7,11 +7,16 @@
<Target Name="TypeProviderSetup" BeforeTargets="Build">
<Exec Command="./"/>
<Exec Command="./" />
<Compile Include="Program.fs" />
<PackageReference Include="Npgsql" Version="4.1.3" />
<PackageReference Include="SQLProvider" Version="1.1.76" />
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment