Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
F
fsharp-sql-provider
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sean
fsharp-sql-provider
Commits
b419f598
Commit
b419f598
authored
Feb 02, 2020
by
Sean
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add full prebuild script
parent
3940bc9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
prebuild.sh
prebuild.sh
+25
-2
test-sql-provider.fsproj
test-sql-provider.fsproj
+6
-1
No files found.
prebuild.sh
View file @
b419f598
#!/bin/sh
#!/bin/
ba
sh
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
)
nugetRootPath
=
"
${
nugetRootPath
%?
}
"
# array of ${nameOfDep}|${pathToDllFolder}
packagesAndPaths
=(
"System.Runtime.CompilerServices.Unsafe|4.6.0/lib/netstandard2.0"
)
mkdir
-p
lib
for
i
in
"
${
packagesAndPaths
[@]
}
"
do
# all these vars split out for clarity
name
=
$(
echo
"
$i
"
|
cut
-d
'|'
-f1
)
path
=
$(
echo
"
$i
"
|
cut
-d
'|'
-f2
)
nugetDll
=
"
$name
.dll"
pathFromNugetRoot
=
"
$(
echo
"
$name
"
|
awk
'{print tolower($0)}'
)
/
$path
"
fullPath
=
"
$nugetRootPath
/
$pathFromNugetRoot
/
$nugetDll
"
cp
"
$fullPath
"
"./lib/
$nugetDll
"
echo
" > Copied
$nugetDll
into lib for type provider."
done
test-sql-provider.fsproj
View file @
b419f598
...
...
@@ -7,11 +7,16 @@
</PropertyGroup>
<Target Name="TypeProviderSetup" BeforeTargets="Build">
<Exec Command="./prebuild.sh"/>
<Exec Command="./prebuild.sh"
/>
</Target>
<ItemGroup>
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Npgsql" Version="4.1.3" />
<PackageReference Include="SQLProvider" Version="1.1.76" />
</ItemGroup>
</Project>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment