fsprojects / FsXaml

F# Tools for working with XAML Projects
http://fsprojects.github.io/FsXaml/
MIT License
171 stars 48 forks source link

"A strongly-named assembly is required" #66

Open goswinr opened 7 years ago

goswinr commented 7 years ago

using "F# Empty Windows App (WPF)" template (version 2.0) : I create an new project and update all nuget packages. I then get the error "A strongly-named assembly is required" on the type provider. see images. Is this a problem with my setup ? Is this something I can fix directly?

(using VS2015 update 3) 2017-03-16_174025 2017-03-16_173955

ReedCopsey commented 7 years ago

Are you using F# Power Tools? Try temporarily disabling it, and see if it goes away...

On Thu, Mar 16, 2017 at 9:47 AM, Goswin notifications@github.com wrote:

using" F# Empty Windows App (WPF)" template ( version 2.0): I create an new project and update all nuget packages. I then get the error "A strongly-named assembly is required" on the type provider. see images. Is this a problem with my setup ? Is this something I can fix directly?

(using VS2015 update 3) [image: 2017-03-16_174025] https://cloud.githubusercontent.com/assets/884885/24007959/77cf6cb6-0a70-11e7-9c39-07a7b95b30bb.jpg [image: 2017-03-16_173955] https://cloud.githubusercontent.com/assets/884885/24007969/7b7cae50-0a70-11e7-9a66-aebc6537f42f.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/FsXaml/issues/66, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCUmpVqth49TGt_8diyrMsN7t22lN8tks5rmWe8gaJpZM4MflBi .

goswinr commented 7 years ago

Yes, the Error goes away after disabling the power tools. Is that the only solution ?

ReedCopsey commented 7 years ago

Temporarily, yes. Or ignore it (it should build -it's an "intellisense" issue). I'm working on a pull request for power tools to eliminate this issue permanently, but it's a large job, and not completed yet.

On Thu, Mar 16, 2017 at 10:09 AM, Goswin notifications@github.com wrote:

Yes, the Error goes away after disabling the power tools. Is that the only solution ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fsprojects/FsXaml/issues/66#issuecomment-287126094, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCUmn6cWnhTTppe5EmkugU5EXbPf6VLks5rmWytgaJpZM4MflBi .

goswinr commented 7 years ago

I have some other errors now but i think I can manage those. seems the FsViewModule API has changed. 2017-03-16_180713

ReedCopsey commented 7 years ago

Yes, change the opens to:

open ViewModule
open ViewModule.FSharp

And the issue should go away. You also don't need the ", true" on line 9 anymore. Both of these libraries changed APIs in their last major releases.

FYI - We're planning to write our own templates for FsXaml, in this repository... at which time the community templates (which are horribly out of date) should be unnecessary.

On Thu, Mar 16, 2017 at 10:11 AM, Goswin notifications@github.com wrote:

I have some other errors now but i think I can mange those. seems the FsViewModule API has changed. [image: 2017-03-16_180713] https://cloud.githubusercontent.com/assets/884885/24009005/cef595e4-0a73-11e7-9491-fcf3e4cf9926.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fsprojects/FsXaml/issues/66#issuecomment-287126699, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCUmjZfA0seESEuuE9KkuIRauA89lZsks5rmW0ngaJpZM4MflBi .

goswinr commented 7 years ago

OK, many thanks for your fast reply Reed!

brianberns commented 7 years ago

Just curious what the status of this issue is. Since it interferes with Intellisense, it makes development with FsXaml much more difficult. (And I don't want to disable F# Power Tools, since that would also make development more difficult.)

gdennie commented 6 years ago

Developing on VS2015 targeting .net framework v4.6.1 and runtime FSharp.Core v4.4.0, I was able to get FsXaml to work by replacing v3.1.6 with v3.0.0.