Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with VS 15.7: cannot find provided types #48

Closed
Zaid-Ajaj opened this issue May 16, 2018 · 10 comments
Closed

Build fails with VS 15.7: cannot find provided types #48

Zaid-Ajaj opened this issue May 16, 2018 · 10 comments

Comments

@Zaid-Ajaj
Copy link

After working around #47 and restoring packages successfully, I am not able to build the solution from Visual Studio 2017 latest and I get errors from the fsharp compiler that look like related to type providers:

Severity Code Description Project File Line Suppression State
Error FS0193 Could not find file 'C:\projects\elmish-xamarin-forms\Samples\AllControls\Droid\ProvidedTypes5c2b5dd0-36e9-4067-97f5-fdfe2f421972.dll'. AllControls.Droid FSC 1 Active
Error FS0193 Could not find file 'C:\projects\elmish-xamarin-forms\Samples\TicTacToe\Droid\ProvidedTypes9f0bff89-67dd-46c2-a040-82a1e59c9ec5.dll'. TicTacToe.Droid FSC 1 Active
@nosami
Copy link

nosami commented May 17, 2018

You are being hit by a temporary issue in the F# compiler on Windows. The relevant issue is here

@dsyme
Copy link
Collaborator

dsyme commented May 17, 2018

A hotfix for this issue should be out in VS2017 15.7 soon.

@dsyme dsyme changed the title Build fails: cannot find provided types Build fails with VS 15.7: cannot find provided types May 17, 2018
@dsyme
Copy link
Collaborator

dsyme commented May 17, 2018

Note Visual Studio 15.6.* doesn't have this problem, also VS for Mac is ok. If you need a workaround you can also use the FSHarp.Compiler.Tools pacakge

@dsyme
Copy link
Collaborator

dsyme commented May 17, 2018

Or you can target iOS

@dsyme
Copy link
Collaborator

dsyme commented May 17, 2018

Or you can just play with the apps that don't use Android resources (e.g. CounterApp)

@Zaid-Ajaj
Copy link
Author

If you need a workaround you can also use the FSHarp.Compiler.Tools pacakge

I am not sure I understand what this means, reference the package from the projects with errors?

Or you can target iOS

Unfortunately, not an option here, I have a windows machine and building requires a mac if I understood the situation correctly

Or you can just play with the apps that don't use static resources (e.g. CounterApp)

I will try those, but I wanted to see the good stuff 😉

@nosami
Copy link

nosami commented May 17, 2018

I am not sure I understand what this means, reference the package from the projects with errors?

Try this - https://stackoverflow.com/a/43845651/316874

@dsyme
Copy link
Collaborator

dsyme commented May 17, 2018

@nosami Is it possible to adjust the samples to remove the uses of the Android resource type provider for now? It is only used in fairly minor ways for now

@nosami
Copy link

nosami commented May 17, 2018

@dsyme: yes that's possible, although some of the samples might just look a little odd / different to the iOS versions. It's used for picking up theme/style info.

I can submit a PR if you want.

nosami added a commit to nosami/Fabulous that referenced this issue May 17, 2018
This commit should be reverted once
dotnet/fsharp#4860
is fixed.

Re fabulous-dev#48
nosami added a commit to nosami/Fabulous that referenced this issue May 17, 2018
This commit should be reverted once
dotnet/fsharp#4860
is fixed.

Re fabulous-dev#48
nosami added a commit to nosami/Fabulous that referenced this issue May 17, 2018
This commit should be reverted once
dotnet/fsharp#4860
is fixed.

Re fabulous-dev#48
@dsyme
Copy link
Collaborator

dsyme commented May 17, 2018

Fixed in #51

@dsyme dsyme closed this as completed May 17, 2018
TimLariviere added a commit that referenced this issue Mar 29, 2022
Make sure blank templates can install from GitHub Packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants