I'm building Windows Phone 8 app using MVVM Light. So far, so good.
However, when I used EventToCommand, I get multiple errors. One similar question is here EventToCommand not working when migrate to v4 for SL5, but sadly it doesn't solve my problem.! It automatically adds following reference:
xmlns:command1="http://www.galasoft.ch/mvvmlight"
Errors that I receive:
The name "EventToCommand" does not exist in the namespace "clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.WP8"
The type 'command:EventToCommand' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
The tag 'EventToCommand' does not exist in XML namespace 'clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.WP8'
Let me know if I'm missing anything or doing something wrong.
Thanks
Here is the correct xmlns (you were missing Extras in the assembly name):
xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
Replace it with
xmlns:command1="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
With the recent version the command moved to Platform assembly:
xmlns:command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Platform"
Related
I want to call Fraud Scoring for Merchants api.So i use nuget intall MasterCard-FraudScoring. My project's framework 4.5. vs2013 .When i using MasterCard,it's error is Failed to find the type or namespace name "MasterCard" (does it lack the using directive or assembly reference?)
I change framework from 2.0 to 4.5. and change the reference of file directory.It still not work. You can see the Object Browser exists the method. Plz,help me ,thanks.
No one answer me.So I find other way to do.I found https://github.com/Mastercard/mastercard-api-csharp,and if you can't compile, you can see issue,to resolve this problem.If you use this compile sdk,it works.I hope it can help you if the one meet this problem.
I'm attempting to use the following command line command to compile an assembly of the code from my project:
C:/"Program Files"/Unity/Editor/Data/Mono/bin/gmcs
-target:library -out:C:/Users/Austin/Desktop/PixelExpanse.dll
-recurse:C:/Users/Austin/Desktop/Projects/Repos/trunk/PixelExpanse/SpaceColonyRefactor/Assets/Source/*.cs
-d:RUNTIME -r:C:/"Program Files"/Unity/Editor/Data/Managed/UnityEngine.dll
As you can see, I am, I believe, correctly referencing the UnityEngine.dll.
The code that would be compiled contains references to UnityEngine.UI and UnityEngine.EventSystems. But when I run the above command, I get the following compile error:
error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine'. Are you missing an assembly reference?
From what I have been able to find through googling, it SEEMS like an error people were getting when using a pre-4.6 assembly, because thats when EventSystems and UI were both introduced. But I don't know how I could be missing that in the dll I'm referencing as Unity 5 is the only version that has ever touched this computer.
As a side note, I have posted this question to Unity Answers and have yet to receive a response. I expect it's because assembly compilation is beyond the scope of what most users there choose to undertake. Hence my asking it here.
The namespace UnityEngine.EventSystems actually appears in UnityEngine.UI.dll and not UnityEngine.dll so it seems you need to reference the former too when compiling manually from the command-line. Unity projects have this by default (see below).
This is verified by opening up the assembly in your reflector tool of choice, here I am using JetBrains dotPeek:
This is how my test project appears with default Unity references. Note that by default a reference to UnityEngine.UI already appears in the Unity-created project:
When I built my Windnows desktop app via Unity, the above dlls appeared in:
<drive>:<projectOutFolder>\<projectName>_Data\Managed
You can try:
right click on "project panel", and after "Reimport All".
It's can be happen due to switch between platforms, e.g. IOS, or Desktop.. thus, folrders are deleted by became unecessary..
Solve for me: Unity 5.2, Win 7, 32bits;
Good luck!
I checked the UnityEngine.dll and the Eventsystems/UI namespace is not included. Despite, there is a dll in Unity5\Editor\Data\UnityExtensions\Unity\GUISystem\UnityEngine.UI.dll which includes these namespaces.
For mac, it's /Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll.
I'm working on IOS using Xamarin to restore some old android code. When trying to compile, there's a missing assembly error, pointing me towards this block of code:
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{...}
The error I get is as follow:
Error CS0234: The type or namespace name ApplicationSettingsBase does
not exist in the namespace System.Configuration. Are you missing an
assembly reference? (CS0234)
I get the feeling the problem lies within the "Microsoft.VisualStudio" part but I have no idea how to fix this.
Edit I see some people having similar problem being answered "Don't use Windows core dll". This might be the problem, but if it is I have no idea how to fix it.
I'm not sure how this could work on Xamarin.Android but System.Configuration (both the assembly and the namespace) are not part of the mobile profile that are shipped with Xamarin.iOS (and Xamarin.Android).
Also, more specifically to Xamarin.iOS, there's no code generation possible (no JIT is allowed by Apple) so it does not include namespaces (or types) from System.CodeDom.Compiler
I have a C# app originally written in Windows that I'm now running in Linux on MonoDevelop. It works fine but now I need to recognise symbolic links. I found this answer but when I add:
using Mono.Unix;
I get the error "The type or namespace name 'Unix' does not exist in the namespace 'Mono'. Are you missing an assembly reference (CS0234)?"
You need to do what the error message says. Unintuitively, Mono.Unix lives in Mono.Posix.dll, so you need to add that as reference.
I'm trying to create plugins for Umbraco 5. I see in all examples mention of the following line to AssemblyInfo.cs, in order to mark an assembly for export:
[assembly: AssemblyContainsPlugins]
Trouble I'm having is I receive the 'type or namespace' error for AssemblyContainsPlugins and AssemblyContainsPluginsAttribute. I tried googling the names to see what assembly I'm not referencing but can't find it.
Can anyone see what I've missed here?
Yes, you missed this using statement:
using Umbraco.Cms.Web;