.net - Cannot add reference from C# PCL to F# PCL (VS 2015 Update 1) -
i have problems creating f# portable project should referenced c# portable project. when adding such reference, following message appears:
unable add reference 'portablelibrary1'. portable library projects can reference other portable library projects , assemblies.
the problem reproduced using latest visual studio 2015 update 1 (version 14.0.24720.00). have xamarin installed.
i can reproduce problem using kind of c# portable project following available:
- class library (portable)
- class library (portable ios, android , windows)
and kind of f# portable library project following available:
- portable library (.net 4.5, windows store, silverlight 5, xamarin) [profile 47]
- portable library (.net 4.5, windows store, windows phone 8 silverlight, xamarin) [profile 78]
- portable library (.net 4.5, windows store, windows phone 8.1, windows phone silverlight 8, xamarin) [profile 259]
- portable library (.net 4.5, windows store, xamarin) [profile 7]
i've used same profiles c# f# , nothing helps.
seems there such issue before (how add reference f# portable library c# portable class library (pcl)) fixed. reproduced again.
can please tell me missing something? maybe there needs additionally installed or so?
i had same issue. solved hacking .csproj of pcl. after f# pcl referenced in c# project , can use everything. don't know if there problems - not figure out any.
here steps reproduce:
- new c# project (portable class profile 111)
- new f# project (portable class profile 7)
- look f# .fsproj file , copy value of "project/propertygroup/projectid"
edit c# .csproj , add following itemgroup
<itemgroup> <projectreference include="..\f# project\f# project.fsproj"> <project>{f# project id}</project> <name>f# project</name> </projectreference> </itemgroup>
i'm using visual studio 2015 community update 2
Comments
Post a Comment