I have a windows phone 7.1 project that I want to create a chart in using the silverlight 5.0 chart control. I've installed the December 2011 version of the Silverlight Toolkit. No other versions exist on my computer. When I try to set a reference to the the System.Windows.Controls.DataVisualization.Toolkit.dll that is located in C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11 an error message occurs. The message says "A higher reference version or incompatable assembly cannot be added to the project." I'm using Visual Studio 2010 and the Target Windows Phone OS version is set to Windows Phone OS 7.1 which is the usual reason I've seen for this error message. Does anybody know how to resolve this?
Make sure you have the right toolkit.
WP7 Toolkit
You Cannot use the Silverlight 5 Toolkit in a WP7 application
After that its pretty simple:
Add the dll to the project as a reference.
In any XAML you want to use the items place a declaration (Just to name a few)
xmlns:toolkit="clr-namespace:System.Windows.Controls assembly=System.Windows.Controls.Toolkit"
xmlns:customControl="clr-namespace:TriviaGame.CustomControls;assembly=TriviaGame.CustomControls"
xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
Related
I'm creating a windows desktop universal app (UWP) using Windows Template Studio on Visual Studio 2019 Community, on a Windows 10 Family Edition.
Windows and VS2019 were updated today (before creating this app).
After the project was created using WTS i have an error telling me (mine is in french so i'll try my best to translate) that : I need to upgrade to "windows 10, version 2004 (10.0.19041.0)" in order to display this content (aka : the XAML UI designer). However, the 19041 sdk is already installed. I can build and run the application just fine. It only a problem with the designer.
If i change the application property target to from 19041 to version 1903 (10.0 ; Build 18362) and reload the project, it works just fine.
I don't think i really need this 19041 (i hope so) but : what's happening and how to fix it ?
If you set the target version at 19041 (2004), this requires your development environment to be at least 19041. The SDK installed through Visual Studio contains some development tools corresponding to the platform, but UWP development usually requires some native resources (such as colors, control styles, etc.), and these resources will follow the system update.
So when you set the target version of the project to 19041, the target of some local resources referenced by the project is 19041. If your development environment is lower than this version, the designer will not be able to display.
I'm working on a simple Xamarin cross-platform mobile application that needs to connect to a WEB Service. There are a few posts (see here, here and here) saying that Visual Studio doesn't support Service References for Windows Phone 8.1 and that I must remove such target from the project.
Unfortunately I don't seem to be able to do so under VS2017 Community (Release 15.1 26403.7): see image Visual Studio 2017 doesn't show any Windows 8.1 Target. "Windows Phone 8.1" is indeed in the targets but when I click on "Change" it doesn't appear... so I can't remove it.
I know I can add a reference to each platform-specific project (Android or iOS) but the whole point is to rely on a single common service reference and avoid time-consuming interfaces.
Thank you for your help!
Andrej
All my apologies, I have found the answer - like, 45 seconds after posting - by putting together this post and this post:
Manually edit the portable .csproj
In the "TargetFrameworkProfile" enter "Profile78"
VS2017 will reload the project and you will now be able to add a Service Reference.
I've tried to use in my WP 8.1 project my own fonts. I've found out that I should check the Embed property in Blend to do it, but the function is disabled and the message says:
"This control is disabled because the Blend SDK could not be found".
I've searched on this site https://www.nuget.org/packages/Expression.Blend.Sdk/ . It says that is for 8.1 version, but the log says something different:
"You are trying to install this package into a project that targets WindowsPhoneApp,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework."
I've also found out that there's a Expression Blend Software Development Kit (SDK) available to download but only for .NET 4.0. What should I do to solve this problem? I'm using Visual Studio 2013 Professional.
I am using Visual Studio 2012 with Windows 8.1 Enterprise.
I am trying to make a data driven sample Windows 8 store app by following the example in the below link:
http://social.technet.microsoft.com/wiki/contents/articles/18417.windows-store-app-with-a-sqlite-database.aspx
As they suggest 2 references should be included.
They are
Sqlite for Windows Runtime
Microsoft Visual C++ Runtime Package
I have successfully installed both but I am not able to see the reference of "Microsoft Visual C++ Runtime Package" in the "add reference dialogue".
Is there anything else I missed please help....
Awaiting reply.....
Assuming everything is installed correctly, you will find the reference under Windows -> Extensions in the references dialog:
I should note that this is the same place where the SQLite reference is located.
Running the WindowsSdkVer.exe shipped with Platform SDK 7.1 does not work.
None of the .BAT files in VS 2005 get updated.
can anyone please tell me how to correct this?
Also, how do I verify that VS2005 is using Platform SDK 7.1?
There are several articles for this in MSDN but none of them for above configuration.
Also, none of them describe the concrete way / definate way of verifying this
You could try to manually set the include and lib paths of the VS environment under
Tools->Options->VC++ Directories
or something like that (it's been a while).
For verification, you can add the /showIncludes parameter to the additional compiler options of the project, and /verbose:lib to the additional linker options to double check that the correct headers/libraries are being used when compiling/linking the project.
IIRC there was some kind of incompatibility between one of the newer versions of the SDK (could have been version 7) and using VS2005, but I can't recall off hand what that was.
You can use below method for using Windows SDK 7.1 with Visual Studio 2005.
Configuring Visual Studio for Visual C++ Development with the Windows SDK
In the link , you can find the contents with
"To use the Windows SDK Configuration Tool in Visual Studio 2008".
Even though it has such title, you can use the same procedure also for VS2005.
Start the Windows SDK Configuration Tool by clicking Start, then All Programs, then Microsoft Windows SDK v7.1, and then Visual Studio Registration.
Right-click Windows SDK Configuration Tool and then click Run as
administrator.
In the Windows SDK Configuration Tool, in the list, select v7.1.
Click Make Current.