How to run xamarin forms designer? - c#

How to run xamarin forms designer?
After startup, an error pops up:
The previewer requires a 64-bit version of Oracle Java JDK 8 (1.8) or
higher. Please install it and then set the Java JDK location in the
Xamarin Studio or Visual Studio preferences.
But I'm using version 1.8.
How to fix?

You aren't using the 64-bit install of JDK 1.8, you're using the 32-bit.
Install the 64-bit version and change that path you highlighted from:
C:\Program Files (x86)\Java\jdk1.8.0_101
to
C:\Program Files\Java\jdk1.8.0_101

Related

Can't create blank Android Xamarin app in VS 2015

When i try to create a blank Android project in Visual Studio 2015 i get error:
Desktop windows 7 Enterprise
I have installed the latest versions of VS2015 and Xamarin.
Someone resolved problem on other forum - check this out.
Make sure Android Studio is not installed on your computer. If it is, uninstall it and run the VS2015 installer again until all Android SDK errors go away.
Make sure VS2015 is closed and install the most recent stable version of Xamarin for Visual Studio 2015. I found it here: https://store.xamarin.com/account/my/subscription/downloads. (Trying to install it through VS2015 didn't work for me under Tools -> Android -> Settings -> Xamarin for Visual Studio Updates.)
Make sure you have Java SDK version 7 installed on your machine (do not use 8 even though its the latest). You also must use the 32-bit version even if you have a 64-bit machine. This was key!
Install the Android SDK. Standalone version, not Android Studio + Android SDK.
Install the Android NDK.
Restart your computer and open VS2015. Go to Tools -> Android -> Settings and set the correct paths to Android SDK, NDK and Java SDK.

Visual Studio 2013: Build for Windows XP

I got a program made in Visual Studio 2013 (C#). I want to build it to XP. If I take the exe in the Debug directory and I run it on XP, I have an error "Is not a valid win32 application". What I have to do to build it for XP?
I got the solution: You got to right-click in the solution name on the Solution Explorer and go to Properties. In there, you can not only change the platform (x64 or x86) but the .NET Framework. I downgraded to .Net Framework 4 and worked perfectly!

Microsoft Visual Studio 2013 build target

Is it even possible to add the x64 or "Any CPU" in Microsoft Visual Studio 2013 for XNA Windows Game 4.0? I've downloaded the redistributables and stuff like that, but they still did not appear when I try to target other platform than x86. Any suggestions? Pics:
this is possible , read MSDN on 64-Bit Support and How to: Configure Projects to Target Platforms

".NETFramework,Version=v4.0,Profile=Mono" issue vb.net, c#

I have followed 2 tutorials like this to integrate mono 2.10.8 profile in visual studio 2010
After doing all, when selecting mono profile I get some issues:
if I change the to .net 2 framework, I have no problems:
I Copied the contents of C:\Program Files\Mono-2.10.8\lib\mono\4.0 to
C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Profile\Mono.
Created the folder RedistList and added FrameworkList.xml
Added the key to registry....
Also tried to create a .net 4 project and then select mono 2.8 profile as suggested, but have the same errors.
What am I missing?
Chek this page,
Installing Mono Tools for Visual Studio
Requirements:
Windows XP, Vista, or 7, 32 or 64 bits
Visual Studio
2008 SP1 Standard or Professional, or
2010 Professional, Premium, or Ultimate

Compilation issue in Visual Studio 12 Professional with a C# project

The project worked fine in Visual Studio 2010, and we upgraded to Visual Studio 2012; however, now it does not compile.
We get the following error:
Error 2 Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed PROJECT_NAME
Does anyone how to solve this issue?
I am on Windows 2008 R2 SP1 with .NET 4.5 installed. I did not install .NET 4 directly, I used the .NET 4.5 installer.
I fixed this by installing "Windows Software Development Kit (SDK) for Windows 8" from http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx
I was confused by the title - I'm on Windows 7 - but it worked.
Solution pointed by Mark Rainey worked for us:
http://www.markrainey.me/2013/02/setting-up-build-machine.html
Changing sdk version
Go to "Microsoft Windows SDK v7.1" from the Start menu
Select "Windows SDK 7.1 Command Prompt" and enter
> cd Setup
> WindowsSdkVer -version:v7.1
My issue was when clicking on Properties on the solution for the Active(Debug) configuration, the configuration for my projects were set to Release. Changed it to Debug, rebuilt and the build error disappeared.
After 2013 now msbuild is part of VS.
https://blogs.msdn.microsoft.com/visualstudio/2013/07/24/msbuild-is-now-part-of-visual-studio/
On my case I had to change the msbuild path after I installed VS2015 to
C:\Program Files (x86)\MSBuild\14.0\Bin\
"I fixed this by installing "Windows Software Development Kit (SDK) for Windows 8" from http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx"
This solution by user489998 worked fine on Windows server 2008 R2 as well.

Categories

Resources