Comments (9)
You are welcome. The magic is in assembly redirects that I generated automatically using Paket
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="4.4.1.0" />
</dependentAssembly>
this line tells .net runtime to return v4.4.1.0 to anyone who asks for FSharp.Core.
All other changes are just updates to latest version of libraries and tooling.
from excelprovider.
According to https://fsharp.github.io/2015/04/18/fsharp-core-notes.html you should not rely on GAC in any situation and ship FSharp.Core.dll with application (test proj = application)
@magnushammar Please try code from PR branch, I've updated .net framework to net461 for tests, reference latest FSharp.Core from Nuget, updated NUnit and FsUnit to latest version.
F# 4.1 dll should not be in the GAC
from excelprovider.
It works like a charm with the PR branch and thank you for the link.
Aside from being new to F# I also am quite new to the .Net framework. Trying to figure out the different versions, locations, project formats etc make my head spin far more than F#
Anyway, thank you again!
from excelprovider.
@sergey-tihon Tried the code in your pull request, but failed. Here is the summary:
Running build failed.
Error:
Building C:\Dev\git\ExcelProvider\ExcelProvider.sln failed with exitcode 1.
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target Duration
------ --------
Clean 00:00:00.0027614
AssemblyInfo 00:00:00.0368392
Build Failure
Total: 00:00:00.9984879
---------------------------------------------------------------------
Status: Failure
---------------------------------------------------------------------
---------------------------------------------------------------------
1) Building C:\Dev\git\ExcelProvider\ExcelProvider.sln failed with exitcode 1.
2) MSB4057: C:\Dev\git\ExcelProvider\src\ExcelProvider\ExcelProvider.fsproj(0,0): The target "Rebuild" does not exist in the project.
3) MSB4057: C:\Dev\git\ExcelProvider\tests\ExcelProvider.Tests\ExcelProvider.Tests.fsproj(0,0): The target "Rebuild" does not exist in the project.
---------------------------------------------------------------------
msbuild version: Microsoft (R) Build Engine version 15.1.1012.6693
dotnet: v.1.1.0
from excelprovider.
@AkosLukacs Sorry, but I have no idea how to fix it =(
As you see, build is green on both CI server and my local machine, so the error is somehow related to your local environment.
I saw error The target "Rebuild" does not exist in the project.
before, but I have no idea what it the reason and how to fix it in a general way.
from excelprovider.
@sergey-tihon Thanks for the reply!
For reference: just RTFM fsharp.org says Starting with Visual Studio 2017 Update 3, F# is an optional component. Simply select F# from the Individual Components tab and press Install.
VS build tools reinstall solved my issue.
from excelprovider.
@AkosLukacs does it work for you finally?
from excelprovider.
from excelprovider.
I did merge PR with fix and close this issue
from excelprovider.
Related Issues (20)
- Feature request: override schema definition
- Rename main namespace to FSharp.Interop.Excel HOT 1
- Live published documentation is out of date HOT 3
- Assembly named ExcelProvider.RunTime instead of ExcelProvider HOT 5
- cannot find designtime dll HOT 5
- Cannot load ExcelDataReader HOT 8
- Is this meant to work with dotnet core? (System.Text.Encoding.CodePages dependency error) HOT 11
- Build.cmd fails with FS2026 on Windows with VS16.4 HOT 1
- Implement ability to load data via a Stream HOT 2
- System.Text.Encoding.CodePages dependency error in docker container HOT 3
- Feature Request: Support Google Sheets HOT 1
- Build.fsx fails on build step with error HOT 4
- Feature Request: Parameter to expose textual forms of formulas in sheet. HOT 1
- You can only use this provider with an absolute path for the excel file?? HOT 2
- When a sheetname isn't found, the type provider defaults to a non-deterministic first sheet with a different name HOT 9
- Error restoring in Visual Studio: error NU1202: Package System.Text.Encoding.CodePages 4.5.0 is not compatible with net45 (.NETFramework,Version=v4.5). HOT 3
- Running from an F# script within Visual Studio using relative paths HOT 3
- Change Master to Main
- Add repo-visualization github action HOT 1
- Getting Started: Unable to find the file 'ExcelProvider.dll' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excelprovider.