Adding Prism Module as Silverlight class library - silverlight-3.0

I'm building a silverlight project based on the Prism 2.1 version.
Added a shell
Added a silverlight class library (Module A)
Added a reference of module A to the shell
Added ModuleA in the bootstrapper to the Prism ModuleCataloge
Every thing is ok .
I wanted to make loading the Modules by XAML file.
- Added ModulesCatalog.xaml to the shell
- Removed ModuleA reference from the shell.
- added ModuleA configuration to ModulesCatalog.xaml.
- Changed to bootstraper code with configuration statement (ModuleCatalog.CreateFromXaml())
When I run the project it sayes that ModuleA doesn't exsits. I think this is because it don't exsit in the silverlight bin library .
How can solve the problem.
Thanks in advance...

The module needs to be on the server (most likely under the ClientBin folder). There are a couple of ways to solve your problem but for an easy quick way to do this you could just add a new SilverlightApplication Project to your solution and simply create a reference to your dll project (ensure the new SL app project is deployed to the ClientBin folder). The xap file will contain the dll file and don't forget to update your modulecatalog.

Related

VS2019 Reference a foreign project and its packaged assemblies in .Net 5.0

To recap how .net framework references work: Assume I have a .net framework class project called ProjectFw which references a .dll called Grpc.dll. When I create a new Solution as a .net framework console project called ProjectFwRef which adds a reference to ProjectFw.dll the build automatically brings the .dll Grpc.dll into the release folder of ProjectFwRef.
But .net 5.0 does not do that: Assume I have a .net 5.0 class project called ProjectNet which references a package called Grpc. When I create a new Solution as a .net 5.0 console project called ProjectNetRef which adds a reference to ProjectNet.dll the build DOES NOT automatically bring the Grpc.dll nor Grpc package into the release folder of ProjectNetRef.
This fundamental difference in how foreign .dlls are imported into a .net 5.0 project begs the question of the best way to deal with it. One obvious answer is to manually add the package Grpc to ProjectNetRef. Am I missing a better solution? What if I do not know the .dll's a foreign project references? Do I have to wait for the dreaded 'Cannot load file or assembly' error to find out what package I should have added?

Add a jar file to my Xamarin project

I am wanting to add the "universal-image-loader jar" file to my Xamarin project and am not sure what I need to do. I have had a look at this resource but would still like some help please: itexico.com/blog/bid/100447/Android-Wear-Developer-Preview-Using-Xamarin-Jar-Binding
Here is what I have done so far:
Downloaded https://github.com/nostra13/Android-Universal-Image-Loader
Created a folder called "Jars" in the root folder of my Xamarin project
I have added the "universal-image-loader-1.9.2-with-sources.jar" file to the "Jars" folder
I have set the build action to "embedded resource" for the "universal-image-loader-1.9.2-with-sources.jar" file
I have successfully build the project
I still cannot use the ImageLoaderobject in my application. I cannot resolve a ImageLoaderobject and am not sure what else I need to do.
May I please have some help?
Thanks in advance
I'd suggest you use Java Bindings Library for that.
What you need to do is to add a project to your solution of type "Android Java Bindings Library" you DON'T need to create Jars folder it is created in the new project by itself. Add your jars there. On your startup project click on references and add the java binding project you have just created as a reference. build it and try accessing your assembly either by adding it in the using section or by it's fully qualified name.
Good luck!

Xamarin Studio Starter: Why am I getting native library reference error on build without native libraries?

I've been playing around with the Starter Edition of Xamarin Studio to determine if it will meet my needs. I understand (so I thought) the limitations of this edition; 32K compiled IL limit, no native libraries, etc. Now, I understand native libraries to be C/C++ libraries, or even native Java libraries. This does not seem to be the case.
I have a solution in Xamarin Studio with 2 projects. One is an Android Class Library, the other is an Android Application. When I reference the class library from the application project and build, I get the following error.
Your app references native libraries. This functionality requires Indie Edition or higher.
I beg to differ! Every .cs file in the referenced Android class library project is simple .NET code. What am I missing? I can successfully run the Tasky Android_Starter solution without issue, and it is made up of 2 projects like mine.
I had to delete the Resources folder and manually edit the Android class library project file in order to get this working. I looked at the Tasky sample's project file as a reference.
After deleting the auto-included Resources folder from the project, edit the .csproj file in a text editor to remove the following XML elements:
Project\ProjectGroup\AndroidResgenFile
Project\ProjectGroup\AndroidResgenClass
With those things taken care of, I no longer get the error. I'm guessing, Xamarin Studio thought I was referencing another Android application instead of a class library. Not sure why the default project template includes things to break such a flow, but perhaps I'm not "doing" right" either. Go figure.
Deleting the Resources folder and manually editing the csproj file didn't work for me. I had to create a new C# Library project instead of creating an Android Library Project and import my .cs files into that. After that it compiled and ran fine.

IntelliJ, Grails - I deleted a file and nothing works anymore

I need help with IntelliJ, my project isnt starting anymore, I googled but cant find a solution. It started when I deleted a newly created file, a grails Service file.
First, the grails view disappeared. Adding new Framework Support to the project and get the view back via tool windows didnt work.
I also have no "grails" option in the tool menu anymore.
When I run the project (I had to re-setup the run configuration, it was all sort-of-deleted too), the console shows me this error:
Application expects grails version [1.2.3], but GRAILS_HOME is version [1.3.7].
All my Team memebers use 1.3.7 too, so I dont know why this should work.
Can somebody help me please.
Please let me know if you require more information to help me!
thanks a lot in advance!
daniel
how much modules can you see in the project view? there must be one for your grails application named and one for your grails plugins -grailsPlugins. maybe you accidentally deleted one of those intellj modules. the modules files are located under your project root and named as follows: .iml. in intellij go to file -> project structure -> modules. there you can add a existing module by clicking the + symbol and select your existing module for importing.
If the file was compiled at least once then I guess one can open the .class file with intellij and see the code. However all coments will be remove of course.

where to find "package com.rim.samples.docs.notifications;"

i a developing blackberry aplication using eclipse can any one tell where to find the following library
package com.rim.samples.docs.notifications;
i have downloaded it from blackberry site but i dont know how to use it
com.rim.samples.docs namespace is common for samples BlackBerry Application Developer Guide.
On the other hand, "package" token defines the packege namespace, not the import.
If you have downloaded code and post it to namespace with other name, you may have trouble to compile it. Resolve it in two ways:
1. if your code file is placed directly in project src folder, simply remove
package com.rim.samples.docs.notifications;
from code, this will set namespace to default.
2. in project src folder create folder "com\rim\samples\docs\notifications" and move file to folder "notifications".

Resources