Missing Reference or Directive for Only Caliburn.Micro Xamarin Example - reference

I am attempting to compile the HubBrowser project - which is an example Caliburn Micro Xamarin project (one of the very few there are).
Its a great example but the Android project is not compiling. I get the following errors:
Error 8 The type or namespace name 'CaliburnApplication' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Application.cs 14 32 HubBrowser.Android
Error 7 The type or namespace name 'ActivityLifecycleCallbackHandler' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs 12 26 HubBrowser.Android
Error 9 The type or namespace name 'ActivityEventArgs' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs 24 55 HubBrowser.Android
Error 10 The type or namespace name 'ActivityEventArgs' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs 29 54 HubBrowser.Android
What is the cause of this error and how can I fix it?
I have made sure my references point to Caliburn.Micro and Caliburn.Micro.Platform (net45 versions). Do I need Caliburn.Micro.Portable.Core? If so where is this dll? Installing C.M through NuGet always fails - these NuGet packages and PCL's are and ABSOLUTE nightmare.

You need to use the pre-release 3.0 beta package. In the Core PCL project, install Caliburn.Micro.Core 3.0.0-beta1, and in your Android project, install Caliburn.Micro 3.0.0-beta1 (which will also install Core as a dependency).
Be sure to check the "pre-release" checkbox in the Nuget dialog or else you won't see the beta releases.

Related

Build Acumatica project getting error: The type or namespace name 'PX' could not be found

I'm learning Acumatica ERP follow course T100_AcumaticaFrameworkIntro_5_0. I can add new class in project and using PX object. But when i build my project i geting error :
Error 1 The type or namespace name 'PX' could not be found (are you missing a using directive or an assembly reference?)
Error 2 The type or namespace name 'PXGraph' could not be found (are you missing a using directive or an assembly reference?)
Error capture
Please help me.
You need to add a reference to the PX.Data, PX.Common, & PX.objects files (located in your ERP's bin folder) to your custom project.

Google VR sdk won't compile

When I add the sdk to my project and try to compile, I get these errors:
Assets/GoogleVR/Scripts/GvrViewer.cs(84,18): error CS0246: The type or
namespace name StereoController' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(171,11): error CS0246: The type
or namespace nameGvrProfile' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(188,11): error CS0246: The type
or namespace name GvrProfile' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(192,18): error CS0246: The type
or namespace nameBaseVRDevice' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(69,17): error CS0246: The type or
namespace name StereoController' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(157,10): error CS0246: The type
or namespace nameGvrProfile' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(174,10): error CS0246: The type
or namespace name GvrProfile' could not be found. Are you missing a
using directive or an assembly reference?
Assets/GoogleVR/Scripts/GvrViewer.cs(253,10): error CS0246: The type
or namespace nameGvrProfile' could not be found.
Are you missing a using directive or an assembly reference?
Am I missing something?
From 1.0 on, the GVR Unity SDK is targeted at the native integration (now in technical preview). If you are using a version w/ out technical preview, then you need some extra scripts, which are in the "backwards compat" package.

Unresolved assembly reference with sandcastle

I am trying to generate documentation with sandcastle help file builder. While building the project in the sandcastle i am getting the following error.
MRefBuilder : error : Unresolved assembly reference: Microsoft.Owin (Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35) required by Microsoft.AspNet.Identity.Owin [C:\Users\inkosah\Documents\Help\Working\GenerateRefInfo.proj]
Last step completed in 00:01:19.4610
Can anybody help me to resolve this issue? I also tried adding it separately to project references in the sandcastle but no help.
Solution 1 : Add missing references to a dummy project.
Create 'dummyProject' (ie class library)
In Visual Studio - Package Manager Console
Install-Package Microsoft.Owin -Version 2.1.0.0 -ProjectName dummyProject
Install-Package Microsoft.Owin.Security.OAuth -version 2.1.0.0 -ProjectName dummyProject
In Sandcastle Help Fil Builder - Project Explore, add two references
Microsoft.aspNet.identity.Owin (dll found in ..\packages\Microsoft.AspNet.Identity.Owin.2.2.0\lib\net45)
Microsoft.Owin (dll found in ..\packages\Microsoft.Owin.2.1.0\lib\net45\Microsoft.Owin.dll)
It looks like MRefBuilder found that Microsoft.AspNet.Identity.Owin relies on Microsoft.Owin (== v 2.1.0) and not Microsoft.Owin (>= 2.1.0).
The main project is still using Microsoft.Owin 3.0.1.0
Solution 2 : Ignore unresolved references
In Documentation (or SHFB) Project Properties / Plug-Ins :
Add "Assembly Binding Redirection" in "Plugs-Ins in This Project"
configure it to "ignore if Unresolved" "Microsoft.Owin" and "Microsoft.Owin.Security.OAuth"

Monotouch Facebook Binding - "make" results in errors

I'm trying to create the Facebook DLL with following bindings: https://github.com/mono/monotouch-bindings/tree/master/facebook
When I use "make", I'm getting following errors:
error: invalid deployment target '5.0.0' for architecture 'arm64' (requires
'7.0.0' or later)
And
** BUILD FAILED **
The following build commands failed: ProcessPCH
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0-5A1413/Xcode/SharedPrecompiledHeaders/facebook_ios_sdk_Prefix-eeghlwplbbpvmudycetfsuytcqmf/facebook_ios_sdk_Prefix.pch.pch
facebook_ios_sdk_Prefix.pch normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler (1 failure) make[1]: *
[libFacebook-arm64.a] Error 65 make: * [build-binding] Error 2
Any ideas?
Ok, finally found the answer myself and posting it here in case others have the same problem.
The make file downloads the Facebook Obj C project automatically
The "BASE SDK" of this project is set to iOS7, the 64bit deployment targets are also set to iOS7, the 32bit deployment targets are set to iOS5
It then builds the Monotouch DLL with the binding project
This targets 64bit, which is not supported on iOS5
So basically, the "make" will not work. You first need to change all deployments targets in the project to iOS7. See screenshot below.
Probably there is a better solution that also supports earlier versions then iOS7, because the Obj C project is using different targets for 32bit (iOS5) and 64bit (iOS7) and my solution now only targets iOS7.

How to get C# 4.0 in Mono (in xbuild)?

I have a .NET project which uses msbuild that I want to try building in Mono. I can build some of its trivial targets just fine, but if I try the full compilation it fails.
I'm not sure how much of the output is relevant, but these are the first lines that look like trouble:
Target GetFrameworkPaths:
/usr/lib/mono/3.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.0' not supported by this toolset (ToolsVersion: 4.0).
and
Target ResolveAssemblyReferences:
/usr/lib/mono/3.5/Microsoft.Common.targets: warning : Reference 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved
and
/usr/lib/mono/3.5/Microsoft.CSharp.targets: error : Error executing tool '/usr/bin/dmcs': ApplicationName='/usr/bin/dmcs', CommandLine='/noconfig #/tmp/tmp4749932e.tmp', CurrentDirectory='/home/ken/foo/bar'
Task "Csc" execution -- FAILED
I'm running latest Debian unstable. According to this, "dmcs" is the 4.0 compiler. I've not used Mono/xbuild much at all -- is there something special it needs in order to compile a C# 4.0 project? Thanks!
Sid still has Mono 2.6, you probably need Mono 2.10 (available in experimental).

Resources